|
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.FeatureReferenceModel | +--org.eclipse.update.core.FeatureReference
Convenience implementation of a feature reference.
This class may be instantiated or subclassed by clients.
IFeatureReference
,
FeatureReferenceModel
Constructor Summary | |
FeatureReference()
Feature reference default constructor |
Method Summary | |
void |
addCategory(ICategory category)
Adds a category to the referenced feature. |
ICategory[] |
getCategories()
Returns an array of categories the referenced feature belong to. |
IFeature |
getFeature()
Returns the feature this reference points to |
ISite |
getSite()
Returns the update site for the referenced feature |
VersionedIdentifier |
getVersionedIdentifier()
Returns the feature identifier. |
void |
setSite(ISite site)
Associates a site with the feature reference. |
void |
setURL(URL url)
Sets the feature reference URL. |
Methods inherited from class org.eclipse.update.core.model.FeatureReferenceModel |
addCategoryName, equals, getCategoryNames, getFeatureIdentifier, getFeatureVersion, getSiteModel, getType, getURL, getURLString, removeCategoryName, resolve, setCategoryNames, setFeatureIdentifier, setFeatureVersion, setSiteModel, setType, setURLString, toString |
Methods inherited from class org.eclipse.update.core.model.ModelObject |
arrayTypeFor, arrayTypeFor, assertIsWriteable, isReadOnly, markListReferenceReadOnly, markReadOnly, 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.IFeatureReference |
getURL |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
Constructor Detail |
public FeatureReference()
Method Detail |
public IFeature getFeature() throws CoreException
getFeature
in interface IFeatureReference
CoreException
public ISite getSite()
getSite
in interface IFeatureReference
IFeatureReference.getSite()
public ICategory[] getCategories()
getCategories
in interface IFeatureReference
IFeatureReference.getCategories()
public void addCategory(ICategory category)
addCategory
in interface IFeatureReference
category
- new categoryIFeatureReference.addCategory(ICategory)
public void setURL(URL url) throws CoreException
setURL
in interface IFeatureReference
url
- reference URL
CoreException
IFeatureReference.setURL(URL)
public void setSite(ISite site)
setSite
in interface IFeatureReference
site
- site for the feature referenceIFeatureReference.setSite(ISite)
public VersionedIdentifier getVersionedIdentifier() throws CoreException
getVersionedIdentifier
in interface IFeatureReference
CoreException
IFeatureReference.getVersionedIdentifier()
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |