Eclipse Platform
Release 3.1

Uses of Class
org.eclipse.core.runtime.PluginVersionIdentifier

Packages that use PluginVersionIdentifier
org.eclipse.core.runtime Provides core support for plug-ins and the plug-in registry.  
org.eclipse.update.core Provides support for extending the base installation and update services.  
 

Uses of PluginVersionIdentifier in org.eclipse.core.runtime
 

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 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();
 
 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.
 

Methods in org.eclipse.core.runtime with parameters of type PluginVersionIdentifier
 boolean PluginVersionIdentifier.isGreaterOrEqualTo(PluginVersionIdentifier id)
          Compares two version identifiers to see if this one is greater than or equal to the argument.
 boolean PluginVersionIdentifier.isCompatibleWith(PluginVersionIdentifier id)
          Compares two version identifiers for compatibility.
 boolean PluginVersionIdentifier.isEquivalentTo(PluginVersionIdentifier id)
          Compares two version identifiers for equivalency.
 boolean PluginVersionIdentifier.isPerfect(PluginVersionIdentifier id)
          Compares two version identifiers for perfect equality.
 boolean PluginVersionIdentifier.isGreaterThan(PluginVersionIdentifier id)
          Compares two version identifiers for order using multi-decimal comparison.
 IPluginDescriptor IPluginRegistry.getPluginDescriptor(String pluginId, PluginVersionIdentifier version)
          Deprecated. IPluginDescriptor was refactored in Eclipse 3.0. The getPluginDescriptor() method may only be called by plug-ins which explicitly require the org.eclipse.core.runtime.compatibility plug-in. See the comments on IPluginDescriptor and its methods for details.
 

Uses of PluginVersionIdentifier in org.eclipse.update.core
 

Methods in org.eclipse.update.core that return PluginVersionIdentifier
 PluginVersionIdentifier VersionedIdentifier.getVersion()
          Returns the version
 


Eclipse Platform
Release 3.1

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.