public class AddSequenceAction extends AbstractRefactoringAction implements IObjectTreeAction { private static final long serialVersionUID = -3250086775025295428L; public AddSequenceAction(IApplication app, Resources rsrc) { super(app, rsrc); } /** * @see net.sourceforge.squirrel_sql.plugins.refactoring.actions.AbstractRefactoringAction#getCommand(net.sourceforge.squirrel_sql.fw.sql.IDatabaseObjectInfo[]) */ @Override protected ICommand getCommand(IDatabaseObjectInfo[] info) { return new AddSequenceCommand(_session, info); } /** * @see net.sourceforge.squirrel_sql.plugins.refactoring.actions.AbstractRefactoringAction#getErrorMessage() */ @Override protected String getErrorMessage() { return null; } /** * @see net.sourceforge.squirrel_sql.plugins.refactoring.actions.AbstractRefactoringAction#isMultipleObjectAction() */ @Override protected boolean isMultipleObjectAction() { return true
public class DropSelectedTablesAction extends AbstractRefactoringAction { private static final long serialVersionUID = -8517759137466833243L; public DropSelectedTablesAction(IApplication app, Resources rsrc) { super(app, rsrc); } /** * @see net.sourceforge.squirrel_sql.plugins.refactoring.actions.AbstractRefactoringAction#getCommand(net.sourceforge.squirrel_sql.fw.sql.IDatabaseObjectInfo[]) */ @Override protected ICommand getCommand(IDatabaseObjectInfo[] info) { return new DropTablesCommand(_session, info); } /** * @see net.sourceforge.squirrel_sql.plugins.refactoring.actions.AbstractRefactoringAction#getErrorMessage() */ @Override protected String getErrorMessage() { return null; } /** * @see net.sourceforge.squirrel_sql.plugins.refactoring.actions.AbstractRefactoringAction#isMultipleObjectAction() */ @Override protected boolean isMultipleObjectAction() { return true
Clone fragments detected by clone detection tool
File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/actions/AddSequenceAction.java File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/actions/DropSelectedTablesAction.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class AddSequenceAction extends AbstractRefactoringAction implements IObjectTreeAction
1
public class DropSelectedTablesAction extends AbstractRefactoringAction
2
{
2
{
3
	private static final long serialVersionUID = -3250086775025295428L;
3
	private static final long serialVersionUID = -
4
	public AddSequence
4
8517759137466833243L;
5
Action(IApplication app, Resources rsrc)
5
	public DropSelectedTablesAction(IApplication app, Resources rsrc)
6
	{
6
	{
7
		super(app, rsrc);
7
		super(app, rsrc);
8
	}
8
	}
9

10
	/**
9
	/**
11
	 * @see net.sourceforge.squirrel_sql.plugins.refactoring.actions.AbstractRefactoringAction#getCommand(net.sourceforge.squirrel_sql.fw.sql.IDatabaseObjectInfo[])
10
	 * @see net.sourceforge.squirrel_sql.plugins.refactoring.actions.AbstractRefactoringAction#getCommand(net.sourceforge.squirrel_sql.fw.sql.IDatabaseObjectInfo[])
12
	 */
11
	 */
13
	@Override
12
	@Override
14
	protected ICommand getCommand(IDatabaseObjectInfo[] info)
13
	protected ICommand getCommand(IDatabaseObjectInfo[] info)
15
	{
14
	{
16
		return new AddSequenceCommand(_session, info);
15
		return new DropTablesCommand(_session, info);
17
	}
16
	}
18

19
	/**
17
	/**
20
	 * @see net.sourceforge.squirrel_sql.plugins.refactoring.actions.AbstractRefactoringAction#getErrorMessage()
18
	 * @see net.sourceforge.squirrel_sql.plugins.refactoring.actions.AbstractRefactoringAction#getErrorMessage()
21
	 */
19
	 */
22
	@Override
20
	@Override
23
	protected String getErrorMessage()
21
	protected String getErrorMessage()
24
	{
22
	{
25
		return null;
23
		return null;
26
	}
24
	}
27

28
	/**
25
	/**
29
	 * @see net.sourceforge.squirrel_sql.plugins.refactoring.actions.AbstractRefactoringAction#isMultipleObjectAction()
26
	 * @see net.sourceforge.squirrel_sql.plugins.refactoring.actions.AbstractRefactoringAction#isMultipleObjectAction()
30
	 */
27
	 */
31
	@Override
28
	@Override
32
	protected boolean isMultipleObjectAction()
29
	protected boolean isMultipleObjectAction()
33
	{
30
	{
34
		return true
31
		return true
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0