Eclipse Platform
2.0

org.eclipse.update.core
Interface IImport

All Superinterfaces:
IAdaptable
All Known Implementing Classes:
Import

public interface IImport
extends IAdaptable

Plug-in dependency entry. Describes a feture dependency on a particular plug-in. The dependency can specify a specific plug-in version and a matching rule for satisfying the dependency.

Clients may implement this interface. However, in most cases clients should directly instantiate or subclass the provided implementation of this interface.

Since:
2.0
See Also:
Import

Field Summary
static int RULE_COMPATIBLE
          Dependency can be satisfied only with plug-in version that is compatible with the specified version (either is equivalent, or greater minor identifier (but same major identifier)).
static int RULE_EQUIVALENT
          Dependency can be satisfied only with plug-in version that is equivalent to the specified version (same major and minor version identifier, greater than or equal service identifier).
static int RULE_GREATER_OR_EQUAL
          Dependency can be satisfied only with plug-in version that is greater or equal to the specified version.
static int RULE_NONE
          No matching rule specified
static int RULE_PERFECT
          Dependency can be satisfied only with plug-in version matching exactly the specified version.
 
Method Summary
 int getRule()
          Returns the matching rule for the dependency.
 VersionedIdentifier getVersionedIdentifier()
          Returns an identifier of the dependent plug-in.
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

RULE_NONE

public static final int RULE_NONE
No matching rule specified

Since:
2.0
See Also:
Constant Field Values

RULE_PERFECT

public static final int RULE_PERFECT
Dependency can be satisfied only with plug-in version matching exactly the specified version.

Since:
2.0
See Also:
Constant Field Values

RULE_EQUIVALENT

public static final int RULE_EQUIVALENT
Dependency can be satisfied only with plug-in version that is equivalent to the specified version (same major and minor version identifier, greater than or equal service identifier).

Since:
2.0
See Also:
Constant Field Values

RULE_COMPATIBLE

public static final int RULE_COMPATIBLE
Dependency can be satisfied only with plug-in version that is compatible with the specified version (either is equivalent, or greater minor identifier (but same major identifier)).

Since:
2.0
See Also:
Constant Field Values

RULE_GREATER_OR_EQUAL

public static final int RULE_GREATER_OR_EQUAL
Dependency can be satisfied only with plug-in version that is greater or equal to the specified version.

Since:
2.0
See Also:
Constant Field Values
Method Detail

getVersionedIdentifier

public VersionedIdentifier getVersionedIdentifier()
Returns an identifier of the dependent plug-in.

Returns:
plug-in identifier
Since:
2.0

getRule

public int getRule()
Returns the matching rule for the dependency.

Returns:
matching rule
Since:
2.0

Eclipse Platform
2.0

Copyright (c) IBM Corp. and others 2000, 2002. All Rights Reserved.