try
{
new FormatSQLCommand(_session, _plugin).execute();
}
catch (Throwable ex)
{
// i18n[editextras.errorProcessingFormat=Error processing Format SQL command: {0}]
final String msg = s_stringMgr.getString("editextras.errorProcessingFormat", ex);
_session.showErrorMessage(msg);
s_log.error(msg, ex);
}
try
{
AlterTableDialog dlog = new AlterTableDialog(_session, _plugin, _ti);
dlog.pack();
GUIUtils.centerWithinParent(dlog);
dlog.setVisible(true);
}
catch (SQLException ex)
{
throw new WrappedSQLException(ex);
}
Clone fragments detected by clone detection tool
File path: /sql12/plugins/editextras/src/net/sourceforge/squirrel_sql/plugins/editextras/FormatSQLAction.java
|
|
File path: /sql12/plugins/mysql/src/net/sourceforge/squirrel_sql/plugins/mysql/action/AlterTableCommand.java
|
Method name: void actionPerformed(ActionEvent)
|
|
Method name: void execute()
|
Number of AST nodes: 2
|
|
Number of AST nodes: 5
|
|
1 | try↵ | | 1 | try↵
|
2 | {↵ | | 2 | {↵
|
3 | new FormatSQLCommand(_session, _plugin).execute();↵ | | 3 | ↵
|
4 | }↵ | | |
|
5 | catch (Throwable ex)↵ | | |
|
6 | {↵ | | |
|
7 | // i18n[editextras.errorProcessingFormat=Error processing Format SQL command: {0}]↵ | | |
|
8 | final String msg = s_stringMgr.getString("editextras.errorProcessingFormat", ex);↵ | | |
|
9 | _session.showErrorMessage(msg);↵ | | |
|
10 | s_log.error(msg, ↵ | | 4 | AlterTableDialog dlog = new AlterTableDialog(_session, _plugin, _ti);↵
|
| | | 5 | dlog.pack();↵
|
| | | 6 | GUIUtils.centerWithinParent(dlog);↵
|
| | | 7 | dlog.setVisible(true);↵
|
| | | 8 | }↵
|
| | | 9 | catch (SQLException ex)↵
|
| | | 10 | {↵
|
11 | ex);↵ | | 11 | throw new WrappedSQLException(ex);↵
|
12 | } | | 12 | }
|
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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |