|
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.update.core.model.FeatureModelFactory | +--org.eclipse.update.core.BaseFeatureFactory
Base implementation of a feature factory. The factory is responsible for constructing the correct concrete implementation of the model objects for each particular feature type. This class creates model objects that correspond to the concrete implementation classes provided in this package. The actual feature creation method is subclass responsibility.
This class must be subclassed by clients.
IFeatureFactory
,
FeatureModelFactory
Constructor Summary | |
BaseFeatureFactory()
|
Method Summary | |
abstract IFeature |
createFeature(URL url,
ISite site)
Create feature. |
FeatureModel |
createFeatureModel()
Create a concrete implementation of feature model. |
ImportModel |
createImportModel()
Create a concrete implementation of import dependency model. |
InstallHandlerEntryModel |
createInstallHandlerEntryModel()
Create a concrete implementation of install handler model. |
NonPluginEntryModel |
createNonPluginEntryModel()
Create a concrete implementation of non-plug-in entry model. |
PluginEntryModel |
createPluginEntryModel()
Create a concrete implementation of plug-in entry model. |
URLEntryModel |
createURLEntryModel()
Create a concrete implementation of annotated URL model. |
protected ResourceBundle |
getResourceBundle(URL url)
Helper method to access resouce bundle for feature. |
Methods inherited from class org.eclipse.update.core.model.FeatureModelFactory |
parseFeature |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BaseFeatureFactory()
Method Detail |
public abstract IFeature createFeature(URL url, ISite site) throws CoreException
createFeature
in interface IFeatureFactory
url
- URL interpreted by the featuresite
- site to be associated with the feature
CoreException
IFeatureFactory.createFeature(URL,ISite)
protected ResourceBundle getResourceBundle(URL url) throws IOException, CoreException
url
- base URL used to load the resource bundle.
null
.
IOException
CoreException
public FeatureModel createFeatureModel()
createFeatureModel
in class FeatureModelFactory
Feature
public InstallHandlerEntryModel createInstallHandlerEntryModel()
createInstallHandlerEntryModel
in class FeatureModelFactory
InstallHandlerEntry
public ImportModel createImportModel()
createImportModel
in class FeatureModelFactory
Import
public PluginEntryModel createPluginEntryModel()
createPluginEntryModel
in class FeatureModelFactory
PluginEntry
public NonPluginEntryModel createNonPluginEntryModel()
createNonPluginEntryModel
in class FeatureModelFactory
NonPluginEntry
public URLEntryModel createURLEntryModel()
createURLEntryModel
in class FeatureModelFactory
URLEntry
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |