public interface IElementListEntry extends IResource
IElement within an IElementList.
While only a single IElement instance can exist per unique ID, it is common
that the element is contained in several element lists.
Example: Action A creates an element lists of all files within a
folder. Action B shows filtered contents of the folder. All of the
elements in the created list of action B are also contained in the
list of action A.
As a consequence, an IElement can be represented by several
IElementListEntrys, while an IElementListEntry can only represent a
single IElement.
Additionally element list entries can have additional attributes which do not belong to the element (type). In contrast to element properties, they can have different values for different entries pointing to the same element.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ID_PREFIX
Cache ID prefix.
|
static int |
INSERT
Deprecated.
use
STATE_NEW instead. |
static int |
STATE_NEW
State flag for a newly inserted element list entry.
|
static int |
STATE_NONE
Neutral state flag (default)
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(IElementListEntry pListEntry)
Deprecated.
Used for tree tables only. This will be moved into UI in
future.
|
java.util.Map<Property,IPropertyValue> |
getAllPropertyValuesWithElement()
Returns a map off all Properties from this element list entry and its
corresponding Element.
|
IElementList |
getChildren(boolean pRefresh,
org.eclipse.core.runtime.IProgressMonitor pMonitor)
Deprecated.
Used
getChildren(EGetChildrenMode,IProgressMonitor)
to have more information as result. |
GetChildrenResult |
getChildren(EGetChildrenMode pType,
org.eclipse.core.runtime.IProgressMonitor pMonitor)
If a GetChildren action was modelled for the element type of the entries
Element, this method returns a
GetChildrenResult containing the
element list. |
java.util.List<IElementListEntry> |
getChildrenEntries()
Deprecated.
Used for tree tables only. This will be moved into UI in
future. Use
getElementList() to get the lists
elements. |
IElement |
getElement()
Gets the corresponding element.
|
IElementList |
getElementList()
Gets the element list of this entry.
|
IElementListEntry |
getParent()
Deprecated.
Used for tree tables only. This will be moved into UI in
future. Use
IResource.getParentResource() instead. |
IPropertyValue |
getPropertyValueWithElement(Property pProp)
Can return the property value of the entry as well as of the
corresponding
IElement. |
int |
getState()
Gets the state flag of this entry.
|
java.lang.String |
getTreeViewLabel()
Returns an element label, which consists of element property values that
have the attribute
isTreeViewLabel set to true. |
void |
removeChild(IElementListEntry pListEntry)
Deprecated.
Used for tree tables only. This will be moved into UI in
future. Use
IResource.getChildrenResources() and
IResource.delete() to remove a specific child resource. |
void |
setParent(IElementListEntry pParentListEntry)
Deprecated.
Used for tree tables only. This will be moved into UI in
future.
|
void |
setState(int pState)
Sets the state flag of this entry.
|
addChildResource, addPropertyValue, addResourceChild, delete, getAllPropertyValues, getChildrenResources, getID, getName, getParentResource, getPropertyValue, getPropertyValueFromHierarchy, getResourceChildren, removeResourceChild, setName, setPropertyValues@Deprecated static final int INSERT
STATE_NEW instead.static final int STATE_NONE
static final int STATE_NEW
static final java.lang.String ID_PREFIX
IElement getElement()
IElementList getElementList()
int getState()
void setState(int pState)
pState - the new state flag@Deprecated IElementListEntry getParent()
IResource.getParentResource() instead.@Deprecated void setParent(IElementListEntry pParentListEntry)
pParentListEntry - the new tree table parent entry@Deprecated java.util.List<IElementListEntry> getChildrenEntries()
getElementList() to get the lists
elements.@Deprecated void addChild(IElementListEntry pListEntry)
pListEntry - the tree table child to be added@Deprecated void removeChild(IElementListEntry pListEntry)
IResource.getChildrenResources() and
IResource.delete() to remove a specific child resource.pListEntry - the tree table child to be removed@Deprecated IElementList getChildren(boolean pRefresh, org.eclipse.core.runtime.IProgressMonitor pMonitor) throws TaurusCoreException
getChildren(EGetChildrenMode,IProgressMonitor)
to have more information as result.pRefresh - whether the children should be refreshed (or the cache can be
used)pMonitor - progress monitorIElementList or nullTaurusCoreException - if getting the children failsGetChildrenResult getChildren(EGetChildrenMode pType, org.eclipse.core.runtime.IProgressMonitor pMonitor) throws TaurusCoreException
GetChildrenResult containing the
element list.pType - Gets how the getChildren should be processed. Whether the
children should be refreshed (or the cache can be used)pMonitor - progress monitorGetChildrenResult.This method must NOT return
null.TaurusCoreException - if getting the children failsIPropertyValue getPropertyValueWithElement(Property pProp)
IElement. If both have a property value for the
desired property, the element list entry property value will be returned.pProp - the desired propertyIPropertyValue or nulljava.util.Map<Property,IPropertyValue> getAllPropertyValuesWithElement()
Modifying this list will not modify any Properties of this entry or its Element.
getElement(),
IResource.getAllPropertyValues()java.lang.String getTreeViewLabel()
isTreeViewLabel set to true.Copyright © 2015 Micro Focus GmbH. All rights reserved.