public class CopyTableAction extends SquirrelAction implements ISessionAction { /** Current session. */ private ISession _session; /** Current plugin. */ private final MysqlPlugin _plugin; public CopyTableAction(IApplication app, Resources rsrc,MysqlPlugin plugin) { super(app, rsrc); _plugin = plugin; } public void actionPerformed(ActionEvent evt) { if (_session != null) { try { new CopyTableCommand(_session, _plugin).execute(); } catch (Throwable th) { _session.showErrorMessage(th); } } } /** * Set the current session. * * @param session The current session. */ public void setSession(ISession session) { _session = session
public class CreateTableAction extends SquirrelAction implements ISessionAction { /** Current session. */ private ISession _session; /** Current plugin. */ private final MysqlPlugin _plugin; public CreateTableAction(IApplication app, Resources rsrc, MysqlPlugin plugin) { super(app, rsrc); _plugin = plugin; } public void actionPerformed(ActionEvent evt) { if (_session != null) { try { new CreateTableCommand(_session, _plugin).execute(); } catch (Throwable th) { _session.showErrorMessage(th); } } } /** * Set the current session. * * @param session The current session. */ public void setSession(ISession session) { _session = session
Clone fragments detected by clone detection tool
File path: /sql12/plugins/mysql/src/net/sourceforge/squirrel_sql/plugins/mysql/action/CopyTableAction.java File path: /sql12/plugins/mysql/src/net/sourceforge/squirrel_sql/plugins/mysql/action/CreateTableAction.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class CopyTableAction extends SquirrelAction implements ISessionAction
1
public class CreateTableAction extends SquirrelAction implements ISessionAction
2
{
2
{
3
	/** Current session. */
3
	/** Current session. */
4
	private ISession _session;
4
	private ISession _session;
5
	/** Current plugin. */
5
	/** Current plugin. */
6
	private final MysqlPlugin _plugin;
6
	private final MysqlPlugin _plugin;
7
	public CopyTableAction(IApplication app, Resources rsrc,MysqlPlugin plugin)
7
	public CreateTableAction(IApplication app, Resources rsrc, MysqlPlugin plugin)
8
	{
8
	{
9
		super(app, rsrc);
9
		super(app, rsrc);
10
		_plugin = plugin;
10
		_plugin = plugin;
11
	}
11
	}
12
	public void actionPerformed(ActionEvent evt)
12
	public void actionPerformed(ActionEvent evt)
13
	{
13
	{
14
		if (_session != null)
14
		if (_session != null)
15
		{
15
		{
16
			try
16
			try
17
			{
17
			{
18
				new CopyTableCommand(_session, _plugin).execute();
18
				new CreateTableCommand(_session, _plugin).execute();
19
			}
19
			}
20
			catch (Throwable th)
20
			catch (Throwable th)
21
			{
21
			{
22
				_session.showErrorMessage(th);
22
				_session.showErrorMessage(th);
23
			}
23
			}
24
		}
24
		}
25
	}
25
	}
26
	/**
26
	/**
27
	 * Set the current session.
27
	 * Set the current session.
28
	 *
28
	 *
29
	 * @param	session		The current session.
29
	 * @param	session		The current session.
30
	 */
30
	 */
31
	public void setSession(ISession session)
31
	public void setSession(ISession session)
32
	{
32
	{
33
		_session = session
33
		_session = session
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