Class EditorKeyPressedAdapter

    • Field Detail

      • input

        protected org.fife.ui.rsyntaxtextarea.RSyntaxTextArea input
    • Constructor Detail

      • EditorKeyPressedAdapter

        public EditorKeyPressedAdapter​(WorkspaceCommands workspaceCommands,
                                       JFrame frame,
                                       org.fife.ui.rsyntaxtextarea.RSyntaxTextArea input,
                                       JTextArea output)
    • Method Detail

      • getLineNumber

        public int getLineNumber​(int position)
        Returns the line number (starting at 0) of the current cursor position.
        Returns:
      • toggleSelectionComment

        protected String toggleSelectionComment​(String selection)
      • getGUIHelp

        protected String getGUIHelp()
      • keyPressed

        public void keyPressed​(KeyEvent e)

        NOTE

        This is not just a text area, it is an RSyntaxTextArea which masks off various keystroked for itself. A symptom of this is if you attempt to use one of the (not well documented) reserved keystrokes, you will get mysterious enter key events as it tries to reformat (or whatever) the input area. So far the list of reserved keys are
        • a -- select all
        • c -- copy select to clipboard
        • d -- delete current line
        • j --(justify?)
        • k -- beeps?
        • v -- paste from clipbaord
        • x -- cut selected to clipboard
        Specified by:
        keyPressed in interface KeyListener
        Overrides:
        keyPressed in class KeyAdapter
        Parameters:
        e -
      • doQuit

        protected void doQuit​(boolean forceQuit)
      • doSave

        protected void doSave()
      • showHelp

        protected void showHelp​(String title,
                                String message)
        Show's help for the selected area. Note that this allows for editing and copy paste to the main window (standard Swing dialog does not)
        Parameters:
        title -
        message -