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 GotoPreviousResultsTabCommand implements ICommand { /** Current panel. */ private final ISQLPanelAPI _panel; /** * Ctor. * * @param panel The SQL Panel we want to display the previous results * tab for. * * @throws IllegalArgumentException * Thrown if a <TT>null</TT> <TT>ISQLPanelAPI</TT> passed. */ public GotoPreviousResultsTabCommand(ISQLPanelAPI panel) { super(); if (panel == null) { throw new IllegalArgumentException("ISession == null"); } _panel = panel; } /** * Display the previous results tab. */ public void execute() { _panel.gotoPreviousResultsTab()
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/GotoPreviousResultsTabCommand.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class CreateDriverCommand implements ICommand
1
public class GotoPreviousResultsTabCommand implements ICommand
2
{
2
{
3
	/** Application API. */
3
	/** Current panel. */
4
	private final IApplication _app;
4
	private final I
5
SQLPanelAPI _panel;
6

5
	/**
7
	/**
6
	 * Ctor.
8
	 * Ctor.
7
	 *
9
	 *
8
	 * @param	app			Application API.
10
	 * @param	panel	The SQL Panel we want to display the previous results
11
	 *					tab for.
12
	 *
13
	 * @throws	IllegalArgumentException
14
	 *			Thrown if a <TT>null</TT> <TT>ISQLPanelAPI</TT> passed.
9
	 */
15
	 */
10
	public CreateDriverCommand(IApplication app)
16
	public GotoPreviousResultsTabCommand(ISQLPanelAPI panel)
11
	{
17
	{
12
		super();
18
		super();
13
		if (app == null)
19
		if (panel == null)
14
		{
20
		{
15
			throw new IllegalArgumentException("IApplication == null");
21
			throw new IllegalArgumentException("ISession == null");
16
		}
22
		}
17
		_app = app;
23
		_
18
	}
24
panel = panel;
25
	}
26
	/**
27
	 * Display the previous results tab.
28
	 */
19
	public void execute()
29
	public void execute()
20
	{
30
	{
21
		_app.getWindowManager().showNewDriverInternalFrame()
31
		_panel.gotoPreviousResultsTab()
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