Class NullEditor

    • Constructor Detail

      • NullEditor

        public NullEditor()
    • Method Detail

      • accept

        public boolean accept​(File file)
        Description copied from interface: EditorInterface
        If return true, this editor support this file type. Default implementation return true.
        Specified by:
        accept in interface EditorInterface
        Parameters:
        file - file to test
        Returns:
        if return true, this editor support this file type.
      • accept

        public boolean accept​(Editor.EditorSyntaxConstant editorSyntaxConstant)
        Description copied from interface: EditorInterface
        If return true, this editor support the syntax type. Default implementation return true.
        Specified by:
        accept in interface EditorInterface
        Parameters:
        editorSyntaxConstant - syntaxe type to test
        Returns:
        if return true, this editor support this syntax type.
      • isModified

        public boolean isModified()
        when there is no file opened, the file is not modified.
        Specified by:
        isModified in interface EditorInterface
        Returns:
        return false
      • open

        public boolean open​(File file)
        Do nothing, can't open file, on Null editor.
        Specified by:
        open in interface EditorInterface
        Parameters:
        file - the file to open
        Returns:
        this
      • saveAs

        public boolean saveAs​(File file)
        Do nothing, can't save file, on Null editor
        Specified by:
        saveAs in interface EditorInterface
        Parameters:
        file - the file to open
        Returns:
        this
      • setText

        public void setText​(String text)
        Description copied from interface: EditorInterface
        Set all text with text in argument.
        Specified by:
        setText in interface EditorInterface
        Parameters:
        text - test to set
      • copy

        public void copy()
        Description copied from interface: EditorInterface
        Copy current current selection into system clipboard.
        Specified by:
        copy in interface EditorInterface
      • cut

        public void cut()
        Description copied from interface: EditorInterface
        Cut current editor selection into system clipboard.
        Specified by:
        cut in interface EditorInterface
      • paste

        public void paste()
        Description copied from interface: EditorInterface
        Paste current clicboard content into editor at caret position.
        Specified by:
        paste in interface EditorInterface