public class ViewLogsCommand implements ICommand { /** Application API. */ private IApplication _app; /** * Ctor. * * @param app Application API. * * @throws IllegalArgumentException * Thrown if a <TT>null</TT> <TT>IApplication</TT> passed. */ public ViewLogsCommand(IApplication app) { super(); if (app == null) { throw new IllegalArgumentException("Null IApplication passed"); } _app = app; } /** * Display the Dialog */ public void execute() { ViewLogsSheet.showSheet(_app)
public class RefreshObjectTreeCommand implements ICommand { /** The object tree is to be refreshed. */ private final IObjectTreeAPI _tree; /** * Ctor. * * @param tree The tree that is to be refreshed. * * @throws IllegalArgumentException * Thrown if a <TT>null</TT> <TT>IObjectTreeAPI</TT> passed. */ public RefreshObjectTreeCommand(IObjectTreeAPI tree) { super(); if (tree == null) { throw new IllegalArgumentException("IObjectTreeAPI == null"); } _tree = tree; } /** * Refresh tree. */ public void execute() { _tree.refreshTree(true)
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/mainframe/action/ViewLogsCommand.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/action/RefreshObjectTreeCommand.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class ViewLogsCommand implements ICommand
1
public class RefreshObjectTreeCommand implements ICommand
2
{
2
{
3
	/** Application API. */
3
	/** 
4
	private IApplication _app
4
The object tree is to be refreshed. */
5
;
5
	private final IObjectTreeAPI _tree;
6
	/**
6
	/**
7
	 * Ctor.
7
	 * Ctor.
8
	 *
8
	 *
9
	 * @param	app		Application API.
9
	 * @param	tree	The tree that is to be refreshed.
10
	 *
10
	 *
11
	 * @throws	IllegalArgumentException
11
	 * @throws	IllegalArgumentException
12
	 *			Thrown if a <TT>null</TT> <TT>IApplication</TT> passed.
12
	 *			Thrown if a <TT>null</TT> <TT>IObjectTreeAPI</TT> passed.
13
	 */
13
	 */
14
	public ViewLogsCommand(IApplication app)
14
	public RefreshObjectTreeCommand(IObjectTreeAPI tree)
15
	{
15
	{
16
		super();
16
		super();
17
		if (app == null)
17
		if (tree == null)
18
		{
18
		{
19
			throw new IllegalArgumentException("Null IApplication passed");
19
			throw new IllegalArgumentException("
20
		}
21
		_app = app
20
IObjectTreeAPI == null");
21
		}
22
;
22
		_tree = tree;
23
	}
23
	}
24
	/**
24
	/**
25
	 * Display the Dialog
25
	 * Refresh tree.
26
	 */
26
	 */
27
	public void execute()
27
	public void execute()
28
	{
28
	{
29
		ViewLogsSheet.showSheet(_app)
29
		_tree.refreshTree(true)
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