/** * The constructor. */ public SootPlugin(IPluginDescriptor descriptor) { super(descriptor); plugin = this; // should work from startUp method soot_output_doc = new SootDocument(); soot_output_doc.startUp(); try { resourceBundle= ResourceBundle.getBundle(ISootConstants.SOOT_PLUGIN_RESOURCES_ID); } catch (MissingResourceException x) { resourceBundle = null; } // maybe should go in startUp method // resource manager setManager(new SootResourceManager()); PlatformUI.getWorkbench().addWindowListener(new SootWorkbenchListener()); setPartManager(new SootPartManager()); }
private Path findFileInPlugin(final String plugin, final String file) throws MalformedURLException, IOException { final IPluginRegistry registry = Platform.getPluginRegistry(); final IPluginDescriptor descriptor = registry.getPluginDescriptor(plugin); final URL pluginURL = descriptor.getInstallURL(); final URL jarURL = new URL(pluginURL, file); final URL localJarURL = Platform.asLocalURL(jarURL); return new Path(localJarURL.getPath()); }
/** * @param descriptor */ public DebugUI( IPluginDescriptor descriptor ) { plugin = this; try { resourceBundle = ResourceBundle.getBundle( "org.eclipse.bird.report.debug.ui.DebugUIResources" ); //$NON-NLS-1$ } catch ( MissingResourceException _ex ) { resourceBundle = null; } }
@Override public IPath getPluginWorkingLocation(IPluginDescriptor iPluginDescriptor) { throw new UnsupportedOperationException(); }
/** * {@inheritDoc} */ @Override public IPath getPluginWorkingLocation(final IPluginDescriptor plugin) { return resource().getPluginWorkingLocation(plugin); }
public LibraryPlugin( IPluginDescriptor descriptor ) { super( descriptor ); }
public IPluginDescriptor getDeclaringPluginDescriptor( ) { throw new UnsupportedOperationException( "getDeclaringPluginDescriptor is not implemented yet" ); }
public IPluginDescriptor getDeclaringPluginDescriptor( ) throws InvalidRegistryObjectException { return null; }
@Override public IPath getPluginWorkingLocation(IPluginDescriptor plugin) { throw new RuntimeException("Not implemented"); }