Class Editor

    • Constructor Detail

      • Editor

        public Editor()
      • Editor

        public Editor​(int rows,
                      int columns,
                      int fontSize,
                      int options)
    • Method Detail

      • positionWindow

        public void positionWindow()
      • create

        public void create​(String name,
                           String text)
      • createMacro

        public void createMacro​(String name,
                                String text)
      • open

        public void open​(String dir,
                         String name)
        Opens a file and replaces the text (if any) by the contents of the file.
      • getText

        public String getText()
      • getTextArea

        public TextArea getTextArea()
      • display

        public void display​(String title,
                            String text)
      • evaluateScript

        public void evaluateScript​(String ext)
      • openExample

        public static boolean openExample​(String name)
        Opens an example from the Help/Examples menu and runs if "Autorun Exampes" is checked.
      • showMacroFunctions

        protected void showMacroFunctions()
      • insertText

        public void insertText​(String text)
      • close

        public void close()
        Overrides close() in PlugInFrame.
        Overrides:
        close in class PlugInFrame
      • saveAs

        public void saveAs()
      • revert

        protected void revert()
      • updateClassName

        public void updateClassName​(String oldName,
                                    String newName)
        Changes a plugins class name to reflect a new file name.
      • append

        public void append​(String s)
      • setIsMacroWindow

        public void setIsMacroWindow​(boolean mw)
      • setDefaultDirectory

        public static void setDefaultDirectory​(String defaultDirectory)
      • getInstance

        public static Editor getInstance()
      • getJSPrefix

        public static String getJSPrefix​(String arg)
      • fixLineEndings

        public void fixLineEndings()
        Changes Windows (CRLF) line separators to line feeds (LF).
      • showLogWindow

        public void showLogWindow()
      • fileChanged

        public boolean fileChanged()
      • run

        public void run()
        Downloads BeanShell or Jython interpreter using a separate thread.
        Specified by:
        run in interface Runnable