use of org.eclipse.ui.navigator.CommonDragAdapterAssistant in project polymap4-core by Polymap4.
the class CommonDragAssistantDescriptor method createDragAssistant.
/**
* Create an instance of the {@link CommonDragAdapterAssistant} defined by
* this descriptor.
*
* @return an instance of the {@link CommonDragAdapterAssistant} or
* {@link SkeletonCommonDragAssistant} if a problem occurs with the
* instantiation.
*/
public CommonDragAdapterAssistant createDragAssistant() {
final CommonDragAdapterAssistant[] da = new CommonDragAdapterAssistant[1];
SafeRunner.run(new NavigatorSafeRunnable(element) {
public void run() throws Exception {
da[0] = (CommonDragAdapterAssistant) element.createExecutableExtension(ATT_CLASS);
}
});
if (da[0] != null)
return da[0];
return SkeletonCommonDragAssistant.INSTANCE;
}
Aggregations