public interface IPluginParent extends IPluginObject
Modifier and Type | Field and Description |
---|---|
static String |
P_SIBLING_ORDER
A property that will be used when firing notification
of the sibling swap.
|
P_NAME
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
IPluginObject child)
Adds a child object at the specified index.
|
void |
add(IPluginObject child)
Adds a child object.
|
int |
getChildCount()
Returns the number of children
currently owned by this parent.
|
IPluginObject[] |
getChildren()
Returns the children owned by this parent.
|
int |
getIndexOf(IPluginObject child)
Returns the position of the child in this parent.
|
void |
remove(IPluginObject child)
Removes a child object.
|
void |
swap(IPluginObject child1,
IPluginObject child2)
Swaps the position of of the provided siblings
in the parent.
|
getModel, getName, getParent, getPluginBase, getPluginModel, getResourceString, getTranslatedName, isInTheModel, isValid, setInTheModel, setName
getAdapter
static final String P_SIBLING_ORDER
void add(int index, IPluginObject child) throws CoreException
index
- the location of the childchild
- the object to addCoreException
- if the model is not editablevoid add(IPluginObject child) throws CoreException
child
- the object to addCoreException
- if the model is not editableint getChildCount()
int getIndexOf(IPluginObject child)
child
- a child of this parentvoid swap(IPluginObject child1, IPluginObject child2) throws CoreException
child1
- the first childchild2
- the second childCoreException
- thrown if the model is not editable.IPluginObject[] getChildren()
void remove(IPluginObject child) throws CoreException
child
- the object to removeCoreException
- if the model is not editable
Copyright (c) 2000, 2017 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.