File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/util/PGPPassphraseDialog.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/util/PasswordDialog.java | |||
Method name: void showDialog(String, String, boolean)
|
Method name: void showDialog(String, String, boolean)
|
|||
Number of AST nodes: 25 | Number of AST nodes: 26 | |||
1 | getContentPane().add(centerPanel, BorderLayout.CENTER);↵ | |||
1 | GridBagLayout mainLayout = new GridBagLayout();↵ | 2 | GridBagLayout mainLayout = new GridBagLayout();↵ | |
2 | centerPanel.setLayout(mainLayout);↵ | 3 | centerPanel.setLayout(mainLayout);↵ | |
3 | GridBagConstraints mainConstraints = new GridBagConstraints();↵ | 4 | GridBagConstraints mainConstraints = new GridBagConstraints();↵ | |
4 | JLabel iconLabel = new JLabel(ImageLoader↵ | 5 | JLabel iconLabel = new JLabel(ImageLoader↵ | |
5 | .getMiscIcon("signature-nokey.png"));↵ | 6 | .getMiscIcon("signature-nokey.png"));↵ | |
6 | mainConstraints.anchor = GridBagConstraints.NORTHWEST;↵ | 7 | mainConstraints.anchor = GridBagConstraints.NORTHWEST;↵ | |
7 | mainConstraints.weightx = 1.0;↵ | 8 | mainConstraints.weightx = 1.0;↵ | |
8 | mainConstraints.gridwidth = GridBagConstraints.RELATIVE;↵ | 9 | mainConstraints.gridwidth = GridBagConstraints.RELATIVE;↵ | |
9 | mainConstraints.fill = GridBagConstraints.HORIZONTAL;↵ | 10 | mainConstraints.fill = GridBagConstraints.HORIZONTAL;↵ | |
10 | mainLayout.setConstraints(iconLabel, mainConstraints);↵ | 11 | mainLayout.setConstraints(iconLabel, mainConstraints);↵ | |
11 | centerPanel.add(iconLabel);↵ | 12 | centerPanel.add(iconLabel);↵ | |
12 | mainConstraints.gridwidth = GridBagConstraints.REMAINDER;↵ | 13 | mainConstraints.gridwidth = GridBagConstraints.REMAINDER;↵ | |
13 | mainConstraints.anchor = GridBagConstraints.WEST;↵ | 14 | mainConstraints.anchor = GridBagConstraints.WEST;↵ | |
14 | mainConstraints.insets = new Insets(0, 5, 0, 0);↵ | 15 | mainConstraints.insets = new Insets(0, 5, 0, 0);↵ | |
15 | mainLayout.setConstraints(hostLabel, mainConstraints);↵ | 16 | mainLayout.setConstraints(hostLabel, mainConstraints);↵ | |
16 | centerPanel.add(hostLabel);↵ | 17 | centerPanel.add(hostLabel);↵ | |
17 | mainConstraints.insets = new Insets(5, 5, 0, 0);↵ | 18 | mainConstraints.insets = new Insets(5, 5, 0, 0);↵ | |
18 | mainLayout.setConstraints(passwordField, mainConstraints);↵ | 19 | mainLayout.setConstraints(passwordField, mainConstraints);↵ | |
19 | centerPanel.add(passwordField);↵ | 20 | centerPanel.add(passwordField);↵ | |
20 | mainConstraints.insets = new Insets(5, 5, 0, 0);↵ | 21 | mainConstraints.insets = new Insets(5, 5, 0, 0);↵ | |
21 | mainLayout.setConstraints(checkbox, mainConstraints);↵ | 22 | mainLayout.setConstraints(checkbox, mainConstraints);↵ | |
22 | centerPanel.add(checkbox);↵ | 23 | centerPanel.add(checkbox);↵ | |
23 | JPanel bottomPanel = new JPanel();↵ | 24 | JPanel bottomPanel = new JPanel();↵ | |
24 | bottomPanel.setLayout(new BorderLayout());↵ | 25 | bottomPanel.setLayout(new BorderLayout());↵ | |
25 | JPanel buttonPanel = createButtonPanel();↵ | 26 | JPanel buttonPanel = createButtonPanel();↵ | |
26 | bottomPanel.add(buttonPanel, BorderLayout.CENTER); | 27 |
| |
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.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 243 |
Number of mapped statements | 25 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
| 10 | getContentPane().add(centerPanel, BorderLayout.CENTER); | ||
10 | GridBagLayout mainLayout = new GridBagLayout(); | 11 | GridBagLayout mainLayout = new GridBagLayout(); | |
11 | centerPanel.setLayout(mainLayout); | 12 | centerPanel.setLayout(mainLayout); | |
12 | GridBagConstraints mainConstraints = new GridBagConstraints(); | 13 | GridBagConstraints mainConstraints = new GridBagConstraints(); | |
13 | JLabel iconLabel = new JLabel(ImageLoader.getMiscIcon("signature-nokey.png")); | 14 | JLabel iconLabel = new JLabel(ImageLoader.getMiscIcon("signature-nokey.png")); | |
14 | mainConstraints.anchor = GridBagConstraints.NORTHWEST; | 15 | mainConstraints.anchor = GridBagConstraints.NORTHWEST; | |
15 | mainConstraints.weightx = 1.0; | 16 | mainConstraints.weightx = 1.0; | |
16 | mainConstraints.gridwidth = GridBagConstraints.RELATIVE; | 17 | mainConstraints.gridwidth = GridBagConstraints.RELATIVE; | |
17 | mainConstraints.fill = GridBagConstraints.HORIZONTAL; | 18 | mainConstraints.fill = GridBagConstraints.HORIZONTAL; | |
18 | mainLayout.setConstraints(iconLabel, mainConstraints); | 19 | mainLayout.setConstraints(iconLabel, mainConstraints); | |
19 | centerPanel.add(iconLabel); | 20 | centerPanel.add(iconLabel); | |
20 | mainConstraints.gridwidth = GridBagConstraints.REMAINDER; | 21 | mainConstraints.gridwidth = GridBagConstraints.REMAINDER; | |
21 | mainConstraints.anchor = GridBagConstraints.WEST; | 22 | mainConstraints.anchor = GridBagConstraints.WEST; | |
22 | mainConstraints.insets = new Insets(0, 5, 0, 0); | 23 | mainConstraints.insets = new Insets(0, 5, 0, 0); | |
23 | mainLayout.setConstraints(hostLabel, mainConstraints); | 24 | mainLayout.setConstraints(hostLabel, mainConstraints); | |
24 | centerPanel.add(hostLabel); | 25 | centerPanel.add(hostLabel); | |
25 | mainConstraints.insets = new Insets(5, 5, 0, 0); | 26 | mainConstraints.insets = new Insets(5, 5, 0, 0); | |
26 | mainLayout.setConstraints(passwordField, mainConstraints); | 27 | mainLayout.setConstraints(passwordField, mainConstraints); | |
27 | centerPanel.add(passwordField); | 28 | centerPanel.add(passwordField); | |
28 | mainConstraints.insets = new Insets(5, 5, 0, 0); | 29 | mainConstraints.insets = new Insets(5, 5, 0, 0); | |
29 | mainLayout.setConstraints(checkbox, mainConstraints); | 30 | mainLayout.setConstraints(checkbox, mainConstraints); | |
30 | centerPanel.add(checkbox); | 31 | centerPanel.add(checkbox); | |
31 | JPanel bottomPanel = new JPanel(); | 32 | JPanel bottomPanel = new JPanel(); | |
32 | bottomPanel.setLayout(new BorderLayout()); | 33 | bottomPanel.setLayout(new BorderLayout()); | |
33 | JPanel buttonPanel = createButtonPanel(); | 34 | JPanel buttonPanel = createButtonPanel(); | |
34 | bottomPanel.add(buttonPanel, BorderLayout.CENTER); | 35 | bottomPanel.add(buttonPanel, BorderLayout.CENTER); |
Row | Violation |
---|---|
1 | The refactoring of the clones is infeasible, because classes org.columba.mail.gui.util.PGPPassphraseDialog and org.columba.mail.gui.util.PasswordDialog do not have a common superclass |