/** * Create a DropAdapter that handles a drop based on the given content * service and selection provider. * * @param aContentService * The content service this Drop Adapter is associated with * @param aStructuredViewer * The viewer this DropAdapter is associated with. */ public CommonDropAdapter(INavigatorContentService aContentService, StructuredViewer aStructuredViewer) { super(aStructuredViewer); contentService = aContentService; dndService = (NavigatorDnDService) contentService.getDnDService(); }
.getDnDService().getCommonDragAssistants();
protected void initDragAndDrop() { getNavigatorContentService().getDnDService().bindDragAssistant(new ResourceDragAdapterAssistant()); super.initDragAndDrop(); } /**
@Override protected void initDragAndDrop() { getNavigatorContentService().getDnDService().bindDragAssistant(new ResourceDragAdapterAssistant()); super.initDragAndDrop(); } /**
.getDnDService().findCommonDropAdapterAssistants(target, selection);
INavigatorDnDService dndService = contentService.getDnDService(); CommonDragAdapterAssistant[] assistants = dndService .getCommonDragAssistants();