public class XbaseHyperLinkHelper extends TypeAwareHyperlinkHelper implements ISourceViewerAware
Modifier and Type | Class and Description |
---|---|
protected static class |
XbaseHyperLinkHelper.XbaseHyperlinkAcceptor
An acceptor that knows if it can accept more than one useful hyperlink.
|
HyperlinkHelper.HyperlinkAcceptor
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.jface.text.source.ISourceViewer |
sourceViewer |
Constructor and Description |
---|
XbaseHyperLinkHelper() |
Modifier and Type | Method and Description |
---|---|
protected void |
addOpenInferredTypeHyperlink(XtextResource resource,
JvmIdentifiableElement typedElement,
ILeafNode node,
IHyperlinkAcceptor acceptor) |
protected boolean |
canBeOverridden(org.eclipse.jdt.core.IMethod method) |
protected boolean |
canShowMany(IHyperlinkAcceptor acceptor)
Returns false if the acceptor can definitely not accept more than one hyperlink.
|
org.eclipse.jface.text.hyperlink.IHyperlink[] |
createHyperlinksByOffset(XtextResource resource,
int offset,
boolean createMultipleHyperlinks)
If multiple links are requested, all ambiguous candidates are provided for feature and constructor calls.
|
void |
createHyperlinksByOffset(XtextResource resource,
int offset,
IHyperlinkAcceptor acceptor) |
protected void |
createHyperlinksForCrossRef(XtextResource resource,
INode crossRefNode,
IHyperlinkAcceptor acceptor) |
protected void |
createHyperlinksTo(XtextResource resource,
INode node,
org.eclipse.emf.ecore.EObject target,
IHyperlinkAcceptor acceptor)
Produces hyperlinks for the given
node which is associated with a cross reference
that points to the referenced target . |
IBatchTypeResolver |
getBatchTypeResolver() |
protected boolean |
isNameNode(org.eclipse.emf.ecore.EObject element,
org.eclipse.emf.ecore.EStructuralFeature feature,
ILeafNode node) |
void |
setSourceViewer(org.eclipse.jface.text.source.ISourceViewer sourceViewer) |
createHyperlinksTo, getJdtHyperlinkFactory, setJdtHyperlinkFactory
getEObjectAtOffsetHelper, getHyperlinkProvider, getLabelProvider, getParentNodeWithCrossReference
public void setSourceViewer(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
setSourceViewer
in interface ISourceViewerAware
public org.eclipse.jface.text.hyperlink.IHyperlink[] createHyperlinksByOffset(XtextResource resource, int offset, boolean createMultipleHyperlinks)
createHyperlinksByOffset
in interface IHyperlinkHelper
createHyperlinksByOffset
in class HyperlinkHelper
public void createHyperlinksByOffset(XtextResource resource, int offset, IHyperlinkAcceptor acceptor)
createHyperlinksByOffset
in class HyperlinkHelper
protected boolean canShowMany(IHyperlinkAcceptor acceptor)
XbaseHyperlinkAcceptors
well. All other cases will assume true.protected void addOpenInferredTypeHyperlink(XtextResource resource, JvmIdentifiableElement typedElement, ILeafNode node, IHyperlinkAcceptor acceptor)
protected boolean isNameNode(org.eclipse.emf.ecore.EObject element, org.eclipse.emf.ecore.EStructuralFeature feature, ILeafNode node)
protected void createHyperlinksForCrossRef(XtextResource resource, INode crossRefNode, IHyperlinkAcceptor acceptor)
protected boolean canBeOverridden(org.eclipse.jdt.core.IMethod method)
protected void createHyperlinksTo(XtextResource resource, INode node, org.eclipse.emf.ecore.EObject target, IHyperlinkAcceptor acceptor)
HyperlinkHelper
node
which is associated with a cross reference
that points to the referenced target
.createHyperlinksTo
in class HyperlinkHelper
HyperlinkHelper.createHyperlinksTo(XtextResource, Region, EObject, IHyperlinkAcceptor)
public IBatchTypeResolver getBatchTypeResolver()