if (_catalogsCmb != null)
{
final ISQLConnection conn = _session.getSQLConnection();
if (!StringUtilities.areStringsEqual(conn.getCatalog(), _catalogsCmb.getSelectedCatalog()))
{
_catalogsCmb.setSelectedCatalog(conn.getCatalog());
}
}
if (_exportAliasesChk.getModel().isSelected()) {
File f = new File(_exportAliasesText.getText());
if (!f.exists() || confirmOverwrite(f)) {
_app.getDataCache().saveAliases(f);
}
}
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/session/CatalogsPanel.java
|
|
File path: /sql12/plugins/exportconfig/src/net/sourceforge/squirrel_sql/plugins/exportconfig/gui/ExportPanelBuilder.java
|
Method name: void onConnectionPropertyChanged(PropertyChangeEvent)
|
|
Method name: void actionPerformed(ActionEvent)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | if (_catalogsCmb != null)↵ | | 1 | if (_↵
|
2 | {↵ | | |
|
3 | final ISQLConnection conn = _session.getSQLConnection();↵ | | |
|
4 | if (!StringUtilities.areStringsEqual(conn.getCatalog(), _catalogsCmb.getSelectedCatalog()))↵ | | |
|
5 | {↵ | | |
|
6 | _catalogsCmb.setSelectedCatalog(conn.getCatalog());↵ | | |
|
7 | }↵ | | |
|
8 | ↵ | | 2 | exportAliasesChk.getModel().isSelected()) {↵
|
| | | 3 | File f = new File(_exportAliasesText.getText()); ↵
|
| | | 4 | if (!f.exists() || confirmOverwrite(f)) {↵
|
| | | 5 | _app.getDataCache().saveAliases(f);↵
|
| | | 6 | }↵
|
9 | } | | 7 | }
|
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 |