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 classClears out the console'sJTextPane, though a fresh jython prompt is shown afterwards.private static classBasic "copy" operation.private static classAllows the user to trigger a "cut" operation.private static classGeneralized representation of a "context popup menu".private static classAllows the user to (attempt) to paste the contents of the system clipboard.private static classSelects everything contained in the console'sJTextPane. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DefaultMenuWrangler.ClearBufferActionAllows the user to clear out the buffer via the menu.private final ConsoleTheConsolewhose menus we're "wrangling".private final DefaultMenuWrangler.CopyTextActionHandles "copy" requests that originate from the menu.private final DefaultMenuWrangler.CutTextActionHandles "cut" requests that originate from the menu.private static final org.slf4j.Loggerprivate final DefaultMenuWrangler.PasteTextActionHandles "paste" requests that originate from the menu.private final DefaultMenuWrangler.SelectBufferActionAllows the user to select the buffer's contents. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
logger
-
console
TheConsolewhose 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:
buildMenuin interfaceMenuWrangler
-
stateChanged
Don't need to handle this just yet.- Specified by:
stateChangedin interfaceMenuWrangler
-
makeLocalsMenu
Returns the contents of Jython's local namespace as aJMenuthat allows for (limited) introspection.- Returns:
JMenucontaining the local namespace.
-