The Xelfi Main window, The Xelfi MenuThe Xelfi Main windowThe Xelfi Main window is the central window of the Xelfi system. On startup, it is located on the top of the screen. It contains three important components: the menu, the toolbar and the Xelfi components palette. The Xelfi MenuThe Xelfi menu offers various kinds of actions for different parts of the Xelfi system. Some items of the menu can be accessed via key shortcuts or using toolbar under the menu. Here is the menu contents: System submenuThe system submenu contains functions to create new java class or package, to open new class browser window, to save documents in the editor, to show the options and to exit Xelfi. New class: Create a new class (from the template). New package: Create a new package. After selecting this item "New Package" dialog window is showed. User must select parent package for the new package from the package list. The list contains only packages which are selected in the Class Browser window. Then the user must enter the new package name. New browser: Open new Class Browser window. See Users guide Chapter I. or Windows guide Chapter. Save: Saves he currently focused document - editor window or form window on the disk. Save all: Save all documents on the disk. Save as template: Create a new template from the currently focused document - editor window or form window. If it is editor window the template will be created from the text in the editor, if it's form window it will be created from the source generated by the form. User is asked for the name of the new template. Options: Edit the Xelfi options. After selection of this item the Options dialog window is showed. It contains following tabs which involve different part of the Xelfi: Editor options, Color settings for the Xelfi environment and the Compiler options. Memory view: Show the Memory view. The Memory view is the window, which graphically displays an amount of free memory and can invoke the garbage collection. Edit submenuThe edit submenu contains standard functions which can be applied to an editor. Items of thus submenu are enabled only if currently focused window is editor window. Cut: Move selected text into clipboard. Copy: Copy selected text into clipboard. Paste: Paste contents of the clipboard into the text. Design submenuThe design submenu contains functions for visual programming - managing forms adding new components etc. Add component: Add a component. This submenu is for selecting the component to add to a form. This submenu contains exactly the same items as the component palette. The same result as selecting a component from this submenu can be achieved by selecting a component icon in the component palette. Selection mode: Corresponds white arrow at the left part of Component palette. Palette manager: Show palette manager dialog window. Docked palette: Switch between docked palette (inside Xelfi Main Window) and standalone window with palette. Show grid: Switch on/off grid signs in forms. Real mode: Switches between Normal and Real mode. In the Real mode all components behave its natural way (e.g. buttons press themselves when clicked, choice pulls itself down, etc.) - it does not mean that the aplication full runs - only its visual interface behaves like during a run-time. Run submenuThe run submenu can be used when user wants to compile or run java classes. Note that before compilation all documents are saved (the same as Save all menu item) Compile class: Compiles a class. The class to be compiled is determined as following: if focused window is an editor or form window, the source for that class is compiled. If not then all selected classes from Class browser are compiled. Compile main class: Compiles the main class. The name of the main class can be set in compiler options Compile all: Compile all action. User can specify exact meaning of this menu item in compiler options, where he can choose among compiling editor windows, all except package list or package list only. Run main class: Run main class (in an external java interpreter). The path to the interpreter and name of the main class can be set in the compiler options. Run class: Run a class (in an external java interpreter). The class to run is determined the same way as in the Compile class item. The path to the interpreter can be set in the compiler options. Run as applet: Run a class (in an external java interpreter) as an applet. The class is determined the same way as in the Compile class item. The class must extend java.applet.Applet class. The default xelfi simple applet viewer will be used as a frame for the applet. Set as main:The currently focused class is set as main class. The class is focused if it's editor window or it's design (form) window has got the focus. Debug submenuThe debug submenu is used when user wants to debug java classes. It contains functions for starting/finishing debugging, tracing, toggling breakpoints, etc. For detailed description see the Debugger Go to cursor: Start (or continue) debugging a class setting the breakpoint into the cursor position of the current editor window. Finish debugging: Finishes the debugger session Restart debugging: Restarts the debugger. Trace over: Traces over one line of source text. Trace into: Executes current line of source text. Toggle breakpoint: Toggles breakpoint into the position of the cursor of the current editor window Window submenuThe window submenu contains items for manipulating other Xelfi windows . If an item is checked then appropriate window is visible, if not then the window is hidden. Selecting an item will show appropriate window and bring it to the top. Selecting the item again will do the same - items will not become unchecked. This can be used when user wants to bring certain window to the top. There's an extra feature for the editor windows there - each editor window has got its own item in this submenu. The items are created and deleted dynamically as editors are opened and closed. From the set of these item only one item is checked - the one which corresponds to the editor which is currently focused. Selecting such item will bring the editor window to top. Close: Close currently focused window. Close all: Close all Xelfi windows. Watches: Show the Watches window. Locals: Show the Locals window. Call stack: Show the Call stack window. Threads: Show the Threads window. Breakpoints: Show the Breakpoints window. Output: Show the Output window. Help submenu![]() ![]() ![]() |