public class ElementListEntry extends AbstractElementListEntry
IElementListEntry.ID_PREFIX, INSERT, STATE_NEW, STATE_NONE| Constructor and Description |
|---|
ElementListEntry(IElementList pElementList,
java.lang.String pElementId,
ElementType pElementType)
Creates a new
ElementListEntry. |
ElementListEntry(IElementList pElementList,
java.lang.String pElementId,
ElementType pElementTyp,
int pState)
Constructor for creating element list entries with a custom state.
|
ElementListEntry(IElementList pElementList,
java.lang.String pElementListEntryID,
IElement pElement)
Constructor for loading an element list entry from cache.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(IElementListEntry pListEntry) |
void |
delete()
Removes this resource and all its children resources from cache.
|
IElementList |
getChildren(boolean pRefresh,
org.eclipse.core.runtime.IProgressMonitor pMon)
Deprecated.
Used
getChildren(EGetChildrenMode,IProgressMonitor)
to have more information as result. |
GetChildrenResult |
getChildren(EGetChildrenMode pType,
org.eclipse.core.runtime.IProgressMonitor pMon)
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() |
IElement |
getElement()
Gets the corresponding element.
|
IElementList |
getElementList()
Gets the element list of this entry.
|
IElementListEntry |
getParent() |
int |
getState()
Gets the state flag of this entry.
|
void |
removeChild(IElementListEntry pListEntry) |
void |
setParent(IElementListEntry pParentListEntry) |
void |
setState(int pOperator)
Sets the state flag of this entry.
|
java.lang.String |
toString() |
getAllPropertyValuesWithElement, getAllPropertyValuesWithElementStatic, getPropertyValueWithElement, getPropertyValueWithElementStatic, getTreeViewLabel, getTreeViewLabelStaticaddChildResource, addPropertyValue, addResourceChild, equals, getAllPropertyValues, getChildrenResources, getID, getName, getParentResource, getPropertyValue, getPropertyValueFromHierarchy, getResourceChildren, getValueOfLinkedProperty, hashCode, removeProperty, removeResourceChild, setName, setPropertyValuesaddChildResource, addPropertyValue, addResourceChild, getAllPropertyValues, getChildrenResources, getID, getName, getParentResource, getPropertyValue, getPropertyValueFromHierarchy, getResourceChildren, removeResourceChild, setName, setPropertyValuespublic ElementListEntry(IElementList pElementList, java.lang.String pElementId, ElementType pElementType) throws TaurusCoreException
ElementListEntry. If the corresponding Element
already exists it will be associated to this entry.pElementList - the IElementList that should contain this entrypElementId - the Element ID of the corresponding ElementpElementType - the Element Type of the corresponding ElementTaurusCoreException - if the element could not be retrievedpublic ElementListEntry(IElementList pElementList, java.lang.String pElementId, ElementType pElementTyp, int pState) throws TaurusCoreException
pElementList - the IElementList that should contain this entrypElementId - the Element ID of the corresponding ElementpElementTyp - the Element Type of the corresponding ElementpState - the element list entry stateTaurusCoreException - if the element could not be retrievedpublic ElementListEntry(IElementList pElementList, java.lang.String pElementListEntryID, IElement pElement)
pElementList - the element listpElementListEntryID - the cache IDpElement - the elementpublic IElement getElement()
IElementListEntrypublic int getState()
IElementListEntrypublic void setState(int pOperator)
IElementListEntrypOperator - the new state flagpublic IElementList getElementList()
IElementListEntrypublic IElementListEntry getParent()
public void setParent(IElementListEntry pParentListEntry)
pParentListEntry - the new tree table parent entrypublic java.util.List<IElementListEntry> getChildrenEntries()
public void addChild(IElementListEntry pListEntry)
pListEntry - the tree table child to be addedpublic void removeChild(IElementListEntry pListEntry)
pListEntry - the tree table child to be removedpublic void delete()
throws TaurusCoreException
IResourcedelete in interface IResourcedelete in class ResourceTaurusCoreException - if the deletion of the resource failsIResource.getChildrenResources()@Deprecated public IElementList getChildren(boolean pRefresh, org.eclipse.core.runtime.IProgressMonitor pMon) throws TaurusCoreException
getChildren(EGetChildrenMode,IProgressMonitor)
to have more information as result.IElementListEntrypRefresh - whether the children should be refreshed (or the cache can be
used)pMon - progress monitorIElementList or nullTaurusCoreException - if getting the children failspublic GetChildrenResult getChildren(EGetChildrenMode pType, org.eclipse.core.runtime.IProgressMonitor pMon) throws TaurusCoreException
IElementListEntryGetChildrenResult containing the
element list.pType - Gets how the getChildren should be processed. Whether the
children should be refreshed (or the cache can be used)pMon - progress monitorGetChildrenResult.This method must NOT return
null.TaurusCoreException - if getting the children failspublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2015 Micro Focus GmbH. All rights reserved.