public class DBCopyPluginSessionCallback implements PluginSessionCallback { DBCopyPlugin _plugin = null; public DBCopyPluginSessionCallback(DBCopyPlugin plugin) { _plugin = plugin; } public void sqlInternalFrameOpened(SQLInternalFrame sqlInternalFrame, ISession session) { // Nothing to do for an SQL internal frame } public void objectTreeInternalFrameOpened(ObjectTreeInternalFrame objectTreeInternalFrame, ISession session) { _plugin.addMenuItemsToContextMenu(objectTreeInternalFrame.getObjectTreeAPI())
public class DBDiffPluginSessionCallback implements PluginSessionCallback { DBDiffPlugin _plugin = null; public DBDiffPluginSessionCallback(DBDiffPlugin plugin) { _plugin = plugin; } public void sqlInternalFrameOpened(SQLInternalFrame sqlInternalFrame, ISession session) { // Nothing to do for an SQL internal frame } public void objectTreeInternalFrameOpened(ObjectTreeInternalFrame objectTreeInternalFrame, ISession session) { _plugin.addMenuItemsToContextMenu(session)
Clone fragments detected by clone detection tool
File path: /sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/DBCopyPluginSessionCallback.java File path: /sql12/plugins/dbdiff/src/net/sourceforge/squirrel_sql/plugins/dbdiff/DBDiffPluginSessionCallback.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class DBCopyPluginSessionCallback implements PluginSessionCallback {
1
public class DBDiffPluginSessionCallback implements PluginSessionCallback {
2
    DBCopyPlugin _plugin = null;
2
    DBDiffPlugin _plugin = null;
3
    
3
    
4
    public DBCopyPluginSessionCallback(DBCopyPlugin plugin) {
4
    public DBDiffPluginSessionCallback(DBDiffPlugin plugin) {
5
        _plugin = plugin;
5
        _plugin = plugin;
6
    }
6
    }
7
    
7
    
8
    public void sqlInternalFrameOpened(SQLInternalFrame sqlInternalFrame,
8
    public void sqlInternalFrameOpened(SQLInternalFrame sqlInternalFrame,
9
                                       ISession session) {
9
                                       ISession session) {
10
        // Nothing to do for an SQL internal frame
10
        // Nothing to do for an SQL internal frame
11
    }
11
    }
12
    public void objectTreeInternalFrameOpened(ObjectTreeInternalFrame objectTreeInternalFrame, 
12
    public void objectTreeInternalFrameOpened(ObjectTreeInternalFrame objectTreeInternalFrame, 
13
                                              ISession session) {
13
                                              ISession session) {
14
        _plugin.addMenuItemsToContextMenu(objectTreeInternalFrame.getObjectTreeAPI())
14
        _plugin.addMenuItemsToContextMenu(session)
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