|
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.SiteModel
|
+--org.eclipse.update.core.Site
Convenience implementation of a site.
This class may be instantiated or subclassed by clients.
ISite,
SiteModel| Field Summary | |
static String |
DEFAULT_FEATURE_PATH
Default path on a site where packaged features are located |
static String |
DEFAULT_INSTALLED_FEATURE_PATH
Default installation path for features |
static String |
DEFAULT_PLUGIN_PATH
Default installation path for plug-ins and plug-in fragments |
static String |
SITE_FILE
Default site manifest file name |
static String |
SITE_XML
Default site manifest extension |
| Fields inherited from interface org.eclipse.update.core.ISite |
DEFAULT_INSTALLED_FEATURE_TYPE, DEFAULT_PACKAGED_FEATURE_TYPE |
| Constructor Summary | |
Site()
Constructor for Site |
|
| Method Summary | |
void |
addPluginEntry(IPluginEntry pluginEntry)
Adds a new plug-in entry to this site. |
boolean |
equals(Object obj)
Compares two sites for equality |
IArchiveReference[] |
getArchives()
Returns an array of plug-in and non-plug-in archives located on this site |
ICategory[] |
getCategories()
Returns an array of categories defined by the site. |
ICategory |
getCategory(String key)
Returns the named site category. |
String |
getDefaultPackagedFeatureType()
Returns the default type for a packaged feature supported by this site |
IURLEntry |
getDescription()
Returns the site description. |
long |
getDownloadSizeFor(IFeature feature)
Get download size for the specified feature on this site. |
IFeatureReference |
getFeatureReference(IFeature feature)
Returns a reference to the specified feature on this site. |
IFeatureReference[] |
getFeatureReferences()
Returns an array of references to features on this site. |
long |
getInstallSizeFor(IFeature feature)
Get install size for the specified feature on this site. |
IPluginEntry[] |
getPluginEntries()
Returns an array of entries corresponding to plug-ins installed on this site. |
IPluginEntry[] |
getPluginEntriesOnlyReferencedBy(IFeature feature)
Returns an array of entries corresponding to plug-ins that are installed on this site and are referenced only by the specified feature. |
int |
getPluginEntryCount()
Returns the number of plug-ins installed on this site |
ISiteContentProvider |
getSiteContentProvider()
Returns the content provider for this site. |
URL |
getURL()
Returns the site URL |
IFeatureReference |
install(IFeature sourceFeature,
IFeatureContentConsumer parentContentConsumer,
IVerifier parentVerifier,
IVerificationListener verificationListener,
IProgressMonitor progress)
Install the specified feature on this site using the content consumer as a context to install the feature in. |
IFeatureReference |
install(IFeature sourceFeature,
IVerificationListener verificationListener,
IProgressMonitor progress)
Install the specified feature on this site. |
void |
remove(IFeature feature,
IProgressMonitor progress)
Remove (uninstall) the specified feature from this site. |
void |
setSiteContentProvider(ISiteContentProvider siteContentProvider)
Sets the site content provider. |
| 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, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.update.core.ISite |
getType |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
| Field Detail |
public static final String DEFAULT_INSTALLED_FEATURE_PATH
public static final String DEFAULT_PLUGIN_PATH
public static final String DEFAULT_FEATURE_PATH
public static final String SITE_FILE
public static final String SITE_XML
| Constructor Detail |
public Site()
| Method Detail |
public boolean equals(Object obj)
equals in class Objecttrue if the two sites are equal,
false otherwisepublic URL getURL()
getURL in interface ISiteISite.getURL()public IURLEntry getDescription()
getDescription in interface ISitenull.ISite.getDescription()public ICategory[] getCategories()
getCategories in interface ISiteISite.getCategories()public ICategory getCategory(String key)
getCategory in interface ISitekey - category name
null ifit does not existISite.getCategory(String)public IFeatureReference[] getFeatureReferences()
getFeatureReferences in interface ISiteISite.getFeatureReferences()public IFeatureReference getFeatureReference(IFeature feature)
getFeatureReference in interface ISitefeature - feature
null if this feature
cannot be located on this site.ISite.getFeatureReference(IFeature)public IArchiveReference[] getArchives()
getArchives in interface ISiteISite.getArchives()
public ISiteContentProvider getSiteContentProvider()
throws CoreException
getSiteContentProvider in interface ISiteCoreExceptionISite.getSiteContentProvider()public String getDefaultPackagedFeatureType()
getDefaultPackagedFeatureType in interface ISiteorg.eclipse.update.core.featureTypes extension point.ISite#getDefaultInstallableFeatureType()public IPluginEntry[] getPluginEntries()
getPluginEntries in interface ISiteIPluginContainer#getPluginEntries()public int getPluginEntryCount()
getPluginEntryCount in interface ISiteIPluginContainer#getPluginEntryCount()
public IPluginEntry[] getPluginEntriesOnlyReferencedBy(IFeature feature)
throws CoreException
getPluginEntriesOnlyReferencedBy in interface ISitefeature - feature
CoreException*public void addPluginEntry(IPluginEntry pluginEntry)
addPluginEntry in interface ISitepluginEntry - plug-in entry
java.jang.UnsupportedOperationExceptionISite.addPluginEntry(IPluginEntry)public long getDownloadSizeFor(IFeature feature)
getDownloadSizeFor in interface ISitefeature - candidate feature
java.jang.UnsupportedOperationExceptionISite.getDownloadSizeFor(IFeature)public long getInstallSizeFor(IFeature feature)
getInstallSizeFor in interface ISitejava.jang.UnsupportedOperationExceptionISite.getInstallSizeFor(IFeature)
public IFeatureReference install(IFeature sourceFeature,
IVerificationListener verificationListener,
IProgressMonitor progress)
throws InstallAbortedException,
CoreException
install in interface ISitesourceFeature - feature to installverificationListener - install verification listenerprogress - install monitor, can be null
InstallAbortedException - when the user cancels the install
CoreException
java.jang.UnsupportedOperationExceptionISite.install(IFeature, IVerificationListener, IProgressMonitor)
public IFeatureReference install(IFeature sourceFeature,
IFeatureContentConsumer parentContentConsumer,
IVerifier parentVerifier,
IVerificationListener verificationListener,
IProgressMonitor progress)
throws CoreException
parentContentConsumer - content consumer of the parent featureparentVerifier - verifier of the parent featureverificationListener - install verification listener
InstallAbortedException - when the user cancels the install
CoreException
java.jang.UnsupportedOperationException
public void remove(IFeature feature,
IProgressMonitor progress)
throws CoreException
remove in interface ISitefeature - feature to removeprogress - progress monitor
java.jang.UnsupportedOperationException
CoreExceptionISite.remove(IFeature, IProgressMonitor)public void setSiteContentProvider(ISiteContentProvider siteContentProvider)
setSiteContentProvider in interface ISitesiteContentProvider - site content providerISite.setSiteContentProvider(ISiteContentProvider)
|
Eclipse Platform 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||