|
|
|
|
Uses of Class org.eclipse.core.runtime.PluginVersionIdentifier
Methods in
org.eclipse.core.runtime that return
PluginVersionIdentifier
|
PluginVersionIdentifier
|
IPluginPrerequisite.
getResolvedVersionIdentifier
()
Deprecated. Callers of this method should interrogate the current State
of the platform. For example,
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();
|
PluginVersionIdentifier
|
IPluginDescriptor.
getVersionIdentifier
()
Deprecated. Use
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.
|
PluginVersionIdentifier
|
IPluginPrerequisite.
getVersionIdentifier
()
Deprecated. Callers of this method should interrogate the current State
of the platform. For example,
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();
|
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.
|
|
|