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