if(_viewAsTree)
{
_pnlContainer.remove(_jListImpl.getComponent());
_pnlContainer.add(_jTreeImpl.getComponent());
}
else
{
_pnlContainer.remove(_jTreeImpl.getComponent());
_pnlContainer.add(_jListImpl.getComponent());
}
if (isSelected)
{
comp.setBackground(table.getSelectionBackground());
comp.setForeground(table.getSelectionForeground());
}
else
{
comp.setBackground(table.getBackground());
comp.setForeground(table.getForeground());
}
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/AliasesList.java
|
|
File path: /sql12/plugins/firebirdmanager/src/net/sourceforge/squirrel_sql/plugins/firebirdmanager/gui/FirebirdManagerGrantFrame.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | if(_viewAsTree)↵ | | 1 | if↵
|
2 | {↵ | | |
|
3 | _pnlContainer.remove(_jListImpl.getComponent());↵ | | |
|
4 | _pnlContainer.add(_jTreeImpl.getComponent());↵ | | |
|
5 | }↵ | | |
|
6 | else↵ | | |
|
7 | {↵ | | |
|
8 | _pnlContainer.remove(_jTreeImpl.getComponent());↵ | | |
|
9 | _pnlContainer.add(_jListImpl.getComponent());↵ | | |
|
10 | ↵ | | 2 | (isSelected)↵
|
| | | 3 | {↵
|
| | | 4 | comp.setBackground(table.getSelectionBackground());↵
|
| | | 5 | comp.setForeground(table.getSelectionForeground());↵
|
| | | 6 | }↵
|
| | | 7 | else↵
|
| | | 8 | {↵
|
| | | 9 | comp.setBackground(table.getBackground());↵
|
| | | 10 | comp.setForeground(table.getForeground());↵
|
11 | } | | 11 | }
|
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 |