public class CloseAllSQLResultTabsCommand implements ICommand { private final ISQLPanelAPI _api; /** * Ctor. * * @param api * * @throws IllegalArgumentException * Thrown if a <TT>null</TT> <TT>ISQLPanelAPI</TT> passed. */ public CloseAllSQLResultTabsCommand(ISQLPanelAPI api) { super(); if (api == null) { throw new IllegalArgumentException("ISQLPanelAPI == null"); } _api = api; } public void execute() { _api.closeAllSQLResultTabs()
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()
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/action/CloseAllSQLResultTabsCommand.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/action/GotoNextResultsTabCommand.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class CloseAllSQLResultTabsCommand implements ICommand
1
public class GotoNextResultsTabCommand implements ICommand
2
{
2
{
3
	/** The current panel. */
3
	private final ISQLPanelAPI _api;
4
	private final ISQLPanelAPI _
5
panel;
6

4
	/**
7
	/**
5
	 * Ctor.
8
	 * Ctor.
6
	 *
9
	 *
7
	 * @param	api
10
	 * @param	panel	The SQL Panel we want to display the next results
11
	 *					tab for.
8
	 *
12
	 *
9
	 * @throws	IllegalArgumentException
13
	 * @throws	IllegalArgumentException
10
	 *			Thrown if a <TT>null</TT> <TT>ISQLPanelAPI</TT> passed.
14
	 *			Thrown if a <TT>null</TT> <TT>ISQLPanelAPI</TT> passed.
11
	 */
15
	 */
12
	public CloseAllSQLResultTabsCommand(ISQLPanelAPI api)
16
	public GotoNextResultsTabCommand(ISQLPanelAPI panel)
13
	{
17
	{
14
		super();
18
		super();
15
		if (api == null)
19
		if (panel == null)
16
		{
20
		{
17
			throw new IllegalArgumentException("ISQLPanelAPI == null");
21
			throw new IllegalArgumentException("ISQLPanelAPI == null");
18
		}
22
		}
23

19
		_api = api;
24
		_
20
	}
25
panel = panel;
26
	}
27
	/**
28
	 * Display the next results tab.
29
	 */
21
	public void execute()
30
	public void execute()
22
	{
31
	{
23
		_api.closeAllSQLResultTabs()
32
		_panel.gotoNextResultsTab()
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