| org.eclipse.pde.core.plugin.IPluginModelBase
All known Subclasses: org.eclipse.pde.internal.core.plugin.AbstractPluginModelBase, org.eclipse.pde.internal.core.text.plugin.PluginModelBase,
IPluginModelBase | public interface IPluginModelBase extends ISharedExtensionsModel,IModelChangeProvider(Code) | | This type of model is created by parsing the manifest file.
It serves as a base interface for both plug-in and
fragment models by holding data common to both.
If the file is a workspace resource, it will be
available as the underlying resource of the model.
The model may be read-only or editable.
It will also make a reference to the build.properties
model when created. The reference will be of the
same type as the model itself: if the model is
editable, it will attempt to obtain an exclusive
editable copy of build.properties model.
The plug-in model can be disabled. Disabling the
model will not change its data. Users of the
model will have to decide if the disabled state
if of any importance to them or not.
The model is capable of notifying listeners
about changes. An attempt to change a read-only
model will result in a CoreException.
|
createPluginBase | IPluginBase createPluginBase()(Code) | | Creates and return a top-level plugin model object
a top-level model object representing a plug-in or a fragment. |
getBuildModel | IBuildModel getBuildModel()(Code) | | Returns an associated build.properties model
that works in conjunction with this model.
the matching plugin.jars model |
getBundleDescription | BundleDescription getBundleDescription()(Code) | | Returns the bundle description of the plug-in
in case the plug-in uses the new OSGi bundle layout.
bundle description if this is an OSGi plug-in,or null if the plug-in is in a classicformat. since: 3.0 |
getNLLookupLocation | URL getNLLookupLocation()(Code) | | Returns the location where property file containing
translations of names in this model can be found.
the location of the property file with translations |
getPluginBase | IPluginBase getPluginBase()(Code) | | Returns a top-level model object. Equivalent to
calling getPluginBase(true) .
a top-level model object representing a plug-in or a fragment. |
getPluginBase | IPluginBase getPluginBase(boolean createIfMissing)(Code) | | Returns a top-level model object.
Parameters: createIfMissing - if true, root model object willbe created if not defined. a top-level model object |
getPluginFactory | IPluginModelFactory getPluginFactory()(Code) | | Returns the factory that can be used to
create new objects for this model
the plug-in model factory |
isEnabled | boolean isEnabled()(Code) | | Returns true if this model is currently enabled.
true if the model is enabled |
isFragmentModel | boolean isFragmentModel()(Code) | | Tests if this model is for the plug-in fragment.
true if the model is for the fragment,false otherwise. |
setBundleDescription | void setBundleDescription(BundleDescription description)(Code) | | Associates the bundle description of the plug-in
with this model in case the plug-in uses the new
OSGi bundle layout.
Parameters: description - bundle description to associatewith this model since: 3.0 |
setEnabled | void setEnabled(boolean enabled)(Code) | | Sets the enable state of the model.
Parameters: enabled - the new enable state |
|
|