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