try {
RemoveNewLinesCommand command = new RemoveNewLinesCommand(
FrameWorkAcessor.getSQLPanelAPI(_session, _plugin));
command.execute();
} catch (Throwable ex) {
// i18n[editextras.errorRemoveNewLines=Error processing Remove
// NewLines SQL command: {0}]
final String msg = s_stringMgr.getString(
"editextras.errorRemoveNewLines", ex);
_session.showErrorMessage(msg);
s_log.error(msg, ex);
}
Dimension graphPixelSize = _printable.initPrintNoScaleSinglePage();
SaveToFilePageFormat pf = new SaveToFilePageFormat(graphPixelSize);
BufferedImage img = prepareImage(graphPixelSize.width, graphPixelSize.height);
_printable.print(img.getGraphics(), pf, 0);
images.add(img);
Clone fragments detected by clone detection tool
File path: /sql12/plugins/editextras/src/net/sourceforge/squirrel_sql/plugins/editextras/RemoveNewLlinesAction.java
|
|
File path: /sql12/plugins/graph/src/net/sourceforge/squirrel_sql/plugins/graph/ZoomPrintController.java
|
Method name: void actionPerformed(ActionEvent)
|
|
Method name: void onSaveImages()
|
Number of AST nodes: 3
|
|
Number of AST nodes: 5
|
|
1 | try {↵ | | |
|
2 | RemoveNewLinesCommand command = new RemoveNewLinesCommand(↵ | | |
|
3 | FrameWorkAcessor.getSQLPanelAPI(_session, _plugin));↵ | | |
|
4 | command.execute();↵ | | |
|
5 | } catch (Throwable ex) {↵ | | |
|
6 | // i18n[editextras.errorRemoveNewLines=Error processing Remove↵ | | |
|
7 | // NewLines SQL command: {0}]↵ | | |
|
8 | final String msg = s_stringMgr.getString(↵ | | |
|
9 | "editextras.errorRemoveNewLines", ex);↵ | | |
|
|
10 | _session.showErrorMessage(msg);↵ | | |
|
11 | s_log.error(msg, ex);↵ | | |
|
12 | } | | 1 | Dimension graphPixelSize = _printable.initPrintNoScaleSinglePage();↵
|
| | | 2 | SaveToFilePageFormat pf = new SaveToFilePageFormat(graphPixelSize);↵
|
|
| | | 3 | BufferedImage img = prepareImage(graphPixelSize.width, graphPixelSize.height);↵
|
| | | 4 | _printable.print(img.getGraphics(), pf, 0);↵
|
|
| | | 5 | images.add(img);
|
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 | 10 |