copyright © ibm corp., 2008. all rights reserved; made available under the epl v1.0 | march 18,...

12
Copyright © IBM Corp., 2008. All rights reserved; made available under the EPL v1.0 | March 18, 2008 | Nitin Dahyabhai What can the WTP Snippets View do for me?

Upload: shanon-washington

Post on 13-Dec-2015

215 views

Category:

Documents


1 download

TRANSCRIPT

Copyright © IBM Corp., 2008. All rights reserved; made available under the EPL v1.0 | March 18, 2008 | Nitin Dahyabhai

What can the WTP Snippets View do for me?

What can the WTP Snippets View do for me? | Copyright © IBM Corp., 2008. All rights reserved; made available under the EPL v1.0456

What is it?

A view for holding scraps of text that you want to use and reuse by dragging them into your favorite editors or at the push of a button.

What can the WTP Snippets View do for me? | Copyright © IBM Corp., 2008. All rights reserved; made available under the EPL v1.0456

What can I do with it?

Add your own drawers and items, showing, (auto) hiding, and arranging them however you please

What can the WTP Snippets View do for me? | Copyright © IBM Corp., 2008. All rights reserved; made available under the EPL v1.0456

What can I do with it?

Drag and drop text into your favorite editors in Europa

What can the WTP Snippets View do for me? | Copyright © IBM Corp., 2008. All rights reserved; made available under the EPL v1.0456

What can I do with it?

Define variables to be filled in during the drop

What can the WTP Snippets View do for me? | Copyright © IBM Corp., 2008. All rights reserved; made available under the EPL v1.0456

How do I add my own items?

• Customizer dialog, from the context menu• Quick Paste as Snippet context menu action• Add to Snippets context menu action in selected

editors

What can the WTP Snippets View do for me? | Copyright © IBM Corp., 2008. All rights reserved; made available under the EPL v1.0456

So is there an extension point I can use?

What can the WTP Snippets View do for me? | Copyright © IBM Corp., 2008. All rights reserved; made available under the EPL v1.0456

YES!

What can the WTP Snippets View do for me? | Copyright © IBM Corp., 2008. All rights reserved; made available under the EPL v1.0456

What can you do with the extension point?

• Add drawers and items, controlling when they’re visible

• Set variables for the users to fill in

What can the WTP Snippets View do for me? | Copyright © IBM Corp., 2008. All rights reserved; made available under the EPL v1.0456

What can you do with the extension point?

• Contributed items use the ISnippetInsertion interface Control the behavior during push-button insertion Control the behavior when dropped using a custom SWT

Transfer Type.

Redefine the entire UI, including custom dialogs, wizards…the sky’s the limit.

What can the WTP Snippets View do for me? | Copyright © IBM Corp., 2008. All rights reserved; made available under the EPL v1.0456

How do I get it?

• WTP builds http://download.eclipse.org/webtools/downloads

• Europa for Java EE http://www.eclipse.org/downloads/moreinfo/jee.php

• As a proposed Expanded Download http://wiki.eclipse.org/WTP_Expanded_Downloads

What can the WTP Snippets View do for me? | Copyright © IBM Corp., 2008. All rights reserved; made available under the EPL v1.0456

Legal Notices Copyright © IBM Corp., 2008. All rights reserved. Source code in this presentation is made available

under the EPL, v1.0, remainder of the presentation is licensed under Creative Commons Att. Nc Nd 2.5 license.

IBM and the IBM logo are trademarks or registered trademarks of IBM Corporation, in the United States, other countries or both.

Java, Java EE, and all Java-based marks, among others, are trademarks or registered trademarks of Sun Microsystems in the United States, other countries or both.

Eclipse and the Eclipse logo are trademarks of Eclipse Foundation, Inc.

Other company, product and service names may be trademarks or service marks of others.

THE INFORMATION DISCUSSED IN THIS PRESENTATION IS PROVIDED FOR INFORMATIONAL PURPOSES ONLY. WHILE EFFORTS WERE MADE TO VERIFY THE COMPLETENESS AND ACCURACY OF THE INFORMATION, IT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, AND IBM SHALL NOT BE RESPONSIBLE FOR ANY DAMAGES ARISING OUT OF THE USE OF, OR OTHERWISE RELATED TO, SUCH INFORMATION. ANY INFORMATION CONCERNING IBM'S PRODUCT PLANS OR STRATEGY IS SUBJECT TO CHANGE BY IBM WITHOUT NOTICE.