Class DefaultCodeSupport

    • Constructor Detail

      • DefaultCodeSupport

        public DefaultCodeSupport()
    • Method Detail

      • createNavigator

        public Navigator createNavigator​(NavigationHost host)
        Description copied from interface: CodeSupport
        Creates a suitable navigator panel for the specified code editor.
        Specified by:
        createNavigator in interface CodeSupport
        Returns:
        the new navigator suited to the supported code type, or null if none is supported.
      • createFormatter

        public Formatter createFormatter()
        Description copied from interface: CodeSupport
        Creates a suitable code formatter for the specified code type.
        Specified by:
        createFormatter in interface CodeSupport
        Returns:
        a formatter that tidies source code, or null if none is available
      • fileChanged

        public void fileChanged​(java.io.File file)
        Description copied from interface: CodeSupport
        Called when the file associated with the editor changes.
        Specified by:
        fileChanged in interface CodeSupport
        Parameters:
        file - the file now associated with the editor
      • languageIdFor

        protected java.lang.String languageIdFor​(CodeEditorBase editor)
        Returns a syntax area language ID for the specified editor. The default implementation returns a value based on the editor's code type.
        Parameters:
        editor - the editor to determine a language ID for
        Returns:
        a language ID for the editor; may return null for plain text