|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Feature defines the packaging "container" for a group of related plug-ins, plug-in fragments, and optionally non-plug-in files.
Features are treated purely as an installation and packaging construct. They do not play a role during Eclipse plug-in execution. They are simply an inclusive "manifest" of the plug-ins, fragments and other files that make up that feature. If features are logically made up of plug-ins from "sub-features", the top-level feature "manifest" must be fully resolved at packaging time.
Clients may implement this interface. However, in most cases clients should directly instantiate or subclass the provided implementation of this interface.
Feature
Field Summary | |
static int |
STATUS_AMBIGUOUS
Indicates a 'happy' feature A feature is considered to be 'ambiguous' in the context of a local site if all the plug-ins referenced by the feature are installed on the site and other version of any of the plug-ins are installed on any other site of the local site. |
static int |
STATUS_HAPPY
Indicates a 'happy' feature A feature is considered to be 'happy' in the context of a local site if all the plug-ins referenced by the feature are installed on the site and no other version of any of the plug-ins are installed on any other site of the local site. |
static int |
STATUS_UNHAPPY
Indicates an 'unhappy' feature A feature is considered to be 'unhappy' in the context of this site, if some of the plug-ins referenced by the feature are not installed on this site. |
Method Summary | |
String |
getAffinityFeature()
Returns an optional identifier of a colocation affinity feature. |
String |
getApplication()
Returns an optional identifier of an application to be used when starting up the platform with this feature as the primary feature. |
String |
getArch()
Returns optional system architecture specification. |
IURLEntry |
getCopyright()
Returns the copyright information for the feature. |
IURLEntry |
getDescription()
Returns the feature description. |
IURLEntry[] |
getDiscoverySiteEntries()
Return an array of information entries referencing locations of other update sites. |
long |
getDownloadSize()
Returns the download size of the feature, if it can be determined. |
IFeatureContentConsumer |
getFeatureContentConsumer()
Returns the content consumer for this feature. |
IFeatureContentProvider |
getFeatureContentProvider()
Returns the content provider for this feature. |
URL |
getImage()
Return optional image for the feature. |
IImport[] |
getImports()
Return a list of plug-in dependencies for this feature. |
IFeatureReference[] |
getIncludedFeatureReferences()
Returns an array of feature references included by this feature |
IInstallHandlerEntry |
getInstallHandlerEntry()
Returns and optional custom install handler entry. |
long |
getInstallSize()
Returns the install size of the feature, if it can be determined. |
String |
getLabel()
Returns the displayable label of the feature. |
IURLEntry |
getLicense()
Returns the license information for the feature. |
String |
getNL()
Returns optional locale specification. |
INonPluginEntry[] |
getNonPluginEntries()
Returns an array of non-plug-in entries referenced by this feature |
int |
getNonPluginEntryCount()
Returns the count of referenced non-plug-in entries. |
String |
getOS()
Returns optional operating system specification. |
IPluginEntry[] |
getPluginEntries()
Returns an array of plug-in entries referenced by this feature |
int |
getPluginEntryCount()
Returns the count of referenced plug-in entries. |
String |
getProvider()
Returns a displayable label identifying the provider of this feature |
ISite |
getSite()
Returns the site this feature is associated with. |
IURLEntry |
getUpdateSiteEntry()
Returns an information entry referencing the location of the feature update site. |
URL |
getURL()
Returns the feature URL. |
VersionedIdentifier |
getVersionedIdentifier()
Returns the feature identifier. |
String |
getWS()
Returns optional windowing system specification. |
IFeatureReference |
install(IFeature targetFeature,
IVerificationListener verificationListener,
IProgressMonitor monitor)
Install the contents of this feature into the specified target feature. |
boolean |
isPrimary()
Indicates whether the feature can be used as a primary feature. |
void |
setFeatureContentProvider(IFeatureContentProvider featureContentProvider)
Sets the content provider for this feature. |
void |
setSite(ISite site)
Sets the site for this feature. |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
Field Detail |
public static final int STATUS_HAPPY
ILocalSite#getStatus(IFeature)
,
Constant Field Valuespublic static final int STATUS_AMBIGUOUS
ILocalSite#getStatus(IFeature)
,
Constant Field Valuespublic static final int STATUS_UNHAPPY
ILocalSite#getStatus(IFeature)
,
Constant Field ValuesMethod Detail |
public VersionedIdentifier getVersionedIdentifier()
public ISite getSite()
public String getLabel()
null
.public URL getURL()
IFeatureFactory.createFeature(URL, ISite)
public IURLEntry getUpdateSiteEntry()
null
.public IURLEntry[] getDiscoverySiteEntries()
public String getProvider()
null
.public IInstallHandlerEntry getInstallHandlerEntry()
null
if
none was specifiedpublic IURLEntry getDescription()
null
.public IURLEntry getCopyright()
null
.public IURLEntry getLicense()
null
.public String getOS()
null
.BootLoader
public String getWS()
null
.BootLoader
public String getArch()
null
.BootLoader
public String getNL()
null
.public URL getImage()
null
.public IImport[] getImports()
public IFeatureReference install(IFeature targetFeature, IVerificationListener verificationListener, IProgressMonitor monitor) throws InstallAbortedException, CoreException
targetFeature
- verificationListener
- monitor
-
InstallAbortedException
- when the user cancels the install
CoreException
public IFeatureReference[] getIncludedFeatureReferences() throws CoreException
CoreException
public IPluginEntry[] getPluginEntries()
public int getPluginEntryCount()
public INonPluginEntry[] getNonPluginEntries()
public int getNonPluginEntryCount()
public long getDownloadSize()
ContentEntryModel.UNKNOWN_SIZE
public long getInstallSize()
ContentEntryModel.UNKNOWN_SIZE
public boolean isPrimary()
true
if this is a primary feature,
otherwise false
public String getApplication()
org.eclipse.core.runtime.applications
extension point.
null
public String getAffinityFeature()
null
.public IFeatureContentProvider getFeatureContentProvider() throws CoreException
CoreExcepton
CoreException
public IFeatureContentConsumer getFeatureContentConsumer() throws CoreException
CoreException
UnsupportedOperationException
public void setSite(ISite site) throws CoreException
site
- the site
CoreException
- site for this feature is already setpublic void setFeatureContentProvider(IFeatureContentProvider featureContentProvider)
featureContentProvider
- content providerIFeatureFactory.createFeature(URL, ISite)
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |