public class FileSaveAsAction extends SquirrelAction implements ISQLPanelAction { private ISQLPanelAPI _panel; public FileSaveAsAction(IApplication app) { super(app); } public void actionPerformed(ActionEvent e) { _panel.fileSaveAs(); } public void setSQLPanel(ISQLPanelAPI panel) { _panel = panel; setEnabled(null != _panel)
public class NextSqlAction extends SquirrelAction implements ISQLPanelAction { private ISQLPanelAPI _panel; public NextSqlAction(IApplication app) { super(app); } public void actionPerformed(ActionEvent e) { _panel.getSQLEntryPanel().moveCaretToNextSQLBegin(); } 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/FileSaveAsAction.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/action/NextSqlAction.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class FileSaveAsAction extends SquirrelAction  implements ISQLPanelAction
1
public class NextSqlAction extends SquirrelAction  implements ISQLPanelAction
2
{
2
{
3
   private ISQLPanelAPI _panel;
3
	private ISQLPanelAPI _panel;
4
   public FileSaveAsAction(IApplication app)
4
	public NextSqlAction(IApplication app)
5
   {
6
      
5
	{
7
super(app);
6
		super(app);
8
   }
9
   
7
	}
10
public void actionPerformed(ActionEvent e)
8
	public void actionPerformed(ActionEvent e)
11
   {
12
      _panel.fileSaveAs();
13
   }
14
   
9
	{
10
		_panel.getSQLEntryPanel().moveCaretToNextSQLBegin();
11
	}
15
public void setSQLPanel(ISQLPanelAPI panel)
12
	public void setSQLPanel(ISQLPanelAPI panel)
16
   {
17
      
13
	{
18
_panel = panel;
14
		_panel = panel;
19
      setEnabled(null != _panel)
15
		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