net.sourceforge.squirrel_sql.plugins.refactoring.actions
Class DropForeignKeyAction
java.lang.Object
javax.swing.AbstractAction
net.sourceforge.squirrel_sql.fw.gui.action.BaseAction
net.sourceforge.squirrel_sql.client.action.SquirrelAction
net.sourceforge.squirrel_sql.plugins.refactoring.actions.AbstractRefactoringAction
net.sourceforge.squirrel_sql.plugins.refactoring.actions.DropForeignKeyAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action, IObjectTreeAction
public class DropForeignKeyAction
- extends AbstractRefactoringAction
- See Also:
- Serialized Form
| Fields inherited from class net.sourceforge.squirrel_sql.client.action.SquirrelAction |
_app |
| Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
|
Method Summary |
protected ICommand |
getCommand(IDatabaseObjectInfo[] info)
Returns the command to be executed when this action is invoked. |
protected String |
getErrorMessage()
Subclasses must override this to provide a custom error message when the user chooses to execcute an
action on multiple selected objects, when the action can only be executed on a single object. |
protected boolean |
isMultipleObjectAction()
Returns a boolean value indicating whether or not this action can be executed against multiple objects. |
DropForeignKeyAction
public DropForeignKeyAction(IApplication app,
Resources rsrc)
getCommand
protected ICommand getCommand(IDatabaseObjectInfo[] info)
- Description copied from class:
AbstractRefactoringAction
- Returns the command to be executed when this action is invoked.
- Specified by:
getCommand in class AbstractRefactoringAction
- Parameters:
info - the selected object(s)
- Returns:
- the ICommand implementation to execute
- See Also:
AbstractRefactoringAction.getCommand(net.sourceforge.squirrel_sql.fw.sql.IDatabaseObjectInfo[])
getErrorMessage
protected String getErrorMessage()
- Description copied from class:
AbstractRefactoringAction
- Subclasses must override this to provide a custom error message when the user chooses to execcute an
action on multiple selected objects, when the action can only be executed on a single object.
- Specified by:
getErrorMessage in class AbstractRefactoringAction
- Returns:
- the error message to use for single-object actions
- See Also:
AbstractRefactoringAction.getErrorMessage()
isMultipleObjectAction
protected boolean isMultipleObjectAction()
- Description copied from class:
AbstractRefactoringAction
- Returns a boolean value indicating whether or not this action can be executed against multiple objects.
- Specified by:
isMultipleObjectAction in class AbstractRefactoringAction
- Returns:
- true if the user can execute this action against multiple slected objects; false otherwise.
- See Also:
AbstractRefactoringAction.isMultipleObjectAction()
Copyright © 2001-2011. All Rights Reserved.