public static IObjectActionDelegate findPopupMenusObjectAction(String pluginId, String actionId) { Platform.getBundle(pluginId); try { return (IObjectActionDelegate) ExtensionPointUtil.findClassByElementId( "org.eclipse.ui.popupMenus", actionId); // $NON-NLS-1$ } catch (CoreException ex) { ModelUIPlugin.getPluginLog().logError(ex); } return null; }
public static IImportWizard findImportWizardsItem(String pluginId, String wizardId) { Platform.getBundle(pluginId); try { return (IImportWizard) ExtensionPointUtil.findClassByElementId( "org.eclipse.ui.importWizards", wizardId); // $NON-NLS-1$ } catch (CoreException ex) { ModelUIPlugin.getPluginLog().logError(ex); } return null; }