Package org.eclipse.handly.ui.outline
Class OutlineDragAndDropContribution
java.lang.Object
org.eclipse.handly.ui.outline.OutlineContribution
org.eclipse.handly.ui.outline.OutlineDragAndDropContribution
- All Implemented Interfaces:
IOutlineContribution
An abstract base class for outline drag-and-drop contributions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ViewerDragSupportReturns a ready to start instance ofViewerDragSupportfor the outline page.protected abstract ViewerDropSupportReturns a ready to start instance ofViewerDropSupportfor the outline page.voiddispose()Disposes of this contribution.voidinit(ICommonOutlinePage outlinePage) Initializes this contribution.Methods inherited from class org.eclipse.handly.ui.outline.OutlineContribution
getOutlinePage
-
Constructor Details
-
OutlineDragAndDropContribution
public OutlineDragAndDropContribution()
-
-
Method Details
-
init
Initializes this contribution. This method is called after the outline page's tree viewer has been created.This method may be extended by subclasses. Subclasses must call the superclass implementation.
OutlineDragAndDropContributionextends this method to adddraganddropsupport to the outline. Thefeedback enablementfor the drop support is governed by thelexical sortpreference.- Specified by:
initin interfaceIOutlineContribution- Overrides:
initin classOutlineContribution- Parameters:
outlinePage- the contribution's outline page (nevernull)
-
dispose
public void dispose()Description copied from class:OutlineContributionDisposes of this contribution. Implementors should clean up any resources associated with this contribution. Note that there is no guarantee thatinit()has been called. This method has no effect if this contribution has already been disposed.This method may be extended by subclasses. Subclasses must call the superclass implementation.
- Specified by:
disposein interfaceIOutlineContribution- Overrides:
disposein classOutlineContribution
-
createDragSupport
Returns a ready to start instance ofViewerDragSupportfor the outline page.- Returns:
- a ready to start instance of
ViewerDragSupport(notnull)
-
createDropSupport
Returns a ready to start instance ofViewerDropSupportfor the outline page.- Returns:
- a ready to start instance of
ViewerDropSupport(notnull)
-