File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/plugin/gui/PluginQueryTokenizerPreferencesPanel.java | File path: /sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/gui/PreferencesPanel.java | |||
Method name: void addProcedureSeparatorTextField(JPanel, int, int)
|
Method name: void addDelayTablesTextField(JPanel, int, int)
|
|||
Number of AST nodes: 10 | Number of AST nodes: 9 | |||
1 | GridBagConstraints c = new GridBagConstraints();↵ | 1 | GridBagConstraints c = new GridBagConstraints();↵ | |
2 | c.gridx = col;↵ | 2 | c.gridx = col;↵ | |
3 | c.gridy = row;↵ | 3 | c.gridy = row;↵ | |
4 | ↵ | 4 | ↵ | |
5 | c.ipadx = 40; // Increases component width by 20 pixels↵ | 5 | c.ipadx = 40; // Increases component width by 40 pixels↵ | |
6 | c.insets = new Insets(5, 5, 0, 0);↵ | 6 | c.insets = new Insets(5,5,0,0);↵ | |
7 | c.anchor = GridBagConstraints.WEST;↵ | 7 | c.anchor = GridBagConstraints.WEST;↵ | |
8 | procedureSeparatorTextField = new JTextField(10);↵ | 8 | delayTablesTextField = new JTextField(10);↵ | |
9 | procedureSeparator↵ | 9 | ↵ | |
10 | TextField.setHorizontalAlignment(JTextField.RIGHT);↵ | 10 | delayTablesTextField.setHorizontalAlignment(JTextField.RIGHT);↵ | |
11 | procedureSeparatorTextField.setToolTipText(i18n.PROC_SEP_LABEL_TT);↵ | |||
12 | panel.add(procedureSeparatorTextField, c); | 11 | panel.add(delayTablesTextField, c); | |
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 | 49 |
Number of mapped statements | 9 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | GridBagConstraints c = new GridBagConstraints(); | 1 | GridBagConstraints c = new GridBagConstraints(); | |||||||||||
2 | c.gridx = col; | 2 | c.gridx = col; | |||||||||||
3 | c.gridy = row; | 3 | c.gridy = row; | |||||||||||
4 | c.ipadx = 40; | 4 | c.ipadx = 40; | |||||||||||
5 | c.insets = new Insets(5, 5, 0, 0); | 5 | c.insets = new Insets(5, 5, 0, 0); | |||||||||||
6 | c.anchor = GridBagConstraints.WEST; | 6 | c.anchor = GridBagConstraints.WEST; | |||||||||||
7 | procedureSeparatorTextField = new JTextField(10); |
| 7 | delayTablesTextField = new JTextField(10); | ||||||||||
8 | procedureSeparatorTextField.setHorizontalAlignment(JTextField.RIGHT); |
| 8 | delayTablesTextField.setHorizontalAlignment(JTextField.RIGHT); | ||||||||||
9 | procedureSeparatorTextField.setToolTipText(i18n.PROC_SEP_LABEL_TT); | | ||||||||||||
10 | panel.add(procedureSeparatorTextField, c); |
| 9 | panel.add(delayTablesTextField, c); |
Row | Violation |
---|