public class NewSessionPropertiesCommand { /** Application API. */ private IApplication _app; /** * Ctor. * * @param app Application API. * * @throws IllegalArgumentException * Thrown if a <TT>null</TT> <TT>IApplication</TT> passed. */ public NewSessionPropertiesCommand(IApplication app) { super(); if (app == null) { throw new IllegalArgumentException("Null IApplication passed"); } _app = app; } /** * Display the Dialog */ public void execute() { NewSessionPropertiesSheet.showSheet(_app)
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/mainframe/action/NewSessionPropertiesCommand.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 NewSessionPropertiesCommand
1
public class 
2
{
3
	/** Application API. */
4
	private IApplication _app;
5
	/**
6
	 * Ctor.
7
	 *
8
	 * @param	app		Application API
2
ReturnResultTabCommand implements ICommand
3
{
4
	/** Frame to be returned. */
5
	private ResultFrame _resultFrame;
6
	/**
7
	 * Ctor.
8
	 *
9
.
9
	 * @param	resultFrame   Frame to be returned to tabbed folder.
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>ResultFrame</TT> passed.
13
	 */
13
	 */
14
	public NewSessionPropertiesCommand(IApplication app)
14
	public ReturnResultTabCommand(ResultFrame resultFrame)
15
	{
15
	{
16
		super();
16
		super();
17
		if (app == null)
17
		if (resultFrame == null)
18
		{
18
		{
19
			throw new IllegalArgumentException("Null IApplication passed");
19
			throw new IllegalArgumentException("Null ResultFrame passed");
20
		}
20
		}
21
		_app = app;
21
		_
22
	}
23
	/**
24
	 * Display the Dialog
25
	 */
26
	public void execute()
27
	{
28
		NewSessionPropertiesSheet.showSheet(_app
22
resultFrame = resultFrame;
23
	}
24
	public void execute()
25
	{
29
)
26
		_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