public class ShowNamespacesAction extends SquirrelAction implements ISessionAction
{
private ISession _session;
public ShowNamespacesAction(IApplication app, Resources rsrc, CachePlugin plugin)
throws IllegalArgumentException
{
super(app, rsrc);
}
public void setSession(ISession session)
{
_session = session;
}
public void actionPerformed(ActionEvent evt)
{
new ShowNamespacesCommand(_session).execute()
public class ShowProcessesAction extends SquirrelAction implements ISessionAction
{
private ISession _session;
public ShowProcessesAction(IApplication app, Resources rsrc, CachePlugin plugin)
throws IllegalArgumentException
{
super(app, rsrc);
}
public void setSession(ISession session)
{
_session = session;
}
public void actionPerformed(ActionEvent e)
{
new ShowProcessesCommand(_session).execute()
Clone fragments detected by clone detection tool
File path: /sql12/plugins/cache/src/de/ixdb/squirrel_sql/plugins/cache/ShowNamespacesAction.java
|
|
File path: /sql12/plugins/cache/src/de/ixdb/squirrel_sql/plugins/cache/ShowProcessesAction.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class ShowNamespacesAction extends SquirrelAction implements ISessionAction↵ | | 1 | public class ShowProcessesAction extends SquirrelAction implements ISessionAction↵
|
2 | {↵ | | 2 | {↵
|
3 | private ISession _session;↵ | | 3 | private ISession _session;↵
|
|
4 | public ShowNamespacesAction(IApplication app, Resources rsrc, CachePlugin plugin)↵ | | 4 | public ShowProcessesAction(IApplication app, Resources rsrc, CachePlugin plugin)↵
|
5 | throws IllegalArgumentException↵ | | 5 | throws IllegalArgumentException↵
|
6 | {↵ | | 6 | {↵
|
7 | super(app, rsrc);↵ | | 7 | super(app, rsrc);↵
|
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 e↵
|
14 | ↵ | | 14 | )↵
|
15 | {↵ | | 15 | {↵
|
16 | new ShowNamespacesCommand(_session).execute() | | 16 | new ShowProcessesCommand(_session).execute()
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |