public abstract class MainMenuAction extends Object implements Presenter.Menu, ChangeListener, LookupListener
Modifier and Type | Class and Description |
---|---|
static class |
MainMenuAction.CommentAction
Comment action in Source main menu, wrapper for ExtKit.commentAction
|
static class |
MainMenuAction.FindNextAction
Find Next action in Edit main menu, wrapper for BaseKit.findNextAction
|
static class |
MainMenuAction.FindPreviousAction
Find Previous action in Edit main menu, wrapper for BaseKit.findPreviousAction
|
static class |
MainMenuAction.FindSelectionAction
Find Selection action in Edit main menu, wrapper for BaseKit.findSelectionAction
|
static class |
MainMenuAction.FormatAction
Reformat Code action in Source main menu, wrapper for BaseKit.formatAction
|
static class |
MainMenuAction.GoToDeclarationAction |
static class |
MainMenuAction.GoToSourceAction |
static class |
MainMenuAction.GoToSuperAction |
static class |
MainMenuAction.JumpBackAction
Back action in Go To main menu, wrapper for BaseKit.jumpListPrevAction
|
static class |
MainMenuAction.JumpForwardAction
Forward action in Go To main menu, wrapper for BaseKit.jumpListNextAction
|
static class |
MainMenuAction.PasteFormattedAction
Paste Formatted action in Edit main menu, wrapper for BaseKit.pasteFormattedAction
|
static class |
MainMenuAction.RemoveTrailingSpacesAction
Remove Trailing Spaces action in View main menu, wrapper for BaseKit.removeTrailingSpaces
|
static class |
MainMenuAction.SelectAllAction |
static class |
MainMenuAction.SelectIdentifierAction |
static class |
MainMenuAction.ShiftLineLeftAction
Shift Left action in Source main menu, wrapper for BaseKit.shiftLineLeftAction
|
static class |
MainMenuAction.ShiftLineRightAction
Shift Right action in Source main menu, wrapper for BaseKit.shiftLineRightAction
|
static class |
MainMenuAction.ShowLineNumbersAction |
static class |
MainMenuAction.ShowToolBarAction |
static class |
MainMenuAction.StartMacroRecordingAction
Start Macro Recording action in View main menu, wrapper for BaseKit.startMacroRecordingAction
|
static class |
MainMenuAction.StopMacroRecordingAction
Stop Macro Recording action in View main menu, wrapper for BaseKit.stopMacroRecordingAction
|
static class |
MainMenuAction.ToggleCommentAction
Uncomment action in Source main menu, wrapper for ExtKit.uncommentAction
|
static class |
MainMenuAction.UncommentAction
Uncomment action in Source main menu, wrapper for ExtKit.uncommentAction
|
static class |
MainMenuAction.WordMatchNextAction
Insert Next Matching Word action in Source main menu, wrapper for BaseKit.wordMatchNextAction
|
static class |
MainMenuAction.WordMatchPrevAction
Insert Previous Matching Word action in Source main menu, wrapper for BaseKit.wordMatchPrevAction
|
Presenter.Menu, Presenter.Popup, Presenter.Toolbar
Modifier and Type | Field and Description |
---|---|
static Icon |
BLANK_ICON |
boolean |
menuInitialized |
Constructor and Description |
---|
MainMenuAction()
Creates a new instance of ShowLineNumbersAction
|
MainMenuAction(boolean forceIcon,
Icon forcedIcon) |
Modifier and Type | Method and Description |
---|---|
protected static void |
addAccelerators(Action a,
JMenuItem item,
JTextComponent target)
Adds accelerators to given JMenuItem taken from the action
|
protected static Action |
getActionByName(String actionName)
Returns the action by given name
|
protected abstract String |
getActionName()
Get the action name
|
protected ActionMap |
getContextActionMap() |
protected KeyStroke |
getDefaultAccelerator()
Get default accelerator
|
protected Action |
getGlobalKitAction()
If there is no kit sensitive action, some global kit action can be returned
by subclasses.
|
HelpCtx |
getHelpCtx() |
protected abstract String |
getMenuItemText()
Get the text of the menu item
|
JMenuItem |
getMenuPresenter() |
String |
getName() |
boolean |
isEnabled() |
protected void |
postSetMenu() |
void |
resultChanged(LookupEvent ev) |
protected void |
setMenu()
Sets the state of JMenuItem.
|
void |
stateChanged(ChangeEvent e) |
public static final Icon BLANK_ICON
public boolean menuInitialized
public MainMenuAction()
public MainMenuAction(boolean forceIcon, Icon forcedIcon)
public void resultChanged(LookupEvent ev)
resultChanged
in interface LookupListener
public void stateChanged(ChangeEvent e)
stateChanged
in interface ChangeListener
public HelpCtx getHelpCtx()
public String getName()
protected static Action getActionByName(String actionName)
protected static void addAccelerators(Action a, JMenuItem item, JTextComponent target)
public boolean isEnabled()
protected Action getGlobalKitAction()
protected final ActionMap getContextActionMap()
protected final void postSetMenu()
protected void setMenu()
protected abstract String getMenuItemText()
protected abstract String getActionName()
public JMenuItem getMenuPresenter()
getMenuPresenter
in interface Presenter.Menu
protected KeyStroke getDefaultAccelerator()