本文整理汇总了Java中org.eclipse.core.runtime.IPluginDescriptor类的典型用法代码示例。如果您正苦于以下问题:Java IPluginDescriptor类的具体用法?Java IPluginDescriptor怎么用?Java IPluginDescriptor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IPluginDescriptor类属于org.eclipse.core.runtime包,在下文中一共展示了IPluginDescriptor类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: SootPlugin
import org.eclipse.core.runtime.IPluginDescriptor; //导入依赖的package包/类
/**
* 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());
}
示例2: findFileInPlugin
import org.eclipse.core.runtime.IPluginDescriptor; //导入依赖的package包/类
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());
}
示例3: DebugUI
import org.eclipse.core.runtime.IPluginDescriptor; //导入依赖的package包/类
/**
* @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;
}
}
示例4: getPluginWorkingLocation
import org.eclipse.core.runtime.IPluginDescriptor; //导入依赖的package包/类
@Override
public IPath getPluginWorkingLocation(IPluginDescriptor iPluginDescriptor) {
throw new UnsupportedOperationException();
}
示例5: getPluginWorkingLocation
import org.eclipse.core.runtime.IPluginDescriptor; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public IPath getPluginWorkingLocation(final IPluginDescriptor plugin) {
return resource().getPluginWorkingLocation(plugin);
}
示例6: LibraryPlugin
import org.eclipse.core.runtime.IPluginDescriptor; //导入依赖的package包/类
public LibraryPlugin( IPluginDescriptor descriptor )
{
super( descriptor );
}
示例7: getDeclaringPluginDescriptor
import org.eclipse.core.runtime.IPluginDescriptor; //导入依赖的package包/类
public IPluginDescriptor getDeclaringPluginDescriptor( )
{
throw new UnsupportedOperationException(
"getDeclaringPluginDescriptor is not implemented yet" );
}
示例8: getDeclaringPluginDescriptor
import org.eclipse.core.runtime.IPluginDescriptor; //导入依赖的package包/类
public IPluginDescriptor getDeclaringPluginDescriptor( )
throws InvalidRegistryObjectException
{
return null;
}
示例9: getPluginWorkingLocation
import org.eclipse.core.runtime.IPluginDescriptor; //导入依赖的package包/类
@Override
public IPath getPluginWorkingLocation(IPluginDescriptor plugin) {
throw new RuntimeException("Not implemented");
}