Class AbstractGrammerBasedEditDialog

    • Field Detail

      • newText

        protected String newText
        The new text.
      • context

        protected org.palladiosimulator.pcm.repository.Parameter[] context
        The context.
    • Constructor Detail

      • AbstractGrammerBasedEditDialog

        public AbstractGrammerBasedEditDialog​(Shell parent)
        Constructor.
        Parameters:
        parent - shell
      • AbstractGrammerBasedEditDialog

        public AbstractGrammerBasedEditDialog​(Shell parent,
                                              org.palladiosimulator.pcm.repository.Parameter[] context)
        Constructor.
        Parameters:
        parent - shell
        context - - A list of parameters used in code completion
    • Method Detail

      • createSourceViewer

        protected SourceViewer createSourceViewer​(Composite parent,
                                                  CompositeRuler ruler,
                                                  int styles)
        Creates the source viewer.
        Parameters:
        parent - the parent
        ruler - the ruler
        styles - the styles
        Returns:
        the source viewer
      • getInitialText

        protected abstract String getInitialText()
        Gets the initial text.
        Returns:
        the initial text
      • setDisplayTitle

        public void setDisplayTitle​(String newTitle)
        Sets the display title.
        Parameters:
        newTitle - the new display title
      • getTokenMapper

        protected abstract ITokenMapper getTokenMapper()
        Gets the token mapper.
        Returns:
        the token mapper
      • getLexerClass

        protected abstract Class<?> getLexerClass()
        Gets the lexer class.
        Returns:
        the lexer class
      • getTitle

        protected abstract String getTitle()
        Gets the title.
        Returns:
        the title
      • parseInputAndRefreshAnnotations

        protected void parseInputAndRefreshAnnotations()
        Parses the input and refresh annotations.
      • getLexer

        protected abstract org.antlr.runtime.Lexer getLexer​(String text)
        Gets the lexer.
        Parameters:
        text - the text
        Returns:
        the lexer
      • parse

        protected abstract EObject parse​(org.antlr.runtime.Lexer lexer)
                                  throws org.antlr.runtime.RecognitionException,
                                         StoExParserException
        Parses the.
        Parameters:
        lexer - the lexer
        Returns:
        the e object
        Throws:
        org.antlr.runtime.RecognitionException - the recognition exception
        StoExParserException - the sto ex parser exception
      • getResult

        protected Object getResult()
        Gets the result.
        Returns:
        the result
      • getResultText

        public String getResultText()
        Gets the result text.
        Returns:
        the result text