|
Eclipse Platform 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.eclipse.core.runtime.PlatformObject
|
+--org.eclipse.update.core.model.ModelObject
|
+--org.eclipse.update.core.model.FeatureModel
|
+--org.eclipse.update.core.Feature
Convenience implementation of a feature.
This class may be instantiated or subclassed by clients.
IFeature,
FeatureModel| Field Summary | |
static String |
FEATURE_FILE
Simple file name of the default feature manifest file |
static String |
FEATURE_XML
File extension of the default feature manifest file |
| Fields inherited from interface org.eclipse.update.core.IFeature |
STATUS_AMBIGUOUS, STATUS_HAPPY, STATUS_UNHAPPY |
| Constructor Summary | |
Feature()
Feature default constructor |
|
| Method Summary | |
boolean |
equals(Object object)
Compares two features for equality |
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. |
IURLEntry |
getLicense()
Returns the license information for the feature. |
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. |
IPluginEntry[] |
getPluginEntries()
Returns an array of plug-in entries referenced by this feature |
int |
getPluginEntryCount()
Returns the count of referenced plug-in entries. |
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. |
IFeatureReference |
install(IFeature targetFeature,
IVerificationListener verificationListener,
IProgressMonitor progress)
Install the contents of this feature into the specified target feature. |
void |
setFeatureContentProvider(IFeatureContentProvider featureContentProvider)
Sets the content provider for this feature. |
void |
setSite(ISite site)
Sets the site for this feature. |
String |
toString()
Return the string representation of this fetaure |
| Methods inherited from class org.eclipse.update.core.model.ModelObject |
arrayTypeFor, arrayTypeFor, assertIsWriteable, isReadOnly, markListReferenceReadOnly, markReferenceReadOnly, resolveListReference, resolveNLString, resolveReference, resolveURL |
| Methods inherited from class org.eclipse.core.runtime.PlatformObject |
getAdapter |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.update.core.IFeature |
getAffinityFeature, getApplication, getArch, getLabel, getNL, getOS, getProvider, getWS, isPrimary |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
| Field Detail |
public static final String FEATURE_FILE
public static final String FEATURE_XML
| Constructor Detail |
public Feature()
| Method Detail |
public boolean equals(Object object)
equals in class FeatureModelobject - feature object to compare with
true if the two features are equal,
false otherwisepublic VersionedIdentifier getVersionedIdentifier()
getVersionedIdentifier in interface IFeatureIFeature.getVersionedIdentifier()public ISite getSite()
getSite in interface IFeatureIFeature.getSite()public URL getURL()
getURL in interface IFeatureIFeature.getURL()public IURLEntry getUpdateSiteEntry()
getUpdateSiteEntry in interface IFeaturenull.IFeature.getUpdateSiteEntry()public IURLEntry[] getDiscoverySiteEntries()
getDiscoverySiteEntries in interface IFeatureIFeature.getDiscoverySiteEntries()public IInstallHandlerEntry getInstallHandlerEntry()
getInstallHandlerEntry in interface IFeaturenull if
none was specifiedIFeature.getInstallHandlerEntry()public IURLEntry getDescription()
getDescription in interface IFeaturenull.IFeature.getDescription()public IURLEntry getCopyright()
getCopyright in interface IFeaturenull.IFeature.getCopyright()public IURLEntry getLicense()
getLicense in interface IFeaturenull.IFeature.getLicense()public URL getImage()
getImage in interface IFeaturenull.IFeature.getImage()public IImport[] getImports()
getImports in interface IFeatureIFeature.getImports()
public IFeatureReference install(IFeature targetFeature,
IVerificationListener verificationListener,
IProgressMonitor progress)
throws InstallAbortedException,
CoreException
install in interface IFeaturetargetFeature - verificationListener - progress -
InstallAbortedException - when the user cancels the install
CoreExceptionIFeature.install(IFeature, IVerificationListener, IProgressMonitor)public IPluginEntry[] getPluginEntries()
getPluginEntries in interface IFeatureIFeature.getPluginEntries()public int getPluginEntryCount()
getPluginEntryCount in interface IFeatureIFeature.getPluginEntryCount()public INonPluginEntry[] getNonPluginEntries()
getNonPluginEntries in interface IFeatureIFeature.getNonPluginEntries()public int getNonPluginEntryCount()
getNonPluginEntryCount in interface IFeatureIFeature.getNonPluginEntryCount()
public IFeatureReference[] getIncludedFeatureReferences()
throws CoreException
getIncludedFeatureReferences in interface IFeatureCoreExceptionpublic long getDownloadSize()
getDownloadSize in interface IFeatureIFeature.getDownloadSize()public long getInstallSize()
getInstallSize in interface IFeatureIFeature.getInstallSize()
public IFeatureContentProvider getFeatureContentProvider()
throws CoreException
getFeatureContentProvider in interface IFeatureCoreExceptionIFeature.getFeatureContentProvider()
public IFeatureContentConsumer getFeatureContentConsumer()
throws CoreException
getFeatureContentConsumer in interface IFeatureCoreExceptionIFeature.getFeatureContentConsumer()
public void setSite(ISite site)
throws CoreException
setSite in interface IFeaturesite - the site
CoreException - site for this feature is already setIFeature.setSite(ISite)public void setFeatureContentProvider(IFeatureContentProvider featureContentProvider)
setFeatureContentProvider in interface IFeaturefeatureContentProvider - content providerIFeature.setFeatureContentProvider(IFeatureContentProvider)public String toString()
toString in class Object
|
Eclipse Platform 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||