Eclipse Platform
2.0

org.eclipse.update.core
Interface IImport

All Superinterfaces:
IAdaptable, IUpdateConstants
All Known Implementing Classes:
Import

public interface IImport
extends IAdaptable, IUpdateConstants

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 KIND_FEATURE
          The import relates to a feature
static int KIND_PLUGIN
          The import relates to a plugin
 
Fields inherited from interface org.eclipse.update.core.IUpdateConstants
RULE_COMPATIBLE, RULE_EQUIVALENT, RULE_GREATER_OR_EQUAL, RULE_NONE, RULE_PERFECT, SEARCH_ROOT, SEARCH_SELF
 
Method Summary
 int getKind()
          Returns the dependency kind
 int getRule()
          Returns the matching rule for the dependency.
 VersionedIdentifier getVersionedIdentifier()
          Returns an identifier of the dependent plug-in.
 boolean isPatch()
          Returns the patch mode.
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

KIND_PLUGIN

public static final int KIND_PLUGIN
The import relates to a plugin

Since:
2.0.2
See Also:
Constant Field Values

KIND_FEATURE

public static final int KIND_FEATURE
The import relates to a feature

Since:
2.0.2
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

getKind

public int getKind()
Returns the dependency kind

Returns:
KIND_PLUGIN if the dependency relates to a plugin, KIND_FEATURE if the dependency relates to a feature.
See Also:
KIND_PLUGIN, KIND_FEATURE

isPatch

public boolean isPatch()
Returns the patch mode. If the import is in patch mode, the referenced feature is considered a patch target, and the feature that owns the import is patch carrier. Patch carrier and patched feature are linked in a distinct way: if a patched feature is disabled, all the patches are disabled with it.

Returns:
true if the element represents a patch reference, false otherwise.

Eclipse Platform
2.0

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