File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/preferences/ProxyPreferencesPanel.java | File path: /sql12/plugins/laf/src/net/sourceforge/squirrel_sql/plugins/laf/LAFFontsTab.java | |||
Method name: void createUserInterface()
|
Method name: void createUserInterface()
|
|||
Number of AST nodes: 12 | Number of AST nodes: 11 | |||
1 | setLayout(new GridBagLayout());↵ | |||
1 | final GridBagConstraints gbc = new GridBagConstraints();↵ | 2 | final GridBagConstraints gbc = new GridBagConstraints();↵ | |
2 | ↵ | 3 | gbc.anchor = GridBagConstraints.WEST;↵ | |
3 | gbc.fill = GridBagConstraints.HORIZONTAL;↵ | 4 | gbc.fill = GridBagConstraints.HORIZONTAL;↵ | |
4 | gbc.insets = new Insets(4, 4, 4, 4);↵ | 5 | gbc.insets = new Insets(4, 4, 4, 4);↵ | |
5 | gbc.gridx = 0;↵ | 6 | gbc.gridx = 0;↵ | |
6 | gbc.gridy = 0;↵ | 7 | gbc.gridy = 0;↵ | |
7 | gbc.weightx = 1;↵ | 8 | ↵ | |
8 | add(createHTTPPanel(), gbc);↵ | 9 | add(createFontsPanel(), gbc);↵ | |
9 | ++gbc.gridy;↵ | 10 | ++gbc.gridy;↵ | |
10 | add(createSOCKSPanel(), gbc);↵ | 11 | ↵ | |
11 | final ActionListener lis = new MyActionHandler();↵ | |||
12 | _httpUseProxyChk.addActionListener(lis);↵ | |||
13 | _socksUseProxyChk.addActionListener(lis↵ | 12 | gbc.gridwidth = GridBagConstraints.REMAINDER;↵ | |
14 | ); | 13 | add(new MultipleLineLabel(i18n.LAF_WARNING), gbc); | |
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 | 90 |
Number of mapped statements | 8 |
Number of unmapped statements in the first code fragment | 4 |
Number of unmapped statements in the second code fragment | 3 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | final GridBagConstraints gbc = new GridBagConstraints(); | 2 | final GridBagConstraints gbc = new GridBagConstraints(); | ||||||||||||||||||||
|
| 3 | gbc.anchor = GridBagConstraints.WEST; | ||||||||||||||||||||
2 | gbc.fill = GridBagConstraints.HORIZONTAL; | 4 | gbc.fill = GridBagConstraints.HORIZONTAL; | ||||||||||||||||||||
3 | gbc.insets = new Insets(4, 4, 4, 4); | 5 | gbc.insets = new Insets(4, 4, 4, 4); | ||||||||||||||||||||
4 | gbc.gridx = 0; | 6 | gbc.gridx = 0; | ||||||||||||||||||||
5 | gbc.gridy = 0; | 7 | gbc.gridy = 0; | ||||||||||||||||||||
6 | gbc.weightx = 1; |
| | ||||||||||||||||||||
7 | add(createHTTPPanel(), gbc); |
| 1 | setLayout(new GridBagLayout()); | |||||||||||||||||||
8 | ++gbc.gridy; | 9 | ++gbc.gridy; | ||||||||||||||||||||
9 | add(createSOCKSPanel(), gbc); |
| 8 | add(createFontsPanel(), gbc); | |||||||||||||||||||
|
| 10 | gbc.gridwidth = GridBagConstraints.REMAINDER; | ||||||||||||||||||||
10 | final ActionListener lis = new MyActionHandler(); | | |||||||||||||||||||||
|
| 11 | add(new MultipleLineLabel(i18n.LAF_WARNING), gbc); | ||||||||||||||||||||
11 | _httpUseProxyChk.addActionListener(lis); | | |||||||||||||||||||||
12 | _socksUseProxyChk.addActionListener(lis); | |
Row | Violation |
---|---|
1 | Unmatched statement gbc.anchor=GridBagConstraints.WEST; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Unmatched statement gbc.weightx=1; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
3 | Expression add(createHTTPPanel(),gbc) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression add(createHTTPPanel(),gbc) is a void method call, and thus it cannot be parameterized |
5 | Expression setLayout(new GridBagLayout()) is a void method call, and thus it cannot be parameterized |
6 | Expression add(createHTTPPanel(),gbc) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression add(createHTTPPanel(),gbc) is a void method call, and thus it cannot be parameterized |
8 | Expression setLayout(new GridBagLayout()) is a void method call, and thus it cannot be parameterized |
9 | Expression createFontsPanel() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Unmatched statement gbc.gridwidth=GridBagConstraints.REMAINDER; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
11 | Unmatched statement add(new MultipleLineLabel(i18n.LAF_WARNING),gbc); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |