File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/filter/plugins/DefaultActionRow.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/filter/plugins/DefaultCriteriaRow.java | |||
Method name: void initComponents()
|
Method name: void initComponents()
|
|||
Number of AST nodes: 14 | Number of AST nodes: 14 | |||
1 | String[] ids = pluginHandler.getPluginIdList();↵ | 1 | String[] ids = pluginHandler.getPluginIdList();↵ | |
2 | for (String element : ids) {↵ | 2 | for (String element : ids) {↵ | |
3 | // TODO localize filter action names↵ | 3 | // TODO localize filter action names↵ | |
4 | comboMenu.addMenuItem(element, element);↵ | 4 | comboMenu.addMenuItem(element, element);↵ | |
5 | }↵ | 5 | }↵ | |
6 | ↵ | 6 | ↵ | |
7 | comboMenu.setText(filterAction.getAction());↵ | 7 | comboMenu.setText(criteria.getTypeString());↵ | |
8 | comboMenu.addItemListener(actionList);↵ | 8 | comboMenu.addItemListener(criteriaList);↵ | |
9 | c.fill = GridBagConstraints.VERTICAL;↵ | 9 | c.fill = GridBagConstraints.VERTICAL;↵ | |
10 | c.weightx = 1.0;↵ | 10 | c.weightx = 1.0;↵ | |
11 | c.insets = new Insets(2, 2, 2, 2);↵ | 11 | c.insets = new Insets(2, 2, 2, 2);↵ | |
12 | c.gridx = 0;↵ | 12 | c.gridx = 0;↵ | |
13 | c.anchor = GridBagConstraints.WEST;↵ | 13 | c.anchor = GridBagConstraints.WEST;↵ | |
14 | c.gridwidth = 1;↵ | 14 | c.gridwidth = 1;↵ | |
15 | gridbag.setConstraints(comboMenu, c);↵ | 15 | gridbag.setConstraints(comboMenu, c);↵ | |
16 | panel.add(comboMenu);↵ | 16 | panel.add(comboMenu);↵ | |
17 | count = 0; | 17 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 126 |
Number of mapped statements | 14 |
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) | 19.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 | String[] ids = pluginHandler.getPluginIdList(); | 3 | String[] ids = pluginHandler.getPluginIdList(); | ||||||||||||||||||
8 | for (String element : ids) | 4 | for (String element : ids) | ||||||||||||||||||
9 | comboMenu.addMenuItem(element, element); | 5 | comboMenu.addMenuItem(element, element); | ||||||||||||||||||
10 | comboMenu.setText(filterAction.getAction()); |
| 6 | comboMenu.setText(criteria.getTypeString()); | |||||||||||||||||
11 | comboMenu.addItemListener(actionList); |
| 7 | comboMenu.addItemListener(criteriaList); | |||||||||||||||||
12 | c.fill = GridBagConstraints.VERTICAL; | 8 | c.fill = GridBagConstraints.VERTICAL; | ||||||||||||||||||
13 | c.weightx = 1.0; | 9 | c.weightx = 1.0; | ||||||||||||||||||
14 | c.insets = new Insets(2, 2, 2, 2); | 10 | c.insets = new Insets(2, 2, 2, 2); | ||||||||||||||||||
15 | c.gridx = 0; | 11 | c.gridx = 0; | ||||||||||||||||||
16 | c.anchor = GridBagConstraints.WEST; | 12 | c.anchor = GridBagConstraints.WEST; | ||||||||||||||||||
17 | c.gridwidth = 1; | 13 | c.gridwidth = 1; | ||||||||||||||||||
18 | gridbag.setConstraints(comboMenu, c); | 14 | gridbag.setConstraints(comboMenu, c); | ||||||||||||||||||
19 | panel.add(comboMenu); | 15 | panel.add(comboMenu); | ||||||||||||||||||
20 | count = 0; | 16 | count = 0; |
Row | Violation |
---|---|
1 | Expression filterAction cannot be unified with expression criteria , because common superclass org.columa.core.config.IDefaultItem does not declare member(s) public abstract java.lang.String getAction() , public java.lang.String getTypeString() |
2 | Expression actionList cannot be unified with expression criteriaList , because common superclass type javax.swing.JPanel cannot be passed as an argument to public void addItemListener(java.awt.event.ItemListener) |