WingEditor 1.6 Users' Guide

by WingSoft Corporation
(Last Updated: 1/18/99)

  1.  Introduction to WingEditor
  2. WingEditor is a simple Java Development Environment, implemented completely in Java. It is more than an Editor, it provides a Java oriented editor environment, error-browser-capable compiler environment, a GUI debugger environment. It also provides utilities such as indentation formatting and interfaces to WingDis decompiler.
     

  3. System Requirements
  4. WingEditor 1.6 only works with JavaSoft's JDK 1.1 + Swing 1.1 or JDK 1.2.
    Before using WingEditor, JDK1.1 + Swing 1.1 or JDK1.2 should be installed.

    If you have installed JDK1.1 + Swing 1.1, you should modify the classpath to include both JDK 1.1 classes.zip and Swing packages (swingall.jar).

    If you have JDK1.2 installed, you should modify the classpath to include the tools package since JDK1.2 JVM does not automatically put tools.jar on the classpath. WingEditor requires tools.jar on the classpath to work appropriately.

    Visit http://www.javasoft.com for details about how to download the JDK 1.1, Swing 1.1 or JDK 1.2 from JavaSoft. If your systems are not supported by Javasoft, please download a compatible version from other vendors.

    WingEditor 1.6 has been tested on Solaris and Windows 32 systems, although it should work on other platforms with  compatible JDK supported, we haven't done any testing. Also, for Solaris systems, it might requires some patches to make JDK 1.2 work right, please refer the JavaSoft website for details.
     

  5. WingEditor Command Line
  6. The following command will invoke the WingEditor,

          java wingsoft.Javaeditor [Files]
    You can specify multiple files by either putting multiple file names or use *, ? and [, ] in a file name. WingEditor will bring up a window with the first file loaded, you can go to the File Menu and select Next for editing the next file.

    If Files are omitted, WingEditor will open the project being visited last time, or a new project window if WingEditor is used for the very first time.
     

  7. WingEditor's Editor Environment
  8. Editor Window consists of Menu Bar, Button Bar, Text Window, and a Status/Message Bar.
     

  9. All about Project
  10. If you just want to use WingEditor for editing, you can ignore section 5-7.

    Project in WingEditor means a java application or applet, with a main class. Project profile provides information about source files list, main class, runtime parameters, and source paths to compiler and debugger.

    The GUI debugger in WingEditor 1.5 supports both applet and application as main classes.
     

  11. WingEditor's Compiler Environment
  12. Current Compiler environment only works with JavaSoft's JDK 1.1 or higher version. You have to have the JDK 1.1 or higher version installed, and JDK's classes.zip must be on the classpath.
     

  13. WingEditor's Debugger Environment
  14. To use debugger,

        - Create a project

        - Compile the project with -g option

    Simply click on Debug button on Project Window, a Source Browser window and a debugger window will be opened. WingEditor will automatically execute the program and stop at the Main class's main method for application, and init method for applet. For Win95 users, you might experience slow response of the debugger at the beginning if the system is not connected to a network.
     

  15. How to Recover Files After System Crashes
  16. Well, accidents do happen all the time. During your editing, WingEditor keeps saving your unsaved editing to a temporary file. If system crashes during your editing, you can recover your editing from the temporary file.

    Go to the work directory where WingEditor is installed, and files name with your original file name plus ".tmp." plus a sequence of digits should be the files you are looking for. Check the file's time mark, you will be able to find the right one.

    As a simple example, the following name appears to be a temporary file for javaeditor.java,

     javaeditor.java.tmp.854341732610,
  17. Control Keys List used on Editor Window
  18. Here is a list of control keys used on Editor Window,

         <Home>, <ctrl>A                       beginning of the line
         <ctrl><Home>, <ctrl>U              beginning of the file
         <End>, <ctrl>E                           end of the line
         <ctrl><End>, <ctrl>L                  end of the file
         <PageUp>, <ctrl>P                     up a screen
         <ctrl><PageUp>, <ctrl>T            beginning of the screen
         <PageDown>, <ctrl>N                down a screen
         <ctrl><PageDown>, <ctrl>B       end of the screen
         <UpArrow>                                up a line
         <DownArrow>                            down a line
         <LeftArrow>                                left a character
         <RightArrow>                              right a character
         <shift><UpArrow>                      drag up
         <shift><DownArrow>                  drag down
         <shift><LeftArrow>                     drag left
         <shift><RightArrow>                   drag right
         <ctrl><UpArrow>                       scroll up a line
         <ctrl><DownArrow>                   scroll down a line
         <ctrl><LeftArrow>                      backward a word
         <ctrl><RightArrow>                    forward a word
         <F2>                                           copy
         <F3>                                           repeat last find or replace
         <F4>                                           paste
         <F5>                                           cut
         <ctrl>C                                        copy
         <ctrl>D                                        delete the current line
         <ctrl>F                                         find
         <ctrl>R                                        replace
         <ctrl>V                                        paste
         <ctrl>W                                       delete the current word
         <ctrl>X                                        cut
         <ctrl>Y                                        redo
         <ctrl>Z                                        undo
         <Del>                                          delete a character,
     

  19. WingEditor's environment setting
  20. 10.1. .WingEditor

    WingEditor saves environment information in a special file named .WingEditor which is located at the work directory where the WingEditor is installed.

    We don't encourage users to change the file manually, since its format can change from version to version. The file contains the following information,

        - Default fonts

        - Default colors

        - Default build options (Project, compiling options, class paths)

        - Default window size

        - Default tab size

    When WingEditor is invoked, it will look for this file for setting up the default environment.

    10.2. .WingEditor.files and .WingEditor.projects

    These two files are located in the same directory as .WingEditor.

    These two files are used in track the history of your editing.