| java.lang.Object javax.swing.AbstractAction workbench.gui.actions.WbAction
All known Subclasses: workbench.gui.actions.CopyAsSqlDeleteInsertAction, workbench.gui.actions.ImportFileAction, workbench.gui.actions.DropDbObjectAction, workbench.gui.actions.RemoveTabAction, workbench.gui.actions.CommentAction, workbench.gui.actions.CreateDeleteScriptAction, workbench.gui.actions.OptimizeColumnWidthAction, workbench.gui.actions.ClearStatementHistoryAction, workbench.gui.actions.PrevStatementAction, workbench.gui.actions.MakeInListAction, workbench.gui.actions.FileConnectAction, workbench.gui.actions.DeleteDependentRowsAction, workbench.gui.actions.FindDataAction, workbench.gui.actions.SelectionFilterAction, workbench.gui.actions.AddMacroAction, workbench.gui.actions.FileSaveProfiles, workbench.gui.actions.ManageMacroAction, workbench.gui.actions.RenameTabAction, workbench.gui.actions.FileSaveAsAction, workbench.gui.actions.FindDataAgainAction, workbench.gui.actions.OpenEditWindowAction, workbench.gui.actions.UnCommentAction, workbench.gui.actions.FileDiscardAction, workbench.gui.actions.FilterPickerAction, workbench.gui.actions.CheckPreparedStatementsAction, workbench.gui.actions.NewListEntryAction, workbench.gui.actions.SaveDataAsAction, workbench.gui.actions.FileExitAction, workbench.gui.actions.RollbackAction, workbench.gui.actions.ReplaceAction, workbench.gui.actions.NewDbExplorerPanelAction, workbench.gui.actions.ReloadAction, workbench.gui.actions.SelectResultAction, workbench.gui.actions.SaveWorkspaceAction, workbench.gui.actions.CleanJavaCodeAction, workbench.gui.actions.PasteAction, workbench.gui.actions.SpoolDataAction, workbench.gui.actions.ClearAction, workbench.gui.actions.CopySelectedAsTextAction, workbench.gui.actions.NextStatementAction, workbench.gui.actions.MakeNonCharInListAction, workbench.gui.actions.PrintPreviewAction, workbench.gui.actions.AutoCompletionAction, workbench.gui.actions.InsertRowAction, workbench.gui.actions.LoadWorkspaceAction, workbench.gui.actions.PrintAction, workbench.gui.actions.CheckBoxAction, workbench.gui.actions.FileNewWindowAction, workbench.gui.actions.CopySelectedAsSqlUpdateAction, workbench.gui.actions.SortDescendingAction, workbench.gui.actions.FilterDataAction, workbench.gui.actions.FindAction, workbench.gui.actions.CutAction, workbench.gui.actions.CommitAction, workbench.gui.actions.CollapseTreeAction, workbench.gui.actions.SaveListFileAction, workbench.gui.actions.EscAction, workbench.gui.actions.ToggleTableSourceAction, workbench.gui.actions.FirstStatementAction, workbench.gui.actions.StopAction, workbench.gui.actions.MoveSqlTabRight, workbench.gui.actions.ExecuteAllAction, workbench.gui.actions.ResetHighlightAction, workbench.gui.actions.ExpandEditorAction, workbench.gui.actions.ManageDriversAction, workbench.gui.actions.OptionsDialogAction, workbench.gui.actions.RunMacroAction, workbench.gui.actions.DeleteTablesAction, workbench.gui.actions.SelectEditorAction, workbench.gui.actions.OptimizeAllColumnsAction, workbench.gui.actions.ViewMessageLogAction, workbench.gui.actions.AboutAction, workbench.gui.actions.ExpandResultAction, workbench.gui.actions.CopyProfileAction, workbench.gui.actions.ResetFilterAction, workbench.gui.actions.CloseResultTabAction, workbench.gui.actions.SchemaReportAction, workbench.gui.actions.SetColumnWidthAction, workbench.gui.actions.ScriptDbObjectAction, workbench.gui.actions.FileSaveAction, workbench.gui.actions.VersionCheckAction, workbench.gui.actions.AssignWorkspaceAction, workbench.gui.actions.ImportClipboardAction, workbench.gui.actions.CreateSnippetAction, workbench.gui.actions.FileOpenAction, workbench.gui.actions.FileReloadAction, workbench.gui.actions.ReplaceDataAction, workbench.gui.actions.ScrollToColumnAction, workbench.gui.actions.SelectKeyColumnsAction, workbench.gui.actions.MakeLowerCaseAction, workbench.gui.actions.DataPumperAction, workbench.gui.actions.CopySelectedAsSqlDeleteInsertAction, workbench.gui.actions.FileDisconnectAction, workbench.gui.actions.UndoAction, workbench.gui.actions.ExecuteCurrentAction, workbench.gui.actions.AddTabAction, workbench.gui.actions.SortAscendingAction, workbench.gui.actions.RedoAction, workbench.gui.actions.WhatsNewAction, workbench.gui.actions.SelectTabAction, workbench.gui.actions.FindAgainAction, workbench.gui.actions.CopyAsSqlUpdateAction, workbench.gui.actions.MakeUpperCaseAction, workbench.gui.actions.UndoExpandAction, workbench.gui.actions.CreateDummySqlAction, workbench.gui.actions.CopyAction, workbench.gui.profiles.RenameGroupAction, workbench.gui.actions.ExecuteSelAction, workbench.gui.actions.NewDbExplorerWindowAction, workbench.gui.actions.ExpandTreeAction, workbench.gui.actions.CopyAsSqlInsertAction, workbench.gui.actions.QuickFilterAction, workbench.gui.actions.ClearCompletionCacheAction, workbench.gui.actions.SaveAsNewWorkspaceAction, workbench.gui.actions.CompileDbObjectAction, workbench.gui.actions.DisconnectTabAction, workbench.gui.actions.ShowManualAction, workbench.gui.actions.InsertTabAction, workbench.gui.actions.IgnoreErrorsAction, workbench.gui.actions.CloseWorkspaceAction, workbench.gui.actions.ConfigureShortcutsAction, workbench.gui.profiles.NewGroupAction, workbench.gui.actions.ShowHelpAction, workbench.gui.actions.MoveSqlTabLeft, workbench.gui.actions.ColumnSelectionAction, workbench.gui.actions.ShowDbExplorerAction, workbench.gui.actions.DeleteRowAction, workbench.gui.actions.CopySelectedAsSqlInsertAction, workbench.gui.actions.LastStatementAction, workbench.gui.actions.CreateNewConnection, workbench.gui.actions.CopyRowAction, workbench.gui.actions.SelectMaxRowsAction, workbench.gui.actions.SelectAllAction, workbench.gui.actions.CopyAsTextAction, workbench.gui.actions.MatchBracketAction, workbench.gui.actions.DeleteListEntryAction, workbench.gui.actions.UpdateDatabaseAction, workbench.gui.actions.FormatSqlAction,
WbAction | public class WbAction extends AbstractAction (Code) | | Base class for Actions in SQL Workbench/J
the actual work should be implemented in executeAction()
which is guaranteed to be called on the EDT.
author: support@sql-workbench.net |
WbAction | public WbAction()(Code) | | |
WbAction | public WbAction(ActionListener l, String aName)(Code) | | Creates a WbAction which dispatches its
WbAction.executeAction(ActionEvent)
event to the passed ActionListener, instead of executing it itself.
This is intended for situations where an Action is needed, but not
implemented with a subclass of WbAction, but with an ActionListener
instead.
|
allowDuplicate | public boolean allowDuplicate()(Code) | | |
clearAccelerator | public void clearAccelerator()(Code) | | |
getCreateMenuSeparator | public boolean getCreateMenuSeparator()(Code) | | |
getCreateToolbarSeparator | public boolean getCreateToolbarSeparator()(Code) | | |
getToolbarButton | public JButton getToolbarButton(boolean createNew)(Code) | | |
getTooltipTextWithKeys | public String getTooltipTextWithKeys()(Code) | | |
hasCtrlModifier | public boolean hasCtrlModifier()(Code) | | |
hasShiftModifier | public boolean hasShiftModifier()(Code) | | |
initMenuDefinition | public void initMenuDefinition(String aMenuText, String aTooltip, KeyStroke defaultKey)(Code) | | Initialize the menu definition for this action. The menu text and tooltip
will be used directly without retrieving it from the ResourceMgr.
This method will register the action with the ShortcutManager.
Parameters: aMenuText - The text to be displayed in the menu item Parameters: aTooltip - The tooltip for the menu item Parameters: defaultKey - Default shortcut key, may be null See Also: workbench.resource.ShortcutManager.registerAction(WbAction) |
initializeShortcut | protected void initializeShortcut()(Code) | | |
removeIcon | public void removeIcon()(Code) | | |
setActionName | protected void setActionName(String aName)(Code) | | |
setAlternateAccelerator | public void setAlternateAccelerator(KeyStroke key)(Code) | | |
setCreateMenuSeparator | public void setCreateMenuSeparator(boolean flag)(Code) | | |
setCreateToolbarSeparator | public void setCreateToolbarSeparator(boolean flag)(Code) | | |
setDefaultAccelerator | public void setDefaultAccelerator(KeyStroke key)(Code) | | |
setEnabled | public void setEnabled(boolean flag)(Code) | | |
setMenuItemName | public void setMenuItemName(String aKey)(Code) | | |
setMenuText | public void setMenuText(String text)(Code) | | Define the displayed text for the associcated menu item
If the text contains a & sign, the character after the
& sign will be used as the Mnemonic for the menu item.
Once the mnemonic is identified the passed text (after
removing the & sign) will be set using
putValue(Actin.NAME, Object)
Parameters: text - the text for the menu item See Also: WbAction.setMenuTextByKey(String) |
|
|