|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.wst.common.snippets.ui.DefaultSnippetInsertion
public class DefaultSnippetInsertion
An insertion implementation that supports ISnippetVariables. The content string of the item can contain markers, in the form ${+variable+}, that will be replaced with user-supplied values at insertion time.
Clients may subclass this class.
Constructor Summary | |
---|---|
DefaultSnippetInsertion()
Default constructor. |
Method Summary | |
---|---|
void |
dragSetData(org.eclipse.swt.dnd.DragSourceEvent event,
ISnippetItem item)
The data is required from the drag source. |
org.eclipse.swt.dnd.Transfer[] |
getTransfers()
The Transfer types to support from a drag source. |
void |
insert(org.eclipse.ui.IEditorPart editorPart)
Insert the current ISnippetItem's insertion String to the given IEditorPart. |
void |
setEditorPart(org.eclipse.ui.IEditorPart editorPart)
The target editorpart in the workbench window. |
void |
setItem(ISnippetItem item)
Use this ISnippetItem |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultSnippetInsertion()
Method Detail |
---|
public void dragSetData(org.eclipse.swt.dnd.DragSourceEvent event, ISnippetItem item)
ISnippetInsertion
The following fields in the DragSourceEvent should be examined/updated by the Insertion object:
dragSetData
in interface ISnippetInsertion
event
- -
the information associated with the drag set data eventitem
- -
the ISnippetItem instance from which to derive the datapublic org.eclipse.swt.dnd.Transfer[] getTransfers()
ISnippetInsertion
getTransfers
in interface ISnippetInsertion
public void insert(org.eclipse.ui.IEditorPart editorPart)
ISnippetInsertion
insert
in interface ISnippetInsertion
editorPart
- the editor part into which to insertpublic void setEditorPart(org.eclipse.ui.IEditorPart editorPart)
ISnippetInsertion
setEditorPart
in interface ISnippetInsertion
editorPart
- the target editor partpublic void setItem(ISnippetItem item)
ISnippetInsertion
setItem
in interface ISnippetInsertion
item
- the item to insert
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |