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 RefreshObjectTreeItemCommand implements ICommand { /** The object tree that is to be refreshed. */ private final IObjectTreeAPI _tree; /** * Ctor. * * @param tree The object tree to be refreshed. * * @throws IllegalArgumentException * Thrown if a <TT>null</TT> <TT>IObjectTreeAPI</TT> passed. */ public RefreshObjectTreeItemCommand(IObjectTreeAPI tree) { super(); if (tree == null) { throw new IllegalArgumentException("IObjectTreeAPI == null"); } _tree = tree; } /** * Refresh tree. */ public void execute() { _tree.refreshSelectedNodes()
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/RefreshObjectTreeItemCommand.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class CloseAllSQLResultWindowsCommand implements ICommand
1
public class RefreshObjectTreeItemCommand implements ICommand
2
{
2
{
3
	/** The object tree that is to be refreshed. */
3
	private final ISQLPanelAPI _api;
4
	private final I
5
ObjectTreeAPI _tree;
6

4
	/**
7
	/**
5
	 * Ctor.
8
	 * Ctor.
6
	 *
9
	 *
7
	 * @param	api
10
	 * @param	tree	The object tree to be refreshed.
8
	 *
11
	 *
9
	 * @throws	IllegalArgumentException
12
	 * @throws	IllegalArgumentException
10
	 *			Thrown if a <TT>null</TT> <TT>ISession</TT> passed.
13
	 *			Thrown if a <TT>null</TT> <TT>IObjectTreeAPI</TT> passed.
11
	 */
14
	 */
12
	public CloseAllSQLResultWindowsCommand(ISQLPanelAPI api)
15
	public RefreshObjectTreeItemCommand(IObjectTreeAPI tree)
13
	{
16
	{
14
		super();
17
		super();
15
		if (api == null)
18
		if (tree == null)
16
		{
19
		{
17
			throw new IllegalArgumentException("ISQLPanelAPI == null");
20
			throw new IllegalArgumentException("IObjectTreeAPI == null");
18
		}
21
		}
22

19
		_api = api;
23
		_
20
	}
24
tree = tree;
25
	}
26
	/**
27
	 * Refresh tree.
28
	 */
21
	public void execute()
29
	public void execute()
22
	{
30
	{
23
		_api.closeAllSQLResultFrames()
31
		_tree.refreshSelectedNodes()
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