public class FilePrintAction extends SquirrelAction implements ISQLPanelAction { private ISQLPanelAPI _panel; public FilePrintAction(IApplication app) { super(app); setEnabled(false); } public void actionPerformed(ActionEvent e) { _panel.filePrint(); } public void setSQLPanel(ISQLPanelAPI panel) { _panel = panel; setEnabled(null != _panel)
public class FileSaveAction extends SquirrelAction implements ISQLPanelAction { private ISQLPanelAPI _panel; public FileSaveAction(IApplication app) { super(app); setEnabled(false); } public void actionPerformed(ActionEvent e) { _panel.fileSave(); } public void setSQLPanel(ISQLPanelAPI panel) { _panel = panel; setEnabled(null != _panel)
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/action/FilePrintAction.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/action/FileSaveAction.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class FilePrintAction extends SquirrelAction  implements ISQLPanelAction
1
public class FileSaveAction extends SquirrelAction  implements ISQLPanelAction
2
{
2
{
3
   private ISQLPanelAPI _panel;
3
   private ISQLPanelAPI _panel;
4
   public FilePrintAction(IApplication app)
4
   public FileSaveAction(IApplication app)
5
   {
5
   {
6
      super(app);
6
      super(app);
7
      setEnabled(false);
7
      setEnabled(false);
8
   }
8
   }
9
   public void actionPerformed(ActionEvent e)
9
   public void actionPerformed(ActionEvent e)
10
   {
10
   {
11
      _panel.filePrint();
11
      _panel.fileSave();
12
   }
12
   }
13
   public void setSQLPanel(ISQLPanelAPI panel)
13
   public void setSQLPanel(ISQLPanelAPI panel)
14
   {
14
   {
15
      _panel = panel;
15
      _panel = panel;
16
      setEnabled(null != _panel)
16
      setEnabled(null != _panel)
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