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