public class AbstractLinkedElementTypeIdentificator extends java.lang.Object implements ILinkedElementIdentificator
ILinkedElementIdentificator which does
nothing by default. In addition to ILinkedElementIdentificator it
also contains the method
initializeRestoredElement(IElement, ISystemImage, IProgressMonitor)
.| Constructor and Description |
|---|
AbstractLinkedElementTypeIdentificator() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getIcon(IResourceIdentifier pId)
Can return a custom icon for the linked element.
|
java.lang.String |
getParentResourceID(java.lang.String pId)
Gets the ID of the parent resource.
|
void |
initializeRestoredElement(IElement pElement,
ISystemImage pImage,
org.eclipse.core.runtime.IProgressMonitor pMon)
Initializes an
IElement that has been restored from cache, if any
initialization is needed. |
public AbstractLinkedElementTypeIdentificator()
public java.lang.Object getIcon(IResourceIdentifier pId)
ILinkedElementIdentificatorgetIcon in interface ILinkedElementIdentificatorpId - the resource identifiernull if no custom image
can be providedpublic java.lang.String getParentResourceID(java.lang.String pId)
ILinkedElementIdentificatorWhile this method usually returns a physical resource ID (e.g. an absolute OS file path), AWM will also check whether the ID equals the ID of the active AWM application. In that case, AWM triggers a refresh of the application children. This can be used to refresh the root containers level of an application.
getParentResourceID in interface ILinkedElementIdentificatorpId - the identifier for the main resource (which is a child of the
resource ID to be returned) or the ID of the active AWM
applicationnull if no parent resource
can be identifiedIResource.getID()public void initializeRestoredElement(IElement pElement, ISystemImage pImage, org.eclipse.core.runtime.IProgressMonitor pMon) throws TaurusCoreException
IElement that has been restored from cache, if any
initialization is needed. This method will be called for every linked
element type of an identificator which is loaded from cache.pElement - the element which has been loaded from cachepImage - the currently used system imagepMon - a progress monitorTaurusCoreException - if initializing the element failsCopyright © 2015 Micro Focus GmbH. All rights reserved.