File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/filter/plugins/DefaultCriteriaRow.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/filter/plugins/DefaultActionRow.java | |||
Method name: void initComponents()
|
Method name: void initComponents()
|
|||
Number of AST nodes: 15 | Number of AST nodes: 15 | |||
1 | comboMenu = new ComboMenu();↵ | 1 | comboMenu = new ComboMenu();↵ | |
2 | String[] ids = pluginHandler.getPluginIdList();↵ | 2 | String[] ids = pluginHandler.getPluginIdList();↵ | |
3 | for (String element : ids) {↵ | 3 | for (String element : ids) {↵ | |
4 | // TODO localize filter action names↵ | 4 | // TODO localize filter action names↵ | |
5 | comboMenu.addMenuItem(element, element);↵ | 5 | comboMenu.addMenuItem(element, element);↵ | |
6 | }↵ | 6 | }↵ | |
7 | ↵ | 7 | ↵ | |
8 | comboMenu.setText(criteria.getTypeString());↵ | 8 | comboMenu.setText(filterAction.getAction());↵ | |
9 | comboMenu.addItemListener(criteriaList);↵ | 9 | comboMenu.addItemListener(actionList);↵ | |
10 | c.fill = GridBagConstraints.VERTICAL;↵ | 10 | c.fill = GridBagConstraints.VERTICAL;↵ | |
11 | c.weightx = 1.0;↵ | 11 | c.weightx = 1.0;↵ | |
12 | c.insets = new Insets(2, 2, 2, 2);↵ | 12 | c.insets = new Insets(2, 2, 2, 2);↵ | |
13 | c.gridx = 0;↵ | 13 | c.gridx = 0;↵ | |
14 | c.anchor = GridBagConstraints.WEST;↵ | 14 | c.anchor = GridBagConstraints.WEST;↵ | |
15 | c.gridwidth = 1;↵ | 15 | c.gridwidth = 1;↵ | |
16 | gridbag.setConstraints(comboMenu, c);↵ | 16 | gridbag.setConstraints(comboMenu, c);↵ | |
17 | panel.add(comboMenu);↵ | 17 | panel.add(comboMenu);↵ | |
18 | count = 0; | 18 |
| |
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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 128 |
Number of mapped statements | 14 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 5.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | comboMenu = new ComboMenu(); | 6 | comboMenu = new ComboMenu(); | ||||||||||||||
3 | String[] ids = pluginHandler.getPluginIdList(); | 7 | String[] ids = pluginHandler.getPluginIdList(); | ||||||||||||||
4 | for (String element : ids) | 8 | for (String element : ids) | ||||||||||||||
5 | comboMenu.addMenuItem(element, element); | 9 | comboMenu.addMenuItem(element, element); | ||||||||||||||
6 | comboMenu.setText(criteria.getTypeString()); | | |||||||||||||||
| 10 | comboMenu.setText(filterAction.getAction()); | |||||||||||||||
7 | comboMenu.addItemListener(criteriaList); |
| 11 | comboMenu.addItemListener(actionList); | |||||||||||||
8 | c.fill = GridBagConstraints.VERTICAL; | 12 | c.fill = GridBagConstraints.VERTICAL; | ||||||||||||||
9 | c.weightx = 1.0; | 13 | c.weightx = 1.0; | ||||||||||||||
10 | c.insets = new Insets(2, 2, 2, 2); | 14 | c.insets = new Insets(2, 2, 2, 2); | ||||||||||||||
11 | c.gridx = 0; | 15 | c.gridx = 0; | ||||||||||||||
12 | c.anchor = GridBagConstraints.WEST; | 16 | c.anchor = GridBagConstraints.WEST; | ||||||||||||||
13 | c.gridwidth = 1; | 17 | c.gridwidth = 1; | ||||||||||||||
14 | gridbag.setConstraints(comboMenu, c); | 18 | gridbag.setConstraints(comboMenu, c); | ||||||||||||||
15 | panel.add(comboMenu); | 19 | panel.add(comboMenu); | ||||||||||||||
16 | count = 0; | 20 | count = 0; |
Row | Violation |
---|