public class CreateDriverCommand implements ICommand { /** Application API. */ private final IApplication _app; /** * Ctor. * * @param app Application API. */ public CreateDriverCommand(IApplication app) { super(); if (app == null) { throw new IllegalArgumentException("IApplication == null"); } _app = app; } public void execute() { _app.getWindowManager().showNewDriverInternalFrame()
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/mainframe/action/CreateDriverCommand.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 CreateDriverCommand implements ICommand
1
public class RefreshObjectTreeItemCommand implements ICommand
2
{
2
{
3
	/** Application API. */
3
	/** The object tree that is to be refreshed. */
4
	private final IApplication _app;
4
	private final I
5
ObjectTreeAPI _tree;
6

5
	/**
7
	/**
6
	 * Ctor.
8
	 * Ctor.
7
	 *
9
	 *
8
	 * @param	app			Application API.
10
	 * @param	tree	The object tree to be refreshed.
11
	 *
12
	 * @throws	IllegalArgumentException
13
	 *			Thrown if a <TT>null</TT> <TT>IObjectTreeAPI</TT> passed.
9
	 */
14
	 */
10
	public CreateDriverCommand(IApplication app)
15
	public RefreshObjectTreeItemCommand(IObjectTreeAPI tree)
11
	{
16
	{
12
		super();
17
		super();
13
		if (app == null)
18
		if (tree == null)
14
		{
19
		{
15
			throw new IllegalArgumentException("IApplication == null");
20
			throw new IllegalArgumentException("IObjectTreeAPI == null");
16
		}
21
		}
17
		_app = app;
22
		_
18
	}
23
tree = tree;
24
	}
25
	/**
26
	 * Refresh tree.
27
	 */
19
	public void execute()
28
	public void execute()
20
	{
29
	{
21
		_app.getWindowManager().showNewDriverInternalFrame()
30
		_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