Class AbstractGrammerBasedEditDialog

    • Field Detail

      • ERROR_TYPE

        public static final String ERROR_TYPE
        Deprecated, for removal: This API element is subject to removal in a future version.
        The Constant ERROR_TYPE.
        See Also:
        Constant Field Values
      • WARNING_TYPE

        public static final String WARNING_TYPE
        Deprecated, for removal: This API element is subject to removal in a future version.
        The Constant WARNING_TYPE.
        See Also:
        Constant Field Values
      • newText

        protected String newText
        Deprecated, for removal: This API element is subject to removal in a future version.
        The new text.
      • context

        protected org.palladiosimulator.pcm.repository.Parameter[] context
        Deprecated, for removal: This API element is subject to removal in a future version.
        The context.
    • Constructor Detail

      • AbstractGrammerBasedEditDialog

        public AbstractGrammerBasedEditDialog​(Shell parent)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Constructor.
        Parameters:
        parent - shell
      • AbstractGrammerBasedEditDialog

        public AbstractGrammerBasedEditDialog​(Shell parent,
                                              org.palladiosimulator.pcm.repository.Parameter[] context)
        Deprecated, for removal: This API element is subject to removal in a future version.
        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)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Creates the source viewer.
        Parameters:
        parent - the parent
        ruler - the ruler
        styles - the styles
        Returns:
        the source viewer
      • getInitialText

        protected abstract String getInitialText()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Gets the initial text.
        Returns:
        the initial text
      • setDisplayTitle

        public void setDisplayTitle​(String newTitle)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Sets the display title.
        Parameters:
        newTitle - the new display title
      • cancelPressed

        protected void cancelPressed()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Overrides:
        cancelPressed in class Dialog
      • getTokenMapper

        protected abstract ITokenMapper getTokenMapper()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Gets the token mapper.
        Returns:
        the token mapper
      • getLexerClass

        protected abstract Class<?> getLexerClass()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Gets the lexer class.
        Returns:
        the lexer class
      • getTitle

        protected abstract String getTitle()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Gets the title.
        Returns:
        the title
      • parseInputAndRefreshAnnotations

        protected void parseInputAndRefreshAnnotations()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Parses the input and refresh annotations.
      • getLexer

        protected abstract org.antlr.runtime.Lexer getLexer​(String text)
        Deprecated, for removal: This API element is subject to removal in a future version.
        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
        Deprecated, for removal: This API element is subject to removal in a future version.
        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()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Gets the result.
        Returns:
        the result
      • configureShell

        protected void configureShell​(Shell newShell)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Overrides:
        configureShell in class Window
      • getResultText

        public String getResultText()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Gets the result text.
        Returns:
        the result text