public class AddViewAction extends AbstractRefactoringAction { private static final long serialVersionUID = 3882499919835487812L; public AddViewAction(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 AddViewCommand(_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 DropSequenceAction extends AbstractRefactoringAction { private static final long serialVersionUID = -2293313754254825620L; public DropSequenceAction(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 DropSequenceCommand(_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/AddViewAction.java File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/actions/DropSequenceAction.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class AddViewAction extends AbstractRefactoringAction
1
public class DropSequenceAction extends AbstractRefactoringAction
2
{
2
{
3
	private static final long serialVersionUID = 3882499919835487812L;
3
	private static final long serialVersionUID = -2293313754254825620L;
4
	public AddViewAction(IApplication app, Resources rsrc)
4
	public DropSequenceAction(IApplication app, Resources rsrc)
5
	{
5
	{
6
		super(app, rsrc);
6
		super(app, rsrc);
7
	}
7
	}
8
	/**
8
	/**
9
	 * @see net.sourceforge.squirrel_sql.plugins.refactoring.actions.AbstractRefactoringAction#getCommand(net.sourceforge.squirrel_sql.fw.sql.IDatabaseObjectInfo[])
9
	 * @see net.sourceforge.squirrel_sql.plugins.refactoring.actions.AbstractRefactoringAction#getCommand(net.sourceforge.squirrel_sql.fw.sql.IDatabaseObjectInfo[])
10
	 */
10
	 */
11
	@Override
11
	@Override
12
	protected ICommand getCommand(IDatabaseObjectInfo[] info)
12
	protected ICommand getCommand(IDatabaseObjectInfo[] info)
13
	{
13
	{
14
		return new AddViewCommand(_session, info);
14
		return new DropSequenceCommand(_session, info);
15
	}
15
	}
16
	/**
16
	/**
17
	 * @see net.sourceforge.squirrel_sql.plugins.refactoring.actions.AbstractRefactoringAction#getErrorMessage()
17
	 * @see net.sourceforge.squirrel_sql.plugins.refactoring.actions.AbstractRefactoringAction#getErrorMessage()
18
	 */
18
	 */
19
	@Override
19
	@Override
20
	protected String getErrorMessage()
20
	protected String getErrorMessage()
21
	{
21
	{
22
		return null;
22
		return null;
23
	}
23
	}
24
	/**
24
	/**
25
	 * @see net.sourceforge.squirrel_sql.plugins.refactoring.actions.AbstractRefactoringAction#isMultipleObjectAction()
25
	 * @see net.sourceforge.squirrel_sql.plugins.refactoring.actions.AbstractRefactoringAction#isMultipleObjectAction()
26
	 */
26
	 */
27
	@Override
27
	@Override
28
	protected boolean isMultipleObjectAction()
28
	protected boolean isMultipleObjectAction()
29
	{
29
	{
30
		return true
30
		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