public class GotoNextResultsTabCommand implements ICommand { /** The current panel. */ private final ISQLPanelAPI _panel; /** * Ctor. * * @param panel The SQL Panel we want to display the next results * tab for. * * @throws IllegalArgumentException * Thrown if a <TT>null</TT> <TT>ISQLPanelAPI</TT> passed. */ public GotoNextResultsTabCommand(ISQLPanelAPI panel) { super(); if (panel == null) { throw new IllegalArgumentException("ISQLPanelAPI == null"); } _panel = panel; } /** * Display the next results tab. */ public void execute() { _panel.gotoNextResultsTab()
public class GotoPreviousResultsTabCommand implements ICommand { /** Current panel. */ private final ISQLPanelAPI _panel; /** * Ctor. * * @param panel The SQL Panel we want to display the previous results * tab for. * * @throws IllegalArgumentException * Thrown if a <TT>null</TT> <TT>ISQLPanelAPI</TT> passed. */ public GotoPreviousResultsTabCommand(ISQLPanelAPI panel) { super(); if (panel == null) { throw new IllegalArgumentException("ISession == null"); } _panel = panel; } /** * Display the previous results tab. */ public void execute() { _panel.gotoPreviousResultsTab()
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/action/GotoNextResultsTabCommand.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/action/GotoPreviousResultsTabCommand.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class GotoNextResultsTabCommand implements ICommand
1
public class GotoPreviousResultsTabCommand implements ICommand
2
{
2
{
3
	/** The current panel. */
3
	/** Current panel. */
4
	private final ISQLPanelAPI _panel;
4
	private final ISQLPanelAPI _panel;
5
	/**
5
	/**
6
	 * Ctor.
6
	 * Ctor.
7
	 *
7
	 *
8
	 * @param	panel	The SQL Panel we want to display the next results
8
	 * @param	panel	The SQL Panel we want to display the previous results
9
	 *					tab for.
9
	 *					tab for.
10
	 *
10
	 *
11
	 * @throws	IllegalArgumentException
11
	 * @throws	IllegalArgumentException
12
	 *			Thrown if a <TT>null</TT> <TT>ISQLPanelAPI</TT> passed.
12
	 *			Thrown if a <TT>null</TT> <TT>ISQLPanelAPI</TT> passed.
13
	 */
13
	 */
14
	public GotoNextResultsTabCommand(ISQLPanelAPI panel)
14
	public GotoPreviousResultsTabCommand(ISQLPanelAPI panel)
15
	{
15
	{
16
		super();
16
		super();
17
		if (panel == null)
17
		if (panel == null)
18
		{
18
		{
19
			throw new IllegalArgumentException("ISQLPanelAPI == null");
19
			throw new IllegalArgumentException("ISession == null");
20
		}
20
		}
21
		_panel = panel;
21
		_panel = panel;
22
	}
22
	}
23
	/**
23
	/**
24
	 * Display the next results tab.
24
	 * Display the previous results tab.
25
	 */
25
	 */
26
	public void execute()
26
	public void execute()
27
	{
27
	{
28
		_panel.gotoNextResultsTab()
28
		_panel.gotoPreviousResultsTab()
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