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 ReturnResultTabCommand implements ICommand { /** Frame to be returned. */ private ResultFrame _resultFrame; /** * Ctor. * * @param resultFrame Frame to be returned to tabbed folder. * * @throws IllegalArgumentException * Thrown if a <TT>null</TT> <TT>ResultFrame</TT> passed. */ public ReturnResultTabCommand(ResultFrame resultFrame) { super(); if (resultFrame == null) { throw new IllegalArgumentException("Null ResultFrame passed"); } _resultFrame = resultFrame; } public void execute() { _resultFrame.returnToTabbedPane()
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/ReturnResultTabCommand.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class CloseAllSQLResultTabsCommand implements ICommand
1
public class ReturnResultTabCommand implements ICommand
2
{
2
{
3
	private final ISQLPanelAPI _api;
3
	
4
	/**
5
	 * Ctor.
6
	 *
7
	 * @param	api
4
/** Frame to be returned. */
5
	private ResultFrame _resultFrame;
6
	/**
7
	 * Ctor.
8
	 *
9
	 * @param	resultFrame   Frame to be returned to tabbed folder.
8
	 *
10
	 *
9
	 * @throws	IllegalArgumentException
11
	 * @throws	IllegalArgumentException
10
	 *			Thrown if a <TT>null</TT> <TT>ISQLPanelAPI</TT> passed.
12
	 *			Thrown if a <TT>null</TT> <TT>ResultFrame</TT> passed.
11
	 */
13
	 */
12
	public CloseAllSQLResultTabsCommand(ISQLPanelAPI api)
14
	public ReturnResultTabCommand(ResultFrame resultFrame)
13
	{
15
	{
14
		super();
16
		super();
15
		if (api == null)
17
		if (resultFrame == null)
16
		{
18
		{
17
			throw new IllegalArgumentException("ISQLPanelAPI == null");
19
			throw new IllegalArgumentException("
18
		}
19
		_api = api
20
Null ResultFrame passed");
21
		}
20
;
22
		_resultFrame = resultFrame;
21
	}
23
	}
22
	public void execute()
24
	public void execute()
23
	{
25
	{
24
		_api.closeAllSQLResultTabs()
26
		_resultFrame.returnToTabbedPane()
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