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: JPanel createButtonPanel()
|
Method name: JPanel createButtonPanel()
|
|||
Number of AST nodes: 8 | Number of AST nodes: 9 | |||
1 | getRootPane().setDefaultButton(okButton);↵ | |||
1 | helpButton = new ButtonWithMnemonic(MailResourceLoader.getString(↵ | 2 | helpButton = new ButtonWithMnemonic(MailResourceLoader.getString(↵ | |
2 | "global", "help"));↵ | 3 | "global", "help"));↵ | |
3 | //$NON-NLS-1$ //$NON-NLS-2$↵ | 4 | //$NON-NLS-1$ //$NON-NLS-2$↵ | |
4 | JPanel buttonPanel = new JPanel();↵ | 5 | JPanel buttonPanel = new JPanel();↵ | |
5 | buttonPanel.setLayout(new GridLayout(1, 3, 5, 0));↵ | 6 | buttonPanel.setLayout(new GridLayout(1, 3, 5, 0));↵ | |
6 | buttonPanel.add(okButton);↵ | 7 | buttonPanel.add(okButton);↵ | |
7 | buttonPanel.add(cancelButton);↵ | 8 | buttonPanel.add(cancelButton);↵ | |
8 | buttonPanel.add(helpButton);↵ | 9 | buttonPanel.add(helpButton);↵ | |
9 | // bottom.add( Box.createHorizontalGlue() );↵ | 10 | //bottom.add( Box.createHorizontalGlue() );↵ | |
10 | bottom.add(buttonPanel, BorderLayout.EAST);↵ | 11 | bottom.add(buttonPanel, BorderLayout.EAST);↵ | |
11 | return bottom; | 12 |
| |
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 |
Number of node comparisons | 37 |
Number of mapped statements | 8 |
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 | |
---|---|---|---|---|
| 11 | getRootPane().setDefaultButton(okButton); | ||
12 | helpButton = new ButtonWithMnemonic(MailResourceLoader.getString("global", "help")); | 12 | helpButton = new ButtonWithMnemonic(MailResourceLoader.getString("global", "help")); | |
13 | JPanel buttonPanel = new JPanel(); | 13 | JPanel buttonPanel = new JPanel(); | |
14 | buttonPanel.setLayout(new GridLayout(1, 3, 5, 0)); | 14 | buttonPanel.setLayout(new GridLayout(1, 3, 5, 0)); | |
15 | buttonPanel.add(okButton); | 15 | buttonPanel.add(okButton); | |
16 | buttonPanel.add(cancelButton); | 16 | buttonPanel.add(cancelButton); | |
17 | buttonPanel.add(helpButton); | 17 | buttonPanel.add(helpButton); | |
18 | bottom.add(buttonPanel, BorderLayout.EAST); | 18 | bottom.add(buttonPanel, BorderLayout.EAST); | |
19 | return bottom; | 19 | return bottom; |
Row | Violation |
---|