File path: /sql12/plugins/hibernate/src/net/sourceforge/squirrel_sql/plugins/hibernate/configuration/HibernateConfigPanel.java | File path: /sql12/plugins/sqlreplace/src/net/sourceforge/squirrel_sql/plugins/sqlreplace/SQLReplacementPreferencesPanel.java | |||
Method name: JPanel createConfigNamePanel()
|
Method name: JPanel createButtonPane(SQLReplacePlugin)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | JPanel ret = new JPanel(new GridBagLayout());↵ | 1 | JPanel buttonPane = new JPanel(new GridBagLayout());↵ | |
2 | GridBagConstraints gbc;↵ | 2 | GridBagConstraints gbc;↵ | |
3 | btnSave = new JButton(plugin.getResourceString(BM_SAVE));↵ | |||
3 | gbc = new GridBagConstraints(0,0,1,1,0,0, GridBagConstraints.WEST,GridBagConstraints.NONE, new Insets(5,5,5,5),0,0);↵ | 4 | gbc = new GridBagConstraints(0,0,1,1,0,0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0,1,1,1), 0, 0);↵ | |
4 | // i18n[HibernateConfigPanel.configName=Configuration name]↵ | 5 | ↵ | |
5 | ret.add(new JLabel(s_stringMgr.getString("HibernatePanel.configName")), gbc);↵ | 6 | buttonPane.add(btnSave, gbc);↵ | |
6 | gbc = new GridBagConstraints(1,0,1,1,1,0, GridBagConstraints.WEST,GridBagConstraints.HORIZONTAL, new Insets(5,5,5,5),0,0);↵ | 7 | gbc = new GridBagConstraints(0,6,1,1,0,1, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(0,0,0,0), 0, 0);↵ | |
7 | txtConfigName = new JTextField();↵ | 8 | ↵ | |
8 | ret.add(txtConfigName, gbc);↵ | 9 | buttonPane.add(new JPanel(), gbc);↵ | |
9 | return ret; | 10 | return buttonPane; | |
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 | 27 |
Number of mapped statements | 8 |
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 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | JPanel ret = new JPanel(new GridBagLayout()); |
| 1 | JPanel buttonPane = new JPanel(new GridBagLayout()); | |||||||||||||||||||||||||||||||||||||
2 | GridBagConstraints gbc; | 2 | GridBagConstraints gbc; | ||||||||||||||||||||||||||||||||||||||
3 | gbc = new GridBagConstraints(0, 0, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0); |
| 4 | gbc = new GridBagConstraints(0, 0, 1, 1, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0, 1, 1, 1), 0, 0); | |||||||||||||||||||||||||||||||||||||
4 | ret.add(new JLabel(s_stringMgr.getString("HibernatePanel.configName")), gbc); |
| 7 | buttonPane.add(new JPanel(), gbc); | |||||||||||||||||||||||||||||||||||||
5 | gbc = new GridBagConstraints(1, 0, 1, 1, 1, 0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0); |
| 6 | gbc = new GridBagConstraints(0, 6, 1, 1, 0, 1, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0); | |||||||||||||||||||||||||||||||||||||
6 | txtConfigName = new JTextField(); |
| 3 | btnSave = new JButton(plugin.getResourceString(BM_SAVE)); | |||||||||||||||||||||||||||||||||||||
7 | ret.add(txtConfigName, gbc); |
| 5 | buttonPane.add(btnSave, gbc); | |||||||||||||||||||||||||||||||||||||
8 | return ret; |
| 8 | return buttonPane; |
Row | Violation |
---|