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()
public class ReturnResultTabCommand implements ICommand { /** Frame to be returned. */ private ResultFrame _resultFrame; /** * Ctor. * * @param resultFrame Frame to be returned to tabbed folder. * * @throws IllegalArgumentException * Thrown if a <TT>null</TT> <TT>ResultFrame</TT> passed. */ public ReturnResultTabCommand(ResultFrame resultFrame) { super(); if (resultFrame == null) { throw new IllegalArgumentException("Null ResultFrame passed"); } _resultFrame = resultFrame; } public void execute() { _resultFrame.returnToTabbedPane()
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/action/GotoPreviousResultsTabCommand.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/action/ReturnResultTabCommand.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class GotoPreviousResultsTabCommand implements ICommand
1
public class ReturnResultTabCommand implements ICommand
2
{
2
{
3
	/** Current panel. */
3
	/** Frame to be returned. */
4
	private final ISQLPanelAPI _panel;
4
	private 
5

5
ResultFrame _resultFrame;
6
	/**
6
	/**
7
	 * Ctor.
7
	 * Ctor.
8
	 *
8
	 *
9
	 * @param	panel	The SQL Panel we want to display the previous results
9
	 * @param	resultFrame   Frame to be re
10
	 *					tab for.
10
turned to tabbed folder.
11
	 *
11
	 *
12
	 * @throws	IllegalArgumentException
12
	 * @throws	IllegalArgumentException
13
	 *			Thrown if a <TT>null</TT> <TT>ISQLPanelAPI</TT> passed.
13
	 *			Thrown if a <TT>null</TT> <TT>ResultFrame</TT> passed.
14
	 */
14
	 */
15
	public GotoPreviousResultsTabCommand(ISQLPanelAPI panel)
15
	public ReturnResultTabCommand(ResultFrame resultFrame)
16
	{
16
	{
17
		super();
17
		super();
18
		if (panel == null)
18
		if (resultFrame == null)
19
		{
19
		{
20
			throw new IllegalArgumentException("ISession == null");
20
			throw new IllegalArgumentException("
21
		}
22
		_panel = panel;
23
	}
24
	/**
25
	 * Display the previous results tab.
26
	 */
21
Null ResultFrame passed");
22
		}
23
		_resultFrame = resultFrame;
24
	}
27
	public void execute()
25
	public void execute()
28
	{
26
	{
29
		_panel.gotoPreviousResultsTab()
27
		_resultFrame.returnToTabbedPane()
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