public class CloseAllButCurrentSessionsAction extends SquirrelAction { /** * Ctor. * * @param app Application API. */ public CloseAllButCurrentSessionsAction(IApplication app) { super(app); } /** * Perform this action. Use the <TT>CloseAllSessionsCommand</TT>. * * @param evt The current event. */ public void actionPerformed(ActionEvent evt) { IApplication app = getApplication(); CursorChanger cursorChg = new CursorChanger(app.getMainFrame()); cursorChg.show(); try { new CloseAllButCurrentSessionsCommand(app).execute(); } finally { cursorChg.restore()
public class CloseAllSessionsAction extends SquirrelAction { /** * Ctor. * * @param app Application API. */ public CloseAllSessionsAction(IApplication app) { super(app); } /** * Perform this action. Use the <TT>CloseAllSessionsCommand</TT>. * * @param evt The current event. */ public void actionPerformed(ActionEvent evt) { IApplication app = getApplication(); CursorChanger cursorChg = new CursorChanger(app.getMainFrame()); cursorChg.show(); try { new CloseAllSessionsCommand(app).execute(); } finally { cursorChg.restore()
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/mainframe/action/CloseAllButCurrentSessionsAction.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/mainframe/action/CloseAllSessionsAction.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class CloseAllButCurrentSessionsAction extends SquirrelAction
1
public class CloseAllSessionsAction extends SquirrelAction
2
{
2
{
3
	/**
3
	/**
4
	 * Ctor.
4
	 * Ctor.
5
	 *
5
	 *
6
	 * @param	app		Application API.
6
	 * @param	app		Application API.
7
	 */
7
	 */
8
	public CloseAllButCurrentSessionsAction(IApplication app)
8
	public CloseAllSessionsAction(IApplication app)
9
	{
9
	{
10
		super(app);
10
		super(app);
11
	}
11
	}
12
	/**
12
	/**
13
	 * Perform this action. Use the <TT>CloseAllSessionsCommand</TT>.
13
	 * Perform this action. Use the <TT>CloseAllSessionsCommand</TT>.
14
	 *
14
	 *
15
	 * @param	evt	The current event.
15
	 * @param	evt	The current event.
16
	 */
16
	 */
17
	public void actionPerformed(ActionEvent evt)
17
	public void actionPerformed(ActionEvent evt)
18
	{
18
	{
19
		IApplication app = getApplication();
19
		IApplication app = getApplication();
20
		CursorChanger cursorChg = new CursorChanger(app.getMainFrame());
20
		CursorChanger cursorChg = new CursorChanger(app.getMainFrame());
21
		cursorChg.show();
21
		cursorChg.show();
22
		try
22
		try
23
		{
23
		{
24
			new CloseAllButCurrentSessionsCommand(app).execute();
24
			new CloseAllSessionsCommand(app).execute();
25
		}
25
		}
26
		finally
26
		finally
27
		{
27
		{
28
			cursorChg.restore()
28
			cursorChg.restore()
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