File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/aliasproperties/ColorPropertiesPanel.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/aliasproperties/ColorPropertiesPanel.java | |||
Method name: void addStatusBarColorComponents(GridBagConstraints)
|
Method name: void addToolbarColorComponents(GridBagConstraints)
|
|||
Number of AST nodes: 1 | Number of AST nodes: 1 | |||
1 | statusBarBackgroundColorChk.addActionListener(new ActionListener()↵ | 1 | toolbarBackgroundColorChk.addActionListener(new ActionListener()↵ | |
2 | {↵ | 2 | {↵ | |
3 | @Override↵ | 3 | @Override↵ | |
4 | public void actionPerformed(ActionEvent e)↵ | 4 | public void actionPerformed(ActionEvent e)↵ | |
5 | {↵ | 5 | {↵ | |
6 | if (statusBarBackgroundColorChk.isSelected())↵ | 6 | if (toolbarBackgroundColorChk.isSelected())↵ | |
7 | {↵ | 7 | {↵ | |
8 | statusBarBackgroundColorBtn.setEnabled(true);↵ | 8 | toolbarBackgroundColorBtn.setEnabled(true);↵ | |
9 | statusBarBackgroundColorPnl.setEnabled(true);↵ | 9 | toolbarBackgroundColorPnl.setEnabled(true);↵ | |
10 | statusBarBackgroundLbl.setEnabled(true);↵ | 10 | toolBarBackgroundLbl.setEnabled(true);↵ | |
11 | }↵ | 11 | }↵ | |
12 | else↵ | 12 | else↵ | |
13 | {↵ | 13 | {↵ | |
14 | statusBarBackgroundColorBtn.setEnabled(false);↵ | 14 | toolbarBackgroundColorBtn.setEnabled(false);↵ | |
15 | statusBarBackgroundColorPnl.setEnabled(false);↵ | 15 | toolbarBackgroundColorPnl.setEnabled(false);↵ | |
16 | statusBarBackgroundLbl.setEnabled(false);↵ | 16 | toolBarBackgroundLbl.setEnabled(false);↵ | |
17 | }↵ | 17 | }↵ | |
18 | }↵ | 18 | }↵ | |
19 | }); | 19 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 1 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
19 | statusBarBackgroundColorChk.addActionListener(new ActionListener() {...}); |
| 19 | toolbarBackgroundColorChk.addActionListener(new ActionListener() {...}); |
Row | Violation |
---|