| java.lang.Object bluej.editor.moe.MoeActions
MoeActions | final public class MoeActions (Code) | | A set of actions supported by the Moe editor. This is a singleton: the
actions are shared between all editor instances.
Actions are stored both in a hashtable and in an array. The hashtable is used
for fast lookup by name, whereas the array is needed to support complete,
ordered access.
author: Michael Kolling author: Bruce Quig |
Inner Class :abstract class MoeAbstractAction extends TextAction | |
Inner Class :class SaveAction extends MoeAbstractAction | |
Inner Class :class ReloadAction extends MoeAbstractAction | |
Inner Class :class PrintAction extends MoeAbstractAction | |
Inner Class :class PageSetupAction extends MoeAbstractAction | |
Inner Class :class CloseAction extends MoeAbstractAction | |
Inner Class :class UndoAction extends MoeAbstractAction | |
Inner Class :class RedoAction extends MoeAbstractAction | |
Inner Class :class CommentBlockAction extends MoeAbstractAction | |
Inner Class :class UncommentBlockAction extends MoeAbstractAction | |
Inner Class :class IndentBlockAction extends MoeAbstractAction | |
Inner Class :class DeindentBlockAction extends MoeAbstractAction | |
Inner Class :class InsertMethodAction extends MoeAbstractAction | |
Inner Class :class IndentAction extends MoeAbstractAction | |
Inner Class :class DeIndentAction extends MoeAbstractAction | |
Inner Class :class NewLineAction extends MoeAbstractAction | |
Inner Class :class CopyLineAction extends MoeAbstractAction | |
Inner Class :class CutLineAction extends MoeAbstractAction | |
Inner Class :class CutEndOfLineAction extends MoeAbstractAction | |
Inner Class :class CutWordAction extends MoeAbstractAction | |
Inner Class :class CutEndOfWordAction extends MoeAbstractAction | |
Inner Class :class FindAction extends MoeAbstractAction | |
Inner Class :class FindNextAction extends MoeAbstractAction | |
Inner Class :class FindNextBackwardAction extends MoeAbstractAction | |
Inner Class :class ReplaceAction extends MoeAbstractAction | |
Inner Class :class CompileAction extends MoeAbstractAction | |
Inner Class :class ToggleInterfaceAction extends MoeAbstractAction | |
Inner Class :class ToggleBreakPointAction extends MoeAbstractAction | |
Inner Class :class KeyBindingsAction extends MoeAbstractAction | |
Inner Class :class PreferencesAction extends MoeAbstractAction | |
Inner Class :class AboutAction extends MoeAbstractAction | |
Inner Class :class DescribeKeyAction extends MoeAbstractAction | |
Inner Class :class HelpMouseAction extends MoeAbstractAction | |
Inner Class :class ShowManualAction extends MoeAbstractAction | |
Inner Class :class GoToLineAction extends MoeAbstractAction | |
Inner Class :interface LineAction | |
Inner Class :class CommentLineAction implements LineAction | |
Inner Class :class UncommentLineAction implements LineAction | |
Inner Class :class IndentLineAction implements LineAction | |
Inner Class :class DeindentLineAction implements LineAction | |
redoAction | public RedoAction redoAction(Code) | | |
undoAction | public UndoAction undoAction(Code) | | |
addActionForKeyStroke | public void addActionForKeyStroke(KeyStroke key, Action a)(Code) | | Add a new key binding into the action table.
|
addComponentKeyStrokes | public KeyStroke[] addComponentKeyStrokes(Action action, KeyStroke[] keys)(Code) | | BUG WORKAROUND: currently, keymap.getKeyStrokesForAction() misses
keystrokes that come from JComponents inputMap. Here, we add those
ourselves...
|
addSelectionToClipboard | public void addSelectionToClipboard(JTextComponent textComponent)(Code) | | Add the current selection of the text component to the clipboard.
|
getActionByName | public Action getActionByName(String name)(Code) | | Return an action with a given name.
|
getActions | public static MoeActions getActions(JTextComponent textComponent)(Code) | | Get the actions object (a singleton) and, at the same time, install the
action keymap as the main keymap for the given textComponent..
|
getKeyStrokesForAction | public KeyStroke[] getKeyStrokesForAction(Action action)(Code) | | Get a keystroke for an action. Return null is there is none.
|
load | public boolean load()(Code) | | Load the key bindings. Return true if successful.
|
removeKeyStrokeBinding | public void removeKeyStrokeBinding(KeyStroke key)(Code) | | Remove a key binding from the action table.
|
save | public boolean save()(Code) | | Save the key bindings. Return true if successful.
|
setDefaultKeyBindings | public void setDefaultKeyBindings()(Code) | | Set up the default key bindings. Used for initial setup, or restoring the
default later on.
|
setRedoEnabled | public void setRedoEnabled(boolean enabled)(Code) | | |
setUndoEnabled | public void setUndoEnabled(boolean enabled)(Code) | | |
userAction | public void userAction()(Code) | | Called to inform that any one of the user actions (text edit or caret
move) was executed.
|
|
|