Java 类org.eclipse.core.runtime.IPluginDescriptor 实例源码

项目:JAADAS    文件:SootPlugin.java   
/**
 * 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());
}
项目:PerformanceHat    文件:JavaProjectFixture.java   
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());
}
项目:birt    文件:DebugUI.java   
/**
 * @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;
    }
}
项目:che    文件:Project.java   
@Override
public IPath getPluginWorkingLocation(IPluginDescriptor iPluginDescriptor) {
  throw new UnsupportedOperationException();
}
项目:PerformanceHat    文件:AbstractProjectDecorator.java   
/**
 * {@inheritDoc}
 */
@Override
public IPath getPluginWorkingLocation(final IPluginDescriptor plugin) {
  return resource().getPluginWorkingLocation(plugin);
}
项目:birt    文件:LibraryPlugin.java   
public LibraryPlugin( IPluginDescriptor descriptor )
{
    super( descriptor );
}
项目:birt    文件:ExtensionPoint.java   
public IPluginDescriptor getDeclaringPluginDescriptor( )
{
    throw new UnsupportedOperationException(
            "getDeclaringPluginDescriptor is not implemented yet" );
}
项目:birt    文件:Extension.java   
public IPluginDescriptor getDeclaringPluginDescriptor( )
        throws InvalidRegistryObjectException
{
    return null;
}
项目:Pydev    文件:AbstractIProjectStub.java   
@Override
public IPath getPluginWorkingLocation(IPluginDescriptor plugin) {
    throw new RuntimeException("Not implemented");
}