Class IvmlHyperlinkFactory
- java.lang.Object
-
- de.uni_hildesheim.sse.ui.hyperlinking.IvmlHyperlinkFactory
-
- All Implemented Interfaces:
IHyperlinkFactory<de.uni_hildesheim.sse.ivml.Project>
public class IvmlHyperlinkFactory extends java.lang.Object implements IHyperlinkFactory<de.uni_hildesheim.sse.ivml.Project>
A IVML hyperlink factory.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description static IvmlHyperlinkFactoryINSTANCEstatic GenericEditorOpener<de.uni_hildesheim.sse.ivml.VariabilityUnit,de.uni_hildesheim.sse.ivml.Project,Project,ContainableModelElement,ModelElementTypeFinder.ModelElementDescription>OPENER
-
Constructor Summary
Constructors Constructor Description IvmlHyperlinkFactory()
-
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.ivml.Project project)Creates an hyperlink instance for the givenILeafNodewhich enables the jump to the element's declaration the node represents.GenericEditorOpener<?,de.uni_hildesheim.sse.ivml.Project,?,?,?>getEditorOpener()Returns the editor opener.
-
-
-
Field Detail
-
INSTANCE
public static final IvmlHyperlinkFactory INSTANCE
-
OPENER
public static GenericEditorOpener<de.uni_hildesheim.sse.ivml.VariabilityUnit,de.uni_hildesheim.sse.ivml.Project,Project,ContainableModelElement,ModelElementTypeFinder.ModelElementDescription> OPENER
-
-
Method Detail
-
createHyperlink
public org.eclipse.xtext.ui.editor.hyperlinking.AbstractHyperlink createHyperlink(org.eclipse.xtext.nodemodel.ILeafNode parseTreeElement, de.uni_hildesheim.sse.ivml.Project 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.ivml.Project>- 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.ivml.Project,?,?,?> getEditorOpener()
Description copied from interface:IHyperlinkFactoryReturns the editor opener.- Specified by:
getEditorOpenerin interfaceIHyperlinkFactory<de.uni_hildesheim.sse.ivml.Project>- Returns:
- the editor opener
-
-