Package edu.wisc.ssec.mcidasv.jython
Class DefaultMenuWrangler
java.lang.Object
edu.wisc.ssec.mcidasv.jython.DefaultMenuWrangler
- All Implemented Interfaces:
MenuWrangler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
Clears out the console'sJTextPane
, though a fresh jython prompt is shown afterwards.private static class
Basic "copy" operation.private static class
Allows the user to trigger a "cut" operation.private static class
Generalized representation of a "context popup menu".private static class
Allows the user to (attempt) to paste the contents of the system clipboard.private static class
Selects everything contained in the console'sJTextPane
. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DefaultMenuWrangler.ClearBufferAction
Allows the user to clear out the buffer via the menu.private final Console
TheConsole
whose menus we're "wrangling".private final DefaultMenuWrangler.CopyTextAction
Handles "copy" requests that originate from the menu.private final DefaultMenuWrangler.CutTextAction
Handles "cut" requests that originate from the menu.private static final org.slf4j.Logger
private final DefaultMenuWrangler.PasteTextAction
Handles "paste" requests that originate from the menu.private final DefaultMenuWrangler.SelectBufferAction
Allows the user to select the buffer's contents. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
logger
-
console
TheConsole
whose menus we're "wrangling". -
cutAction
Handles "cut" requests that originate from the menu. -
copyAction
Handles "copy" requests that originate from the menu. -
pasteAction
Handles "paste" requests that originate from the menu. -
clearAction
Allows the user to clear out the buffer via the menu. -
selectAction
Allows the user to select the buffer's contents.
-
-
Constructor Details
-
DefaultMenuWrangler
-
-
Method Details
-
buildMenu
- Specified by:
buildMenu
in interfaceMenuWrangler
-
stateChanged
Don't need to handle this just yet.- Specified by:
stateChanged
in interfaceMenuWrangler
-
makeLocalsMenu
Returns the contents of Jython's local namespace as aJMenu
that allows for (limited) introspection.- Returns:
JMenu
containing the local namespace.
-