|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISnippetInsertion
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(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 targetPart)
The target editorpart in the workbench window. |
void |
setItem(ISnippetItem item)
Use this ISnippetItem |
Method Detail |
---|
void dragSetData(org.eclipse.swt.dnd.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 dataorg.eclipse.swt.dnd.Transfer[] getTransfers()
void insert(org.eclipse.ui.IEditorPart editorPart)
editorPart
- the editor part into which to insertvoid setEditorPart(org.eclipse.ui.IEditorPart targetPart)
targetPart
- the target editor partvoid setItem(ISnippetItem item)
item
- the item to insert
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |