public class VilHyperlinkFactory extends java.lang.Object implements IHyperlinkFactory<de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit>
| Modifier and Type | Field and Description |
|---|---|
static VilHyperlinkFactory |
INSTANCE |
static VilEcoreModelQuery |
MODEL_QUERY_INSTANCE |
static GenericEditorOpener<de.uni_hildesheim.sse.vilBuildLanguage.ImplementationUnit,de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit,Script,IBuildlangElement,ILanguageElement> |
OPENER |
| Constructor and Description |
|---|
VilHyperlinkFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.xtext.ui.editor.hyperlinking.AbstractHyperlink |
createHyperlink(org.eclipse.xtext.nodemodel.ILeafNode parseTreeElement,
de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit project)
Creates an hyperlink instance for the given
ILeafNode
which enables the jump to the element's declaration the node represents. |
GenericEditorOpener<?,de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit,?,?,?> |
getEditorOpener()
Returns the editor opener.
|
public static final VilEcoreModelQuery MODEL_QUERY_INSTANCE
public static final VilHyperlinkFactory INSTANCE
public static GenericEditorOpener<de.uni_hildesheim.sse.vilBuildLanguage.ImplementationUnit,de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit,Script,IBuildlangElement,ILanguageElement> OPENER
public org.eclipse.xtext.ui.editor.hyperlinking.AbstractHyperlink createHyperlink(org.eclipse.xtext.nodemodel.ILeafNode parseTreeElement,
de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit project)
IHyperlinkFactoryILeafNode
which enables the jump to the element's declaration the node represents.
This is a user visible feature as this hyperlink is shown when the user holds CTRL and points
to an element in an editor.createHyperlink in interface IHyperlinkFactory<de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit>parseTreeElement - the ILeafNode of the parsed resource for which this hyperlink
should be createdproject - the "project" the given node is located inpublic GenericEditorOpener<?,de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit,?,?,?> getEditorOpener()
IHyperlinkFactorygetEditorOpener in interface IHyperlinkFactory<de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit>Copyright © 2009 - 2018 SSE. All Rights Reserved.