FontButton btn = (FontButton) evt.getSource();
FontInfo fi = btn.getFontInfo();
Font font = null;
if (fi != null)
{
font = fi.createFont();
}
font = new FontChooser().showDialog(font);
if (font != null)
{
btn.setSelectedFont(font);
btn._lbl.setText(new FontInfo(font).toString());
}
FontButton btn = (FontButton) evt.getSource();
FontInfo fi = btn.getFontInfo();
Font font = null;
if (fi != null)
{
font = fi.createFont();
}
font = new FontChooser().showDialog(font);
if (font != null)
{
btn.setSelectedFont(font);
btn._lbl.setText(new FontInfo(font).toString());
}
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/properties/SessionSQLPropertiesPanel.java
|
|
File path: /sql12/plugins/laf/src/net/sourceforge/squirrel_sql/plugins/laf/LAFFontsTab.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | FontButton btn = (FontButton) evt.getSource();↵ | | 1 | FontButton btn = (FontButton) evt.getSource();↵
|
2 | FontInfo fi = btn.getFontInfo();↵ | | 2 | FontInfo fi = btn.getFontInfo();↵
|
3 | Font font = null;↵ | | 3 | Font font = null;↵
|
4 | if (fi != null)↵ | | 4 | if (fi != null)↵
|
5 | {↵ | | 5 | {↵
|
6 | font = fi.createFont();↵ | | 6 | font = fi.createFont();↵
|
7 | }↵ | | 7 | }↵
|
8 | font = new FontChooser().showDialog(font);↵ | | 8 | font = new FontChooser().showDialog(font);↵
|
9 | if (font != null)↵ | | 9 | if (font != null)↵
|
10 | {↵ | | 10 | {↵
|
11 | btn.setSelectedFont(font);↵ | | 11 | btn.setSelectedFont(font);↵
|
12 | btn._lbl.setText(new FontInfo(font).toString());↵ | | 12 | btn._lbl.setText(new FontInfo(font).toString());↵
|
13 | } | | 13 | }
|
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 |