public interface IElementHandleFactory
IElement
handles. An instance of
IElementHandleFactory
for a model can usually be obtained via
the model's context
by
context.get(IElementHandleFactory.class)
.
Note that, despite having a dependency on IResource
, this interface can
safely be used even when org.eclipse.core.resources
bundle is not
available. This is based on the "outward impression" of late resolution of
symbolic references a JVM must provide according to the JVMS.
Modifier and Type | Method and Description |
---|---|
IElement |
createFromHandleMemento(java.lang.String memento)
Returns the element handle created from the given handle memento
that was generated by
Elements.getHandleMemento(IElement) . |
IElement |
createFromResourceHandle(org.eclipse.core.resources.IResource resource)
Returns the handle of the element corresponding to the given resource.
|
IElement createFromHandleMemento(java.lang.String memento)
Elements.getHandleMemento(IElement)
.memento
- a handle memento (may be null
)null
if unable to create an element handle
from the given mementoIElement createFromResourceHandle(org.eclipse.core.resources.IResource resource)
resource
- a resource handle (may be null
)null
if unable to associate the given resource with
an elementCopyright (c) 2014, 2018 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0