File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/IncomingServerPanel.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/OutgoingServerPanel.java | |||
Method name: void showDefaultAccountWarning()
|
Method name: void showDefaultAccountWarning()
|
|||
Number of AST nodes: 18 | Number of AST nodes: 18 | |||
1 | setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));↵ | 1 | setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));↵ | |
2 | GridBagLayout mainLayout = new GridBagLayout();↵ | 2 | GridBagLayout mainLayout = new GridBagLayout();↵ | |
3 | GridBagConstraints mainConstraints = new GridBagConstraints();↵ | 3 | GridBagConstraints mainConstraints = new GridBagConstraints();↵ | |
4 | setLayout(mainLayout);↵ | 4 | setLayout(mainLayout);↵ | |
5 | mainConstraints.gridwidth = GridBagConstraints.REMAINDER;↵ | 5 | mainConstraints.gridwidth = GridBagConstraints.REMAINDER;↵ | |
6 | mainConstraints.anchor = GridBagConstraints.NORTHWEST;↵ | 6 | mainConstraints.anchor = GridBagConstraints.NORTHWEST;↵ | |
7 | mainConstraints.weightx = 1.0;↵ | 7 | mainConstraints.weightx = 1.0;↵ | |
8 | mainConstraints.insets = new Insets(0, 10, 5, 0);↵ | 8 | mainConstraints.insets = new Insets(0, 10, 5, 0);↵ | |
9 | mainLayout.setConstraints(defaultAccountCheckBox, mainConstraints);↵ | 9 | mainLayout.setConstraints(defaultAccountCheckBox, mainConstraints);↵ | |
10 | add(defaultAccountCheckBox);↵ | 10 | add(defaultAccountCheckBox);↵ | |
11 | mainConstraints = new GridBagConstraints();↵ | 11 | mainConstraints = new GridBagConstraints();↵ | |
12 | mainConstraints.weighty = 1.0;↵ | 12 | mainConstraints.weighty = 1.0;↵ | |
13 | mainConstraints.gridwidth = GridBagConstraints.REMAINDER;↵ | 13 | mainConstraints.gridwidth = GridBagConstraints.REMAINDER;↵ | |
14 | /*↵ | |||
15 | * mainConstraints.fill = GridBagConstraints.BOTH;↵ | |||
16 | * mainConstraints.insets = new Insets(0, 0, 0, 0);↵ | |||
17 | * mainConstraints.gridwidth = GridBagConstraints.REMAINDER;↵ | |||
18 | * mainConstraints.weightx = 1.0; mainConstraints.weighty = 1.0;↵ | |||
19 | */↵ | |||
20 | JLabel label = new JLabel(MailResourceLoader.getString("dialog",↵ | 14 | JLabel label = new JLabel(MailResourceLoader.getString("dialog",↵ | |
21 | "account", "using_default_account_settings"));↵ | 15 | "account", "using_default_account_settings"));↵ | |
22 | Font newFont = label.getFont().deriveFont(Font.BOLD);↵ | 16 | Font newFont = label.getFont().deriveFont(Font.BOLD);↵ | |
23 | label.setFont(newFont);↵ | 17 | label.setFont(newFont);↵ | |
24 | mainLayout.setConstraints(label, mainConstraints);↵ | 18 | mainLayout.setConstraints(label, mainConstraints);↵ | |
25 | add(label); | 19 |
| |
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 | 148 |
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 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
1 | setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); | 1 | setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); | |
2 | GridBagLayout mainLayout = new GridBagLayout(); | 2 | GridBagLayout mainLayout = new GridBagLayout(); | |
3 | GridBagConstraints mainConstraints = new GridBagConstraints(); | 3 | GridBagConstraints mainConstraints = new GridBagConstraints(); | |
4 | setLayout(mainLayout); | 4 | setLayout(mainLayout); | |
5 | mainConstraints.gridwidth = GridBagConstraints.REMAINDER; | 5 | mainConstraints.gridwidth = GridBagConstraints.REMAINDER; | |
6 | mainConstraints.anchor = GridBagConstraints.NORTHWEST; | 6 | mainConstraints.anchor = GridBagConstraints.NORTHWEST; | |
7 | mainConstraints.weightx = 1.0; | 7 | mainConstraints.weightx = 1.0; | |
8 | mainConstraints.insets = new Insets(0, 10, 5, 0); | 8 | mainConstraints.insets = new Insets(0, 10, 5, 0); | |
9 | mainLayout.setConstraints(defaultAccountCheckBox, mainConstraints); | 9 | mainLayout.setConstraints(defaultAccountCheckBox, mainConstraints); | |
10 | add(defaultAccountCheckBox); | 10 | add(defaultAccountCheckBox); | |
11 | mainConstraints = new GridBagConstraints(); | 11 | mainConstraints = new GridBagConstraints(); | |
12 | mainConstraints.weighty = 1.0; | 12 | mainConstraints.weighty = 1.0; | |
13 | mainConstraints.gridwidth = GridBagConstraints.REMAINDER; | 13 | mainConstraints.gridwidth = GridBagConstraints.REMAINDER; | |
14 | JLabel label = new JLabel(MailResourceLoader.getString("dialog", "account", "using_default_account_settings")); | 14 | JLabel label = new JLabel(MailResourceLoader.getString("dialog", "account", "using_default_account_settings")); | |
15 | Font newFont = label.getFont().deriveFont(Font.BOLD); | 15 | Font newFont = label.getFont().deriveFont(Font.BOLD); | |
16 | label.setFont(newFont); | 16 | label.setFont(newFont); | |
17 | mainLayout.setConstraints(label, mainConstraints); | 17 | mainLayout.setConstraints(label, mainConstraints); | |
18 | add(label); | 18 | add(label); |
Row | Violation |
---|