public class CloseAllSQLResultWindowsCommand implements ICommand { private final ISQLPanelAPI _api; /** * Ctor. * * @param api * * @throws IllegalArgumentException * Thrown if a <TT>null</TT> <TT>ISession</TT> passed. */ public CloseAllSQLResultWindowsCommand(ISQLPanelAPI api) { super(); if (api == null) { throw new IllegalArgumentException("ISQLPanelAPI == null"); } _api = api; } public void execute() { _api.closeAllSQLResultFrames()
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/CloseAllSQLResultWindowsCommand.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 CloseAllSQLResultWindowsCommand implements ICommand
1
public class GotoPreviousResultsTabCommand implements ICommand
2
{
2
{
3
	/** 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	
8
	 *
11
panel	The SQL Panel we want to display the previous results
12
	 *					tab for.
13
	 *
9
	 * @throws	IllegalArgumentException
14
	 * @throws	IllegalArgumentException
10
	 *			Thrown if a <TT>null</TT> <TT>ISession</TT> passed.
15
	 *			Thrown if a <TT>null</TT> <TT>ISQLPanelAPI</TT> passed.
11
	 */
16
	 */
12
	public CloseAllSQLResultWindowsCommand(ISQLPanelAPI api)
17
	public GotoPreviousResultsTabCommand(ISQLPanelAPI panel)
13
	{
18
	{
14
		super();
19
		super();
15
		if (api == null)
20
		if (panel == null)
16
		{
21
		{
17
			throw new IllegalArgumentException("ISQLPanelAPI == null");
22
			throw new IllegalArgumentException("ISession == null");
18
		}
23
		}
24

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