public class CopyTableAction extends SquirrelAction implements ISessionAction { /** Current session. */ private ISession _session; /** Current plugin. */ private final DBCopyPlugin _plugin; public CopyTableAction(IApplication app, Resources rsrc, DBCopyPlugin plugin) { super(app, rsrc); _plugin = plugin; } public void actionPerformed(ActionEvent evt) { if (_session != null) { new CopyTableCommand(_session, _plugin).execute(); } } /** * Set the current session. * * @param session The current session. */ public void setSession(ISession session) { _session = session;
public class SelectAction extends SquirrelAction implements ISessionAction { /** Current session. */ private ISession _session; /** Current plugin. */ private final DBDiffPlugin _plugin; public SelectAction(IApplication app, Resources rsrc, DBDiffPlugin plugin) { super(app, rsrc); _plugin = plugin; } public void actionPerformed(ActionEvent evt) { if (_session != null) { new SelectCommand(_session, _plugin).execute(); } } /** * Set the current session. * * @param session The current session. */ public void setSession(ISession session) { _session = session;
Clone fragments detected by clone detection tool
File path: /sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/actions/CopyTableAction.java File path: /sql12/plugins/dbdiff/src/net/sourceforge/squirrel_sql/plugins/dbdiff/actions/SelectAction.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class CopyTableAction extends SquirrelAction
1
public class SelectAction extends SquirrelAction
2
                                     implements ISessionAction {
2
                                     implements ISessionAction {
3
	/** Current session. */
3
	/** Current session. */
4
    private ISession _session;
4
    private ISession _session;
5
	/** Current plugin. */
5
	/** Current plugin. */
6
	private final DBCopyPlugin _plugin;
6
	private final DBDiffPlugin _plugin;
7
    public CopyTableAction(IApplication app, 
7
    public SelectAction(IApplication app, 
8
                           Resources rsrc,
8
                              Resources rsrc,
9
                           DBCopyPlugin plugin) 
9
                              DBDiffPlugin plugin) 
10
    {
10
    {
11
        super(app, rsrc);
11
        super(app, rsrc);
12
        _plugin = plugin;
12
        _plugin = plugin;
13
    }
13
    }
14
    public void actionPerformed(ActionEvent evt) {
14
    public void actionPerformed(ActionEvent evt) {
15
        if (_session != null) {
15
        if (_session != null) {
16
            new CopyTableCommand(_session, _plugin).execute();
16
            new SelectCommand(_session, _plugin).execute();
17
        }
17
        }
18
    }
18
    }
19
	/**
19
	/**
20
	 * Set the current session.
20
	 * Set the current session.
21
	 * 
21
	 * 
22
	 * @param	session		The current session.
22
	 * @param	session		The current session.
23
	 */
23
	 */
24
    public void setSession(ISession session) {
24
    public void setSession(ISession session) {
25
        _session = session;
25
        _session = session;
26
    
26
    
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