Class VtlHyperlinkFactory
- java.lang.Object
-
- de.uni_hildesheim.sse.vil.templatelang.ui.hyperlinking.VtlHyperlinkFactory
-
- All Implemented Interfaces:
IHyperlinkFactory<de.uni_hildesheim.sse.vil.templatelang.templateLang.LanguageUnit>
public class VtlHyperlinkFactory extends java.lang.Object implements IHyperlinkFactory<de.uni_hildesheim.sse.vil.templatelang.templateLang.LanguageUnit>
VIL hyperlink factory.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description static VtlHyperlinkFactoryINSTANCEstatic VtlEcoreModelQueryMODEL_QUERY_INSTANCEstatic GenericEditorOpener<de.uni_hildesheim.sse.vil.templatelang.templateLang.LanguageUnit,de.uni_hildesheim.sse.vil.templatelang.templateLang.LanguageUnit,Template,ITemplateLangElement,ILanguageElement>OPENER
-
Constructor Summary
Constructors Constructor Description VtlHyperlinkFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.xtext.ui.editor.hyperlinking.AbstractHyperlinkcreateHyperlink(org.eclipse.xtext.nodemodel.ILeafNode parseTreeElement, de.uni_hildesheim.sse.vil.templatelang.templateLang.LanguageUnit project)Creates an hyperlink instance for the givenILeafNodewhich enables the jump to the element's declaration the node represents.GenericEditorOpener<?,de.uni_hildesheim.sse.vil.templatelang.templateLang.LanguageUnit,?,?,?>getEditorOpener()Returns the editor opener.
-
-
-
Field Detail
-
MODEL_QUERY_INSTANCE
public static final VtlEcoreModelQuery MODEL_QUERY_INSTANCE
-
INSTANCE
public static final VtlHyperlinkFactory INSTANCE
-
OPENER
public static GenericEditorOpener<de.uni_hildesheim.sse.vil.templatelang.templateLang.LanguageUnit,de.uni_hildesheim.sse.vil.templatelang.templateLang.LanguageUnit,Template,ITemplateLangElement,ILanguageElement> OPENER
-
-
Method Detail
-
createHyperlink
public org.eclipse.xtext.ui.editor.hyperlinking.AbstractHyperlink createHyperlink(org.eclipse.xtext.nodemodel.ILeafNode parseTreeElement, de.uni_hildesheim.sse.vil.templatelang.templateLang.LanguageUnit project)Description copied from interface:IHyperlinkFactoryCreates an hyperlink instance for the givenILeafNodewhich 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.- Specified by:
createHyperlinkin interfaceIHyperlinkFactory<de.uni_hildesheim.sse.vil.templatelang.templateLang.LanguageUnit>- Parameters:
parseTreeElement- theILeafNodeof the parsed resource for which this hyperlink should be createdproject- the "project" the given node is located in- Returns:
- the hyperlink
-
getEditorOpener
public GenericEditorOpener<?,de.uni_hildesheim.sse.vil.templatelang.templateLang.LanguageUnit,?,?,?> getEditorOpener()
Description copied from interface:IHyperlinkFactoryReturns the editor opener.- Specified by:
getEditorOpenerin interfaceIHyperlinkFactory<de.uni_hildesheim.sse.vil.templatelang.templateLang.LanguageUnit>- Returns:
- the editor opener
-
-