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