public class NextSessionAction extends SquirrelAction implements ISessionAction { private ISession _session; public NextSessionAction(IApplication app) { super(app); } public void setSession(ISession session) { _session = session; } public void actionPerformed(ActionEvent evt) { getApplication().getWindowManager().activateNextSessionWindow()
public class PreviousSessionAction extends SquirrelAction implements ISessionAction { private ISession _session; public PreviousSessionAction(IApplication app) { super(app); } public void setSession(ISession session) { _session = session; } public void actionPerformed(ActionEvent evt) { getApplication().getWindowManager().activatePreviousSessionWindow()
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/action/NextSessionAction.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/action/PreviousSessionAction.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class NextSessionAction extends SquirrelAction
1
public class PreviousSessionAction extends SquirrelAction
2
								implements ISessionAction
2
									implements ISessionAction
3
{
3
{
4
	private ISession _session;
4
	private ISession _session;
5
	public NextSessionAction(IApplication app)
5
	public PreviousSessionAction(IApplication app)
6
	{
6
	{
7
		super(app);
7
		super(app);
8
	}
8
	}
9
	public void setSession(ISession session)
9
	public void setSession(ISession session)
10
	{
10
	{
11
		_session = session;
11
		_session = session;
12
	}
12
	}
13
	public void actionPerformed(ActionEvent evt)
13
	public void actionPerformed(ActionEvent evt)
14
	{
14
	{
15
		getApplication().getWindowManager().activateNextSessionWindow()
15
		getApplication().getWindowManager().activatePreviousSessionWindow()
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