1 | public class DropColumnAction extends AbstractRefactoringAction↵ | | 1 | public class RenameViewAction extends AbstractRefactoringAction
↵
|
2 | {↵ | | 2 | {
↵
|
3 | private static final long serialVersionUID = 481746871206634214L;↵ | | 3 | private static final long serialVersionUID = ↵
|
| | | 4 | -2969231566456501942L;↵
|
| | | 5 |
↵
|
4 | /**↵ | | 6 | /**
↵
|
5 | * Internationalized strings for this class.↵ | | 7 | * Internationalized strings for this class.
↵
|
6 | */↵ | | 8 | */
↵
|
7 | private static final StringManager s_stringMgr =↵ | | 9 | private static final StringManager s_stringMgr =
↵
|
8 | StringManagerFactory.getStringManager(DropColumnAction.class);↵ | | 10 | StringManagerFactory.getStringManager(RenameTableAction.class);↵
|
|
| | | 11 |
↵
|
9 | private static interface i18n↵ | | 12 | private static interface i18n
↵
|
10 | {↵ | | 13 | {
↵
|
11 | String ACTION_PART = s_stringMgr.getString("DropColumnAction.actionPart");↵ | | 14 | String ACTION_PART = s_stringMgr.getString("RenameViewAction.actionPart");↵
|
|
| | | 15 |
↵
|
12 | String OBJECT_PART = s_stringMgr.getString("Shared.tableObject");↵ | | 16 | String OBJECT_PART = s_stringMgr.getString("Shared.viewObject");↵
|
|
| | | 17 |
↵
|
13 | String SINGLE_OBJECT_MESSAGE =↵ | | 18 | String SINGLE_OBJECT_MESSAGE =
↵
|
14 | s_stringMgr.getString("Shared.singleObjectMessage", OBJECT_PART, ACTION_PART);↵ | | 19 | s_stringMgr.getString("Shared.singleObjectMessage", OBJECT_PART, ACTION_PART);
↵
|
15 | }↵ | | 20 | }↵
|
|
| | | 21 |
↵
|
16 | public DropColumnAction(IApplication app, Resources rsrc)↵ | | 22 | public RenameViewAction(IApplication app, Resources rsrc)
↵
|
17 | {↵ | | 23 | {
↵
|
18 | super(app, rsrc);↵ | | 24 | super(app, rsrc);
↵
|
19 | }↵ | | 25 | }↵
|
|
| | | 26 |
↵
|
20 | /**↵ | | 27 | /**
↵
|
21 | * @see net.sourceforge.squirrel_sql.plugins.refactoring.actions.AbstractRefactoringAction#getCommand(net.sourceforge.squirrel_sql.fw.sql.IDatabaseObjectInfo[])↵ | | 28 | * @see net.sourceforge.squirrel_sql.plugins.refactoring.actions.AbstractRefactoringAction#getCommand(net.sourceforge.squirrel_sql.fw.sql.IDatabaseObjectInfo[])
↵
|
22 | */↵ | | 29 | */
↵
|
23 | @Override↵ | | 30 | @Override
↵
|
24 | protected ICommand getCommand(IDatabaseObjectInfo[] info)↵ | | 31 | protected ICommand getCommand(IDatabaseObjectInfo[] info)
↵
|
25 | {↵ | | 32 | {
↵
|
26 | return new DropColumnCommand(_session, info);↵ | | 33 | return new RenameViewCommand(_session, info);
↵
|
27 | }↵ | | 34 | }↵
|
|
| | | 35 |
↵
|
28 | /**↵ | | 36 | /**
↵
|
29 | * @see net.sourceforge.squirrel_sql.plugins.refactoring.actions.AbstractRefactoringAction#getErrorMessage()↵ | | 37 | * @see net.sourceforge.squirrel_sql.plugins.refactoring.actions.AbstractRefactoringAction#getErrorMessage()
↵
|
30 | */↵ | | 38 | */
↵
|
31 | @Override↵ | | 39 | @Override
↵
|
32 | protected String getErrorMessage()↵ | | 40 | protected String getErrorMessage()
↵
|
33 | {↵ | | 41 | {
↵
|
34 | return i18n.SINGLE_OBJECT_MESSAGE;↵ | | 42 | return i18n.SINGLE_OBJECT_MESSAGE;
↵
|
35 | }↵ | | 43 | }↵
|
|
| | | 44 |
↵
|
36 | /**↵ | | 45 | /**
↵
|
37 | * @see net.sourceforge.squirrel_sql.plugins.refactoring.actions.AbstractRefactoringAction#isMultipleObjectAction()↵ | | 46 | * @see net.sourceforge.squirrel_sql.plugins.refactoring.actions.AbstractRefactoringAction#isMultipleObjectAction()
↵
|
38 | */↵ | | 47 | */
↵
|
39 | @Override↵ | | 48 | @Override
↵
|
40 | protected boolean isMultipleObjectAction()↵ | | 49 | protected boolean isMultipleObjectAction()
↵
|
41 | {↵ | | 50 | {
↵
|
42 | return false | | 51 | return false
|