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