public interface IExtensions extends IPluginObject
Modifier and Type | Field and Description |
---|---|
static String |
P_EXTENSION_ORDER
A model property that will be used when order of extensions
changes in this object.
|
P_NAME
Modifier and Type | Method and Description |
---|---|
void |
add(IPluginExtension extension)
Adds a new extension to this object.
|
void |
add(IPluginExtensionPoint extensionPoint)
Adds a new extension point to this object.
|
IPluginExtensionPoint[] |
getExtensionPoints()
Returns extension points defined in this object.
|
IPluginExtension[] |
getExtensions()
Returns extensions defined in this object.
|
int |
getIndexOf(IPluginExtension e)
Returns the position of the extension in the receiver.
|
void |
remove(IPluginExtension extension)
Removes an extension from this object.
|
void |
remove(IPluginExtensionPoint extensionPoint)
Removes an extension point from this object.
|
void |
swap(IPluginExtension e1,
IPluginExtension e2)
Swaps the positions of the provided extensions
in the list of extensions.
|
getModel, getName, getParent, getPluginBase, getPluginModel, getResourceString, getTranslatedName, isInTheModel, isValid, setInTheModel, setName
getAdapter
static final String P_EXTENSION_ORDER
void add(IPluginExtension extension) throws CoreException
extension
- the extension objectCoreException
- if the model is not editablevoid add(IPluginExtensionPoint extensionPoint) throws CoreException
extensionPoint
- the extension pointCoreException
- if the model is not editableIPluginExtensionPoint[] getExtensionPoints()
IPluginExtension[] getExtensions()
void remove(IPluginExtension extension) throws CoreException
extension
- the extension objectCoreException
- if the model is not editablevoid remove(IPluginExtensionPoint extensionPoint) throws CoreException
extensionPoint
- the extension point objectCoreException
- if the model is not editablevoid swap(IPluginExtension e1, IPluginExtension e2) throws CoreException
e1
- the first extension objecte2
- the second extension objectCoreException
- if the model is not editableint getIndexOf(IPluginExtension e)
e
- the extension
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.