public interface IPluginBase extends IExtensions, IIdentifiable
Modifier and Type | Field and Description |
---|---|
static String |
P_IMPORT_ORDER
A property that will be used to notify
that import order in a plug-in has changed.
|
static String |
P_LIBRARY_ORDER
A property that will be used to notify
that library order in a plug-in has changed.
|
static String |
P_PROVIDER
A property that will be used to notify that
the provider name has changed.
|
static String |
P_SCHEMA_VERSION
A property that will be used to notify
that 3.0 release compatibility flag has been changed.
|
static String |
P_VERSION
A property that will be used to notify
that a version has changed.
|
P_EXTENSION_ORDER
P_NAME
P_ID
Modifier and Type | Method and Description |
---|---|
void |
add(IPluginImport pluginImport)
Adds a new plug-in import to this plugin.
|
void |
add(IPluginLibrary library)
Adds a new library to this plugin.
|
IPluginImport[] |
getImports()
Returns imports defined in this plug-in.
|
IPluginLibrary[] |
getLibraries()
Returns libraries referenced in this plug-in.
|
String |
getProviderName()
Returns a name of the plug-in provider.
|
String |
getSchemaVersion()
Returns version of the manifest grammar
|
String |
getVersion()
Returns this plug-in's version
|
void |
remove(IPluginImport pluginImport)
Removes an import from the plugin.
|
void |
remove(IPluginLibrary library)
Removes a library from the plugin.
|
void |
setProviderName(String providerName)
Sets the name of the plug-in provider.
|
void |
setSchemaVersion(String schemaVersion)
Sets the R3.0 compatibility flag
|
void |
setVersion(String version)
Sets the version of the plug-in.
|
void |
swap(IPluginImport import1,
IPluginImport import2)
Swaps the positions of the plug-ins provided in
in the dependency list.
|
void |
swap(IPluginLibrary l1,
IPluginLibrary l2)
Swaps the positions of the provided libraries
in the list of libraries.
|
add, add, getExtensionPoints, getExtensions, getIndexOf, remove, remove, swap
getModel, getName, getParent, getPluginBase, getPluginModel, getResourceString, getTranslatedName, isInTheModel, isValid, setInTheModel, setName
getAdapter
getId, setId
static final String P_PROVIDER
static final String P_VERSION
static final String P_LIBRARY_ORDER
static final String P_IMPORT_ORDER
static final String P_SCHEMA_VERSION
void add(IPluginLibrary library) throws CoreException
library
- the new libraryCoreException
- if the model is not editablevoid add(IPluginImport pluginImport) throws CoreException
pluginImport
- the new import objectCoreException
- if the model is not editablevoid remove(IPluginImport pluginImport) throws CoreException
pluginImport
- the import objectCoreException
- if the model is not editableIPluginLibrary[] getLibraries()
IPluginImport[] getImports()
String getProviderName()
String getVersion()
void remove(IPluginLibrary library) throws CoreException
library
- the library objectCoreException
- if the model is not editablevoid setProviderName(String providerName) throws CoreException
providerName
- the new provider nameCoreException
- if the model is not editablevoid setVersion(String version) throws CoreException
version
- the new plug-in versionCoreException
- if the model is not editablevoid swap(IPluginLibrary l1, IPluginLibrary l2) throws CoreException
l1
- the first library objectl2
- the second library objectCoreException
- if the model is not editablevoid swap(IPluginImport import1, IPluginImport import2) throws CoreException
import1
- the first import objectimport2
- the second import objectCoreException
- if the model is not editableString getSchemaVersion()
void setSchemaVersion(String schemaVersion) throws CoreException
schemaVersion
- version of the manifest grammarCoreException
- if the model is not editable
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.