File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/util/PasswordDialog.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/util/PGPPassphraseDialog.java | |||
Method name: JPanel createButtonPanel()
|
Method name: JPanel createButtonPanel()
|
|||
Number of AST nodes: 10 | Number of AST nodes: 10 | |||
1 | JPanel bottom = new JPanel();↵ | 1 | JPanel bottom = new JPanel();↵ | |
2 | bottom.setLayout(new BorderLayout());↵ | 2 | bottom.setLayout(new BorderLayout());↵ | |
3 | //bottom.setLayout( new BoxLayout( bottom, BoxLayout.X_AXIS ) );↵ | 3 | // bottom.setLayout( new BoxLayout( bottom, BoxLayout.X_AXIS ) );↵ | |
4 | bottom.setBorder(BorderFactory.createEmptyBorder(17, 12, 11, 11));↵ | 4 | bottom.setBorder(BorderFactory.createEmptyBorder(17, 12, 11, 11));↵ | |
5 | //bottom.add( Box.createHorizontalStrut());↵ | 5 | // bottom.add( Box.createHorizontalStrut());↵ | |
6 | cancelButton = new ButtonWithMnemonic(MailResourceLoader.getString(↵ | 6 | cancelButton = new ButtonWithMnemonic(MailResourceLoader.getString(↵ | |
7 | "global", "cancel"));↵ | 7 | "global", "cancel"));↵ | |
8 | //$NON-NLS-1$ //$NON-NLS-2$↵ | 8 | //$NON-NLS-1$ //$NON-NLS-2$↵ | |
9 | cancelButton.addActionListener(this);↵ | 9 | cancelButton.addActionListener(this);↵ | |
10 | cancelButton.setActionCommand("CANCEL"); //$NON-NLS-1$↵ | 10 | cancelButton.setActionCommand("CANCEL"); //$NON-NLS-1$↵ | |
11 | okButton = new ButtonWithMnemonic(MailResourceLoader.getString(↵ | 11 | okButton = new ButtonWithMnemonic(MailResourceLoader.getString(↵ | |
12 | "global", "ok"));↵ | 12 | "global", "ok"));↵ | |
13 | //$NON-NLS-1$ //$NON-NLS-2$↵ | 13 | //$NON-NLS-1$ //$NON-NLS-2$↵ | |
14 | okButton.addActionListener(this);↵ | 14 | okButton.addActionListener(this);↵ | |
15 | okButton.setActionCommand("OK"); //$NON-NLS-1$↵ | 15 | okButton.setActionCommand("OK"); //$NON-NLS-1$↵ | |
16 | okButton.setDefaultCapable(true); | 16 |
| |
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 | 43 |
Number of mapped statements | 10 |
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 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
1 | JPanel bottom = new JPanel(); | 1 | JPanel bottom = new JPanel(); | |
2 | bottom.setLayout(new BorderLayout()); | 2 | bottom.setLayout(new BorderLayout()); | |
3 | bottom.setBorder(BorderFactory.createEmptyBorder(17, 12, 11, 11)); | 3 | bottom.setBorder(BorderFactory.createEmptyBorder(17, 12, 11, 11)); | |
4 | cancelButton = new ButtonWithMnemonic(MailResourceLoader.getString("global", "cancel")); | 4 | cancelButton = new ButtonWithMnemonic(MailResourceLoader.getString("global", "cancel")); | |
5 | cancelButton.addActionListener(this); | 5 | cancelButton.addActionListener(this); | |
6 | cancelButton.setActionCommand("CANCEL"); | 6 | cancelButton.setActionCommand("CANCEL"); | |
7 | okButton = new ButtonWithMnemonic(MailResourceLoader.getString("global", "ok")); | 7 | okButton = new ButtonWithMnemonic(MailResourceLoader.getString("global", "ok")); | |
8 | okButton.addActionListener(this); | 8 | okButton.addActionListener(this); | |
9 | okButton.setActionCommand("OK"); | 9 | okButton.setActionCommand("OK"); | |
10 | okButton.setDefaultCapable(true); | 10 | okButton.setDefaultCapable(true); |
Row | Violation |
---|---|
1 | The refactoring of the clones is infeasible, because classes org.columba.mail.gui.util.PasswordDialog and org.columba.mail.gui.util.PGPPassphraseDialog do not have a common superclass |