|
Eclipse Platform Release 3.0 | ||||||||||
PREV LETTER NEXT LETTER | FRAMES NO FRAMES |
Platform.getExtensionRegistry().getExtension(id + "." + extensionName)where id is the plug-in id.
Platform.getExtensionRegistry().getExtensionPoint(id, extensionPointId)where id is the plug-in id.
Platform.getExtensionRegistry().getExtensionPoints(id)where id is the plug-in id.
Platform.getExtensionRegistry().getExtensions(id)where id is the plug-in id.
bundle.getEntry("/");where bundle is the bundle associated with the relevant plug-in or simply use the getEntry API to construct the desired URL.
bundle.getHeaders().get(org.osgi.framework.Constants.BUNDLE_NAME)where bundle is the bundle associated with the relevant plug-in.
element.getValue(); // the jar/dir containing the code
bundle.start()where bundle is the bundle associated with the relevant plug-in.
bundle.loadClass(className)where bundle is the bundle associated with the relevant plug-in.
import org.eclipse.osgi.util.ManifestElement; import org.osgi.framework.Constants; ... String requires = bundle.getHeaders().get(Constants.REQUIRE_BUNDLE); ManifestElement[] elements = ManifestElement.parseHeader(Constants.REQUIRE_BUNDLE, requires);where bundle is the bundle associated with the relevant plug-in. The resultant elements array contains one entry for each required plug-in.
bundle.getHeaders().get(org.osgi.framework.Constants.BUNDLE_VENDOR)where bundle is the bundle associated with the relevant plug-in.
State state = Platform.getPlatformAdmin().getState(); BundleDescription bundle = state.getBundle("my plug-in id", my plug-in version); BundleSpecification spec = bundle.getRequiredBundle("required plug-in id"); BundleDescription prereq = spec.getSupplier();
Platform.getResourceBundle(bundle)where bundle is the bundle associated with the relevant plug-in.
Platform.getResourceString(bundle, value)where bundle is the bundle associated with the relevant plug-in.
Platform.getResourceString(bundle, value, resourceBundle)where bundle is the bundle associated with the relevant plug-in.
import org.eclipse.osgi.util.ManifestElement; import org.osgi.framework.Constants; ... String requires = bundle.getHeaders().get(Constants.BUNDLE_CLASSPATH); ManifestElement[] elements = ManifestElement.parseHeader(Constants.BUNDLE_CLASSPATH, requires);where bundle is the bundle associated with the relevant plug-in. The resultant elements array contains one entry for each entry on the bundle's classpath..
The title is used to populate the title bar of this part's visual container.
It is considered bad practise to overload or extend this method.The title is used to populate the title bar of this part's visual container.
It is considered bad practise to overload or extend this method.bundle.getSymbolicName()where bundle is the bundle associated with the relevant plug-in.
element.getValue();
String version = (String) bundle.getHeaders().get(org.osgi.framework.Constants.BUNDLE_VERSION); new PluginVersionIdentifier(version);where bundle is the bundle associated with the relevant plug-in.
State state = Platform.getPlatformAdmin().getState(); BundleDescription bundle = state.getBundle("my plug-in id", my plug-in version); BundleSpecification spec = bundle.getRequiredBundle("required plug-in id"); Version reqMinVersion = spec.getVersionRange().getMinimum();
|
Eclipse Platform Release 3.0 | ||||||||||
PREV LETTER NEXT LETTER | FRAMES NO FRAMES |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.