1 11 12 package org.eclipse.ui.internal.navigator.extensions; 13 14 import org.eclipse.core.runtime.CoreException; 15 import org.eclipse.core.runtime.IConfigurationElement; 16 import org.eclipse.ui.internal.navigator.NavigatorPlugin; 17 import org.eclipse.ui.navigator.CommonDragAdapterAssistant; 18 19 27 public final class CommonDragAssistantDescriptor implements IViewerExtPtConstants { 28 29 private IConfigurationElement element; 30 31 32 CommonDragAssistantDescriptor(IConfigurationElement aConfigElement) { 33 element = aConfigElement; 34 } 35 36 44 public CommonDragAdapterAssistant createDragAssistant() { 45 46 try { 47 return (CommonDragAdapterAssistant) element 48 .createExecutableExtension(ATT_CLASS); 49 } catch (CoreException e) { 50 NavigatorPlugin.logError(0, e.getMessage(), e); 51 } catch (RuntimeException re) { 52 NavigatorPlugin.logError(0, re.getMessage(), re); 53 } 54 return SkeletonCommonDragAssistant.INSTANCE; 55 56 } 57 58 } 59 | Popular Tags |