Class VilHyperlinkFactory

  • All Implemented Interfaces:
    IHyperlinkFactory<de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit>

    public class VilHyperlinkFactory
    extends java.lang.Object
    implements IHyperlinkFactory<de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit>
    VIL hyperlink factory.
    Author:
    Holger Eichelberger
    • Constructor Detail

      • VilHyperlinkFactory

        public VilHyperlinkFactory()
    • Method Detail

      • createHyperlink

        public org.eclipse.xtext.ui.editor.hyperlinking.AbstractHyperlink createHyperlink​(org.eclipse.xtext.nodemodel.ILeafNode parseTreeElement,
                                                                                          de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit project)
        Description copied from interface: IHyperlinkFactory
        Creates an hyperlink instance for the given ILeafNode 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.
        Specified by:
        createHyperlink in interface IHyperlinkFactory<de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit>
        Parameters:
        parseTreeElement - the ILeafNode of the parsed resource for which this hyperlink should be created
        project - the "project" the given node is located in
        Returns:
        the hyperlink
      • getEditorOpener

        public GenericEditorOpener<?,​de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit,​?,​?,​?> getEditorOpener()
        Description copied from interface: IHyperlinkFactory
        Returns the editor opener.
        Specified by:
        getEditorOpener in interface IHyperlinkFactory<de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit>
        Returns:
        the editor opener