|
Eclipse Platform 2.1 |
||||||||||
| 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, SITE_ACCESS_EXCEPTION |
| Constructor Summary | |
Site()
Constructor for Site |
|
| Method Summary | |
void |
addPluginEntry(IPluginEntry pluginEntry)
Adds a new plug-in entry to this site. |
IFeature |
createFeature(String type,
URL url)
Creates a new feature object. |
IFeature |
createFeature(String type,
URL url,
IProgressMonitor monitor)
Creates a new feature object. |
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. |
org.eclipse.update.configuration.IConfiguredSite |
getCurrentConfiguredSite()
Returns the IConfiguredSite for this site in the current
configuration or null if none found. |
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. |
ISiteFeatureReference |
getFeatureReference(IFeature feature)
Returns a reference to the specified feature on this site. |
ISiteFeatureReference[] |
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 |
ISiteFeatureReference[] |
getRawFeatureReferences()
Returns an array of references to features on this site. |
ISiteContentProvider |
getSiteContentProvider()
Returns the content provider for this site. |
URL |
getURL()
Returns the site URL |
IFeatureReference |
install(IFeature sourceFeature,
IFeatureReference[] optionalFeatures,
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,
IFeatureReference[] optionalFeatures,
IVerificationListener verificationListener,
IProgressMonitor progress)
Install the specified feature and listed optional features on this site. |
IFeatureReference |
install(IFeature sourceFeature,
IVerificationListener verificationListener,
IProgressMonitor progress)
Install the specified feature and all optional features 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, getResourceBundle, 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 ISiteFeatureReference[] getRawFeatureReferences()
getRawFeatureReferences in interface ISiteISite.getFeatureReferences()public ISiteFeatureReference[] getFeatureReferences()
ISite
getFeatureReferences in interface ISiteISite.getFeatureReferences()public ISiteFeatureReference 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.getDefaultPackagedFeatureType()public IPluginEntry[] getPluginEntries()
getPluginEntries in interface ISiteISite.getPluginEntries()public int getPluginEntryCount()
getPluginEntryCount in interface ISiteISite.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,
IFeatureReference[] optionalFeatures,
IVerificationListener verificationListener,
IProgressMonitor progress)
throws InstallAbortedException,
CoreException
install in interface ISitesourceFeature - feature to installoptionalFeatures - list of optional features to be installedverificationListener - 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,
IFeatureReference[] optionalFeatures,
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)public org.eclipse.update.configuration.IConfiguredSite getCurrentConfiguredSite()
ISiteIConfiguredSite for this site in the current
configuration or null if none found.
getCurrentConfiguredSite in interface ISiteISite.getCurrentConfiguredSite()
public IFeature createFeature(String type,
URL url)
throws CoreException
ISitenull is passed, default feature type will be used.
param url URL of the feature archive as listed in the site.
return newly created feature object, or a cached value if
caching is implemented by this site.
createFeature in interface ISiteCoreExceptionISite.createFeature(String, URL)
public IFeature createFeature(String type,
URL url,
IProgressMonitor monitor)
throws CoreException
ISitenull is passed, default feature type will be used.
param url URL of the feature archive as listed in the site.
return newly created feature object, or a cached value if
caching is implemented by this site.
createFeature in interface ISitemonitor - the progress monitor
CoreExceptionISite.createFeature(String, URL,
IProgressMonitor)
|
Eclipse Platform 2.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||