Interface INavigatorDnDService
CommonDragAdapterAssistant
and
CommonDropAdapterAssistant
for the associated
INavigatorContentService
.
Clients should only take note of this Service they are are using the
INavigatorContentService
in the context of a viewer which is not or
does not extend CommonViewer
. Clients should take a look at the
initialization of the DND support in the CommonViewer
if they wish to
support this capability in their own viewers.
- Since:
- 3.2
- See Also:
- Restriction:
- This interface is not intended to be implemented by clients.
- Restriction:
- This interface is not intended to be extended by clients.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
bindDragAssistant
(CommonDragAdapterAssistant anAssistant) Clients may choose to programmatically bind drag assistants to an instance of the DND Service.findCommonDropAdapterAssistants
(Object aDropTarget, IStructuredSelection theDragSelection) This method returns an array ofCommonDropAdapterAssistant
from content extensions that are visible and active for the associatedINavigatorContentService
.findCommonDropAdapterAssistants
(Object aDropTarget, TransferData theTransferType) This method returns an array ofCommonDropAdapterAssistant
from content extensions that are visible and active for the associatedINavigatorContentService
.As part of the org.eclipse.ui.navigator.viewer extension point, clients may explicit extend the support Transfer Types of a particular viewer using the dragAssistant element.
-
Method Details
-
getCommonDragAssistants
CommonDragAdapterAssistant[] getCommonDragAssistants()As part of the org.eclipse.ui.navigator.viewer extension point, clients may explicit extend the support Transfer Types of a particular viewer using the dragAssistant element. This element defines a class which extendsCommonDragAdapterAssistant
and can direct the viewer on how to provide different kinds of DND Transfer Types. The array is returned in no particular order.- Returns:
- An array of
CommonDragAdapterAssistant
or an empty array.
-
findCommonDropAdapterAssistants
CommonDropAdapterAssistant[] findCommonDropAdapterAssistants(Object aDropTarget, TransferData theTransferType) This method returns an array ofCommonDropAdapterAssistant
from content extensions that are visible and active for the associatedINavigatorContentService
. The array is sorted by priority, with overrides taken into account.The array should be processed from the first element to the last, asking each extension to
CommonDropAdapterAssistant.validateDrop(Object, int, org.eclipse.swt.dnd.TransferData)
. The first to successfully validate the drop operation will have the opportunity tohandle the drop
- Parameters:
aDropTarget
- The target element in the viewer of the drop operation.theTransferType
- The transfer type of the current drop operation.- Returns:
- An array of
CommonDropAdapterAssistant
s that are defined by the set of org.eclipse.ui.navigator.navigatorContent/navigatorContent extensions that provide a possibleChildren expression that matches the given drop target.
-
findCommonDropAdapterAssistants
CommonDropAdapterAssistant[] findCommonDropAdapterAssistants(Object aDropTarget, IStructuredSelection theDragSelection) This method returns an array ofCommonDropAdapterAssistant
from content extensions that are visible and active for the associatedINavigatorContentService
.The array should be processed from the first element to the last, asking each extension to
CommonDropAdapterAssistant.validateDrop(Object, int, org.eclipse.swt.dnd.TransferData)
. The first to successfully validate the drop operation will have the opportunity tohandle the drop
- Parameters:
aDropTarget
- The target element in the viewer of the drop operation.theDragSelection
- The drag selection of the current drop operation.- Returns:
- An array of
CommonDropAdapterAssistant
s that are defined by the set of org.eclipse.ui.navigator.navigatorContent/navigatorContent extensions that provide a possibleChildren expression that matches the given drop target.
-