File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/search/ResultList.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/tagging/ResultList.java | |||
Method name: void MyListCellRenderer()
|
Method name: void MyListCellRenderer()
|
|||
Number of AST nodes: 18 | Number of AST nodes: 18 | |||
1 | setLayout(new BorderLayout());↵ | 1 | setLayout(new BorderLayout());↵ | |
2 | ↵ | |||
2 | topPanel = new JPanel();↵ | 3 | topPanel = new JPanel(); ↵ | |
3 | topPanel.setLayout(new BorderLayout());↵ | 4 | topPanel.setLayout(new BorderLayout()); ↵ | |
4 | topPanel.add(fromLabel, BorderLayout.CENTER);↵ | 5 | topPanel.add(fromLabel, BorderLayout.CENTER); ↵ | |
5 | topPanel.add(dateLabel, BorderLayout.EAST);↵ | 6 | topPanel.add(dateLabel, BorderLayout.EAST);↵ | |
7 | ↵ | |||
6 | centerPanel = new JPanel();↵ | 8 | centerPanel = new JPanel(); ↵ | |
7 | centerPanel.setLayout(new BorderLayout());↵ | 9 | centerPanel.setLayout(new BorderLayout()); ↵ | |
8 | centerPanel.add(topPanel, BorderLayout.NORTH);↵ | 10 | centerPanel.add(topPanel, BorderLayout.NORTH); ↵ | |
9 | centerPanel.add(subjectLabel, BorderLayout.CENTER);↵ | 11 | centerPanel.add(subjectLabel, BorderLayout.CENTER);↵ | |
12 | ↵ | |||
10 | add(statusLabel, BorderLayout.WEST);↵ | 13 | add(statusLabel, BorderLayout.WEST); ↵ | |
11 | add(centerPanel, BorderLayout.CENTER);↵ | 14 | add(centerPanel, BorderLayout.CENTER); ↵ | |
12 | add(flagLabel, BorderLayout.EAST);↵ | 15 | add(flagLabel, BorderLayout.EAST);↵ | |
16 | ↵ | |||
13 | setBorder(BorderFactory.createCompoundBorder(lineBorder,↵ | 17 | setBorder(BorderFactory.createCompoundBorder(lineBorder, ↵ | |
14 | BorderFactory.createEmptyBorder(2, 2, 2, 2)));↵ | 18 | BorderFactory.createEmptyBorder(2, 2, 2, 2)));↵ | |
19 | ↵ | |||
15 | statusLabel.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 8));↵ | 20 | statusLabel.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 4)); ↵ | |
16 | flagLabel.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 4));↵ | 21 | flagLabel.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 4));↵ | |
22 | ↵ | |||
17 | topPanel.setOpaque(false);↵ | 23 | topPanel.setOpaque(false); ↵ | |
18 | centerPanel.setOpaque(false);↵ | 24 | centerPanel.setOpaque(false); ↵ | |
19 | setOpaque(true); | 25 |
| |
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 in different classes having the same super class |
Number of node comparisons | 259 |
Number of mapped statements | 18 |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | setLayout(new BorderLayout()); | 1 | setLayout(new BorderLayout()); | |||||||||||
2 | topPanel = new JPanel(); | 2 | topPanel = new JPanel(); | |||||||||||
3 | topPanel.setLayout(new BorderLayout()); | 3 | topPanel.setLayout(new BorderLayout()); | |||||||||||
4 | topPanel.add(fromLabel, BorderLayout.CENTER); | 4 | topPanel.add(fromLabel, BorderLayout.CENTER); | |||||||||||
5 | topPanel.add(dateLabel, BorderLayout.EAST); | 5 | topPanel.add(dateLabel, BorderLayout.EAST); | |||||||||||
6 | centerPanel = new JPanel(); | 6 | centerPanel = new JPanel(); | |||||||||||
7 | centerPanel.setLayout(new BorderLayout()); | 7 | centerPanel.setLayout(new BorderLayout()); | |||||||||||
8 | centerPanel.add(topPanel, BorderLayout.NORTH); | 8 | centerPanel.add(topPanel, BorderLayout.NORTH); | |||||||||||
9 | centerPanel.add(subjectLabel, BorderLayout.CENTER); | 9 | centerPanel.add(subjectLabel, BorderLayout.CENTER); | |||||||||||
10 | add(statusLabel, BorderLayout.WEST); | 10 | add(statusLabel, BorderLayout.WEST); | |||||||||||
11 | add(centerPanel, BorderLayout.CENTER); | 11 | add(centerPanel, BorderLayout.CENTER); | |||||||||||
12 | add(flagLabel, BorderLayout.EAST); | 12 | add(flagLabel, BorderLayout.EAST); | |||||||||||
13 | setBorder(BorderFactory.createCompoundBorder(lineBorder, BorderFactory.createEmptyBorder(2, 2, 2, 2))); | 13 | setBorder(BorderFactory.createCompoundBorder(lineBorder, BorderFactory.createEmptyBorder(2, 2, 2, 2))); | |||||||||||
14 | statusLabel.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 8)); |
| 14 | statusLabel.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 4)); | ||||||||||
15 | flagLabel.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 4)); | 15 | flagLabel.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 4)); | |||||||||||
16 | topPanel.setOpaque(false); | 16 | topPanel.setOpaque(false); | |||||||||||
17 | centerPanel.setOpaque(false); | 17 | centerPanel.setOpaque(false); | |||||||||||
18 | setOpaque(true); | 18 | setOpaque(true); |
Row | Violation |
---|