|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An insertion class is responsible for inserting a snippet item's contents into editors. Implementors are responsible for supporting the drag-and-drop mechanism and inserting the snippet's text into a given editor part.
Clients may implement this interface.
Method Summary | |
---|---|
void |
dragSetData(DragSourceEvent event,
ISnippetItem item)
The data is required from the drag source. |
Transfer[] |
getTransfers()
The Transfer types to support from a drag source. |
void |
insert(IEditorPart editorPart)
Insert the current ISnippetItem's insertion String to the given IEditorPart. |
void |
setEditorPart(IEditorPart targetPart)
The target editorpart in the workbench window. |
void |
setItem(ISnippetItem item)
Use this ISnippetItem |
Method Detail |
public void dragSetData(DragSourceEvent event, ISnippetItem item)
The following fields in the DragSourceEvent should be examined/updated by the Insertion object:
event
- -
the information associated with the drag set data eventitem
- -
the ISnippetItem instance from which to derive the datapublic Transfer[] getTransfers()
public void insert(IEditorPart editorPart)
editorPart
- the editor part into which to insertpublic void setEditorPart(IEditorPart targetPart)
targetPart
- the target editor partpublic void setItem(ISnippetItem item)
item
- the item to insert
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |