net.sourceforge.squirrel_sql.plugins.refactoring.actions
Class MergeColumnAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by net.sourceforge.squirrel_sql.fw.gui.action.BaseAction
          extended by net.sourceforge.squirrel_sql.client.action.SquirrelAction
              extended by net.sourceforge.squirrel_sql.plugins.refactoring.actions.AbstractRefactoringAction
                  extended by net.sourceforge.squirrel_sql.plugins.refactoring.actions.MergeColumnAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action, IObjectTreeAction

public class MergeColumnAction
extends AbstractRefactoringAction

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sourceforge.squirrel_sql.fw.gui.action.BaseAction
BaseAction.IBaseActionPropertyNames
 
Field Summary
 
Fields inherited from class net.sourceforge.squirrel_sql.plugins.refactoring.actions.AbstractRefactoringAction
_session, _tree
 
Fields inherited from class net.sourceforge.squirrel_sql.client.action.SquirrelAction
_app
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
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
 
Constructor Summary
MergeColumnAction(IApplication app, Resources rsrc)
           
 
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.
 
Methods inherited from class net.sourceforge.squirrel_sql.plugins.refactoring.actions.AbstractRefactoringAction
actionPerformed, setObjectTree
 
Methods inherited from class net.sourceforge.squirrel_sql.client.action.SquirrelAction
getApplication, getKeyStroke
 
Methods inherited from class net.sourceforge.squirrel_sql.fw.gui.action.BaseAction
getParentFrame
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MergeColumnAction

public MergeColumnAction(IApplication app,
                         Resources rsrc)
Method Detail

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-2012. All Rights Reserved.