public class CreateAliasCommand implements ICommand { /** Application API. */ private final IApplication _app; /** * Ctor. * * @param app Application API. * * @throws IllegalArgumentException * Thrown if a <TT>null</TT> <tt>IApplication</tt> passed. */ public CreateAliasCommand(IApplication app) { super(); if (app == null) { throw new IllegalArgumentException("IApplication == null"); } _app = app; } /** * Execute command. */ public void execute() { _app.getWindowManager().showNewAliasInternalFrame()
public class GotoNextResultsTabCommand implements ICommand { /** The current panel. */ private final ISQLPanelAPI _panel; /** * Ctor. * * @param panel The SQL Panel we want to display the next results * tab for. * * @throws IllegalArgumentException * Thrown if a <TT>null</TT> <TT>ISQLPanelAPI</TT> passed. */ public GotoNextResultsTabCommand(ISQLPanelAPI panel) { super(); if (panel == null) { throw new IllegalArgumentException("ISQLPanelAPI == null"); } _panel = panel; } /** * Display the next results tab. */ public void execute() { _panel.gotoNextResultsTab()
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/mainframe/action/CreateAliasCommand.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/action/GotoNextResultsTabCommand.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class CreateAliasCommand implements ICommand
1
public class GotoNextResultsTabCommand implements ICommand
2
{
2
{
3
	/** Application API. */
3
	/** The 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 next results
11
	 *					tab for.
9
	 *
12
	 *
10
	 * @throws	IllegalArgumentException
13
	 * @throws	IllegalArgumentException
11
	 *			Thrown if a <TT>null</TT> <tt>IApplication</tt> passed.
14
	 *			Thrown if a <TT>null</TT> <TT>ISQLPanelAPI</TT> passed.
12
	 */
15
	 */
13
	public CreateAliasCommand(IApplication app)
16
	public GotoNextResultsTabCommand(ISQLPanelAPI panel)
14
	{
17
	{
15
		super();
18
		super();
16
		if (app == null)
19
		if (panel == null)
17
		{
20
		{
18
			throw new IllegalArgumentException("IApplication == null");
21
			throw new IllegalArgumentException("ISQLPanelAPI == null");
19
		}
22
		}
20
		_app = app;
23
		_
21
	}
24
panel = panel;
25
	}
26

22
	/**
27
	/**
23
	 * Execute command.
28
	 * Display the next results tab.
24
	 */
29
	 */
25
	public void execute()
30
	public void execute()
26
	{
31
	{
27
		_app.getWindowManager().showNewAliasInternalFrame()
32
		_panel.gotoNextResultsTab()
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