|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Included Feature reference. A reference to a included feature.
Clients may implement this interface. However, in most cases clients should directly instantiate or subclass the provided implementation of this interface.
FeatureReference
Method Summary | |
IFeature |
getFeature()
Deprecated. use getFeature(IProgressMonitor) instead |
IFeature |
getFeature(boolean perfectMatch,
org.eclipse.update.configuration.IConfiguredSite configuredSite)
Deprecated. use getFeature(boolean,IConfiguredSite,IProgressMonitor) instead |
IFeature |
getFeature(boolean perfectMatch,
org.eclipse.update.configuration.IConfiguredSite configuredSite,
IProgressMonitor monitor)
Returns the referenced feature. |
int |
getMatch()
Returns the matching rule for this included feature. |
int |
getSearchLocation()
Returns the search location for this included feature. |
boolean |
isOptional()
Returns true if the feature is optional, false otherwise. |
Methods inherited from interface org.eclipse.update.core.IFeatureReference |
getFeature, getName, getSite, getURL, getVersionedIdentifier, isPatch, setSite, setURL |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
Methods inherited from interface org.eclipse.update.core.IPlatformEnvironment |
getNL, getOS, getOSArch, getWS |
Method Detail |
public IFeature getFeature() throws CoreException
getFeature
in interface IFeatureReference
public IFeature getFeature(boolean perfectMatch, org.eclipse.update.configuration.IConfiguredSite configuredSite) throws CoreException
perfectMatch
- true
if the perfect match feature feature should be returned
false
if the best match feature should be returned.configuredSite
- the configured site to search for the Feature. If
the configured site is null
the search will be done in the current configured site.public IFeature getFeature(boolean perfectMatch, org.eclipse.update.configuration.IConfiguredSite configuredSite, IProgressMonitor monitor) throws CoreException
perfectMatch
- true
if the perfect match feature feature should be returned
false
if the best match feature should be returned.configuredSite
- the configured site to search for the Feature. If
the configured site is null
the search will be done in the current configured site.monitor
- the progress monitorpublic boolean isOptional()
true
if the feature is optional, false
otherwise.public int getMatch()
RULE_PERFECT
IUpdateConstants.RULE_PERFECT
,
IUpdateConstants.RULE_EQUIVALENT
,
IUpdateConstants.RULE_COMPATIBLE
,
IUpdateConstants.RULE_GREATER_OR_EQUAL
public int getSearchLocation()
SEARCH_ROOT
IUpdateConstants.SEARCH_ROOT
,
IUpdateConstants.SEARCH_SELF
|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |