JXN Menu Items

    Overview     JxnSession window     JxnEditor window(s)     Workflows

Overview

The JxnSession window allows to enter commands in the input field and shows the results in the output list. The jxn commands can be saved to and loaded from jxn-files using the file menu of the JxnSession window.

Any number of JxnEditor windows can be used to edit sequences of commands and re-run the some in the JxnSession. A JxnEditor window can be closed individually without an impact on the JxnSession or other JxnEditor windows. In contrast if the JxnSession window is closed, all JxnEditor windows are closed as well.

The menu items of the JxnSession window and the JxnEditor window(s) are described in the following sections.

Note (relevant only if JXN is started from the InternetExplorer): If JXN runs as Java Applet or Java Web Start application, because of the access restrictions of the sandbox security model for internet applications some of the menu items are not available and open/save use the clipboard for data exchange. In contrast to that JxnPortable runs locally as Java Application, so that all menu items are available and open/save use the local file system.


JxnSession window

    File Menu
      New       resets session, clears session window (and closes PlotFrames). Note: static fields of loaded classes are not reset. To reset static variables and reload all classes (e.g. after modifications and recompilation) jxn must be terminated and restarted.
Open... prompts for filename to open in a new editor window (session is not changed)
Include... prompts for filename for an include command:  #filename(.jxn)
Load... prompts for filename and replaces the session (implies New). Note: For the handling of the default folder (user.dir) see getPath.
Reload reloads the current file and replaces the session (implies New)
Edit... copies the output list of the session window into a new editor window
Save saves session to file
Save As... prompts for filename and saves session to file
Exit closes all (related) windows and exits from jxn (same as [x] in the JxnSession window)
 
View Menu     ⇒ shows the following in a new editor window
Variables defined variables  (also usefull to see the predefined variables of JXN)
PackageSearchList packages and classes declared by #import ...
StaticMethodClasses classes declared by #import static ...
Class... information about a selected class
Methods... information about methods of a selected class

JxnEditor window(s)

    File Menu
      New       opens a new editor window
Open... prompts for filename to open in the editor
Save saves editor text to file
Save As... prompts for filename and saves text to file
Exit closes the individual editor window (same as [x] in the JxnEditor window). Other editor windows and the session window remain open.
 
Edit Menu
remove errors removes command lines that caused errors together with the error messages. Remaining error messages must be edited manually. Please apply remove errors before input only.
input only removes output lines starting with ' = ', '? ' or ': '. The following run will update the output lines.
Search/Replace... opens the search/replace dialog:
 - Find prev  - finds the "Search for:" text in backward direction (case insensitive, wraps around at start-of-file)
 - Find next  - finds the "Search for:" text in forward direction (case insensitive, wraps around at end-of-file)
 - Replace  - replaces the text selected in the editor window by the "Replace with:" text and searches further in the direction of the most recent find
 - Replace All  - replaces all occurrences (case sensitive) of the "Search for:" text in the editor window by the "Replace with:" text
 - Undo  - resets the text in the editor window to the state before the most recent
    … single Replace or Replace All operation
    … sequence of Replace or Replace All operations (intermediate "Find ..." interrupts the sequence)
    … start of the Search/Replace dialog
    Note: Undo may overwrite modifications done in the editor window while the Search/Replace dialog is visible
 
Run Menu     ⇒ transfers to and runs editor text in the session window
appnd to session appends editor text to the current session
append & close appends editor text to session and closes the editor window
replace session resets and replaces session with the editor text
replace & close resets and replaces session and closes the editor window
 
Context Menu (right-click on highlighted text in the editor)
Cut (or Crtl+X) copies the selected text to the clipboard and removes it from the editor text
Copy (or Crtl+C) copies the selected text to the clipboard
Paste (or Crtl+V) inserts text from the clipboard at the cursor position
Delete (or Del(ete) key) removes the selected text from the editor text

Workflows

  • Notation:   "..." commands entered in editor or session,   "{ }" optional repeated sequence

  • workflow with internal editor:
    • JxnSession: ...   File > Edit >> { JxnEditor: ...   Run > replace session >> } JxnEditor: ...   Run > replace & close >> JxnSession: ...   File > Edit >> etc.

  • workflow with external text editor:
    • JxnSession: ...   File > Save >> external Text Editor: > open >> { external Text Editor: ...   > save >> JxnSession: File > Reload >> } external Text Editor: ...   > save & close >> JxnSession: File > Reload >> JxnSession: ...   File > Save >> etc.