public interface ISourceElementImpl extends IElementImpl, ISourceElement
ISourceElement
s must implement this interface.Modifier and Type | Method and Description |
---|---|
ISourceElement |
getSourceElementAt_(int position,
IContext context,
org.eclipse.core.runtime.IProgressMonitor monitor)
Returns the smallest element within this element that includes
the given source position, or
null if the given position
is not within the source range of this element. |
ISourceElementInfo |
getSourceElementInfo_(IContext context,
org.eclipse.core.runtime.IProgressMonitor monitor)
Returns an object holding cached structure and properties for this element.
|
equalsAndSameParentChain_, exists_, getChildren_, getChildrenOfType_, getHandleMemento_, getLocationUri_, getModel_, getName_, getParent_, getResource_, getRoot_, toDisplayString_, toString_
ISourceElement getSourceElementAt_(int position, IContext context, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
null
if the given position
is not within the source range of this element. If no finer grained
element is found at the position, this element itself is returned.
Implementations are encouraged to support the following standard options, which may be specified in the given context:
BASE_SNAPSHOT
-
A snapshot on which the given position is based, or null
if the snapshot is unknown or does not matter.
position
- a source position (0-based)context
- the operation context (not null
)monitor
- a progress monitor, or null
if progress reporting is not desired. The caller must not rely on
IProgressMonitor.done()
having been called by the receivernull
if none (including this element itself)org.eclipse.core.runtime.CoreException
- if this element does not exist or if an
exception occurs while accessing its corresponding resourceStaleSnapshotException
- if snapshot inconsistency is detected,
i.e., this element's current structure and properties are based on
a different snapshotorg.eclipse.core.runtime.OperationCanceledException
- if this method is canceledISourceElementInfo getSourceElementInfo_(IContext context, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
context
- the operation context (not null
)monitor
- a progress monitor, or null
if progress reporting is not desired. The caller must not rely on
IProgressMonitor.done()
having been called by the receiverISourceElementInfo
for this element
(never null
)org.eclipse.core.runtime.CoreException
- if this element does not exist or if an
exception occurs while accessing its corresponding resourceorg.eclipse.core.runtime.OperationCanceledException
- if this method is canceledCopyright (c) 2014, 2019 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0