GUIUtils.processOnSwingEventThread(new Runnable()
{
public void run()
{
fr.moveToFront();
fr.setVisible(true);
try
{
fr.setSelected(true);
}
catch (PropertyVetoException ex)
{
// i18n[WindowManager.error.bringtofront=Error bringing internal frame to the front]
s_log.error(s_stringMgr.getString("WindowManager.error.bringtofront"), ex);
}
}
});
try
{
app.getPluginManager().sessionCreated(_session);
app.getWindowManager().createInternalFrame(_session);
_connSheet.executed(true);
}
catch (Throwable th)
{
app.showErrorDialog(s_stringMgr.getString("ConnectToAliasCommand.error.opensession"), th);
}
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/WindowManager.java
|
|
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/mainframe/action/ConnectToAliasCommand.java
|
Method name: void moveToFront(JInternalFrame)
|
|
Method name: void run()
|
Number of AST nodes: 1
|
|
Number of AST nodes: 4
|
|
1 | GUIUtils.processOnSwingEventThread(new Runnable()↵ | | |
|
2 | {↵ | | |
|
3 | public void run()↵ | | |
|
4 | {↵ | | |
|
5 | fr.moveToFront(↵ | | 1 | try↵
|
| | | 2 | {↵
|
6 | );↵ | | 3 | app.getPluginManager().sessionCreated(_session);↵
|
7 | fr.setVisible(true);↵ | | 4 | ↵
|
8 | try↵ | | |
|
9 | {↵ | | |
|
10 | fr.setSelected(true);↵ | | |
|
11 | }↵ | | |
|
12 | catch (PropertyVetoException ex)↵ | | |
|
13 | {↵ | | |
|
14 | // i18n[WindowManager.error.bringtofront=Error bringing internal frame to the front]↵ | | 5 | app.getWindowManager().createInternalFrame(_session);↵
|
| | | 6 | _connSheet.executed(true);↵
|
| | | 7 | }↵
|
| | | 8 | catch (Throwable th)↵
|
15 | ↵ | | 9 | {↵
|
16 | s_log.error(s_stringMgr.getString("WindowManager.error.bringtofront"), ex);↵ | | 10 | app.showErrorDialog(s_stringMgr.getString("ConnectToAliasCommand.error.opensession"), th);↵
|
17 | }↵ | | 11 | }
|
18 | }↵ | | | |
19 | }); | | | |
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 | Clones are in different classes |
Number of node comparisons | 3 |