public class ScriptViewAction extends SquirrelAction implements ISessionAction { private ISession _session; private CachePlugin _plugin; private static final String PREFIX_SQLUSER = "SQLUser."; public ScriptViewAction(IApplication app, Resources rsrc, CachePlugin plugin) throws IllegalArgumentException { super(app, rsrc); _plugin = plugin; } public void setSession(ISession session) { _session = session; } public void actionPerformed(ActionEvent evt) { new ScriptViewCommand(_session).execute()
public class ShowQueryPlanAction extends SquirrelAction implements ISessionAction { private ISession _session; private CachePlugin _plugin; public static final String HREF_CLOSE_QUERY_PLAN = "#close query plan"; private QueryPlanTab _queryPlanTab; public ShowQueryPlanAction(IApplication app, Resources rsrc, CachePlugin plugin) throws IllegalArgumentException { super(app, rsrc); _plugin = plugin; } public void setSession(ISession session) { _session = session; } public void actionPerformed(ActionEvent evt) { new ShowQueryPlanCommand(_session).execute()
Clone fragments detected by clone detection tool
File path: /sql12/plugins/cache/src/de/ixdb/squirrel_sql/plugins/cache/ScriptViewAction.java File path: /sql12/plugins/cache/src/de/ixdb/squirrel_sql/plugins/cache/ShowQueryPlanAction.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class ScriptViewAction extends SquirrelAction implements ISessionAction
1
public class ShowQueryPlanAction extends SquirrelAction implements ISessionAction
2
{
2
{
3
   private ISession _session;
3
   private ISession _session;
4
   private CachePlugin _plugin;
4
   private CachePlugin _plugin;
5
   private static final String PREFIX_SQLUSER = "SQLUser.";
5
   public static final String HREF
6
   public ScriptView
6
_CLOSE_QUERY_PLAN = "#close query plan";
7
   private QueryPlanTab _queryPlanTab;
7
Action(IApplication app, Resources rsrc, CachePlugin plugin)
8
   public ShowQueryPlanAction(IApplication app, Resources rsrc, CachePlugin plugin)
8
		throws IllegalArgumentException
9
		throws IllegalArgumentException
9
	{
10
	{
10
		super(app, rsrc);
11
		super(app, rsrc);
11
      _plugin = plugin;
12
      _plugin = plugin;
12
   }
13
   }
13
   public void setSession(ISession session)
14
   public void setSession(ISession session)
14
   {
15
   {
15
      _session = session;
16
      _session = session;
16
   }
17
   }
17
	public void actionPerformed(ActionEvent evt)
18
	public void actionPerformed(ActionEvent evt)
18
	{
19
	{
19
      new ScriptViewCommand(_session).execute()
20
      new ShowQueryPlanCommand(_session).execute()
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