private JPanel createConfigNamePanel()
{
JPanel ret = new JPanel(new GridBagLayout());
GridBagConstraints gbc;
gbc = new GridBagConstraints(0,0,1,1,0,0, GridBagConstraints.WEST,GridBagConstraints.NONE, new Insets(5,5,5,5),0,0);
// i18n[HibernateConfigPanel.configName=Configuration name]
ret.add(new JLabel(s_stringMgr.getString("HibernatePanel.configName")), gbc);
gbc = new GridBagConstraints(1,0,1,1,1,0, GridBagConstraints.WEST,GridBagConstraints.HORIZONTAL, new Insets(5,5,5,5),0,0);
txtConfigName = new JTextField();
ret.add(txtConfigName, gbc);
return ret;
private JPanel createTopPanel()
{
JPanel ret = new JPanel(new GridBagLayout());
GridBagConstraints gbc;
gbc = new GridBagConstraints(0,0,1,1,0,0,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5,5,5,5), 0,0);
// i18n[MappedObjectPanel.QualifiedNames=Show qualified names]
chkShowQualified = new JCheckBox(s_stringMgr.getString("MappedObjectPanel.QualifiedNames"));
ret.add(chkShowQualified, gbc);
// dist
gbc = new GridBagConstraints(1,0,1,1,1,1,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5,5,5,5), 0,0);
ret.add(new JPanel(), gbc);
return ret;
Clone fragments detected by clone detection tool
File path: /sql12/plugins/hibernate/src/net/sourceforge/squirrel_sql/plugins/hibernate/configuration/HibernateConfigPanel.java
|
|
File path: /sql12/plugins/hibernate/src/net/sourceforge/squirrel_sql/plugins/hibernate/mapping/MappedObjectPanel.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | private JPanel createConfigNamePanel()↵ | | 1 | private JPanel createTopPanel()↵
|
2 | {↵ | | 2 | {↵
|
3 | JPanel ret = new JPanel(new GridBagLayout());↵ | | 3 | JPanel ret = new JPanel(new GridBagLayout());↵
|
|
4 | GridBagConstraints gbc;↵ | | 4 | GridBagConstraints gbc;↵
|
|
5 | gbc = new GridBagConstraints(0,0,1,1,0,0, GridBagConstraints.WEST,GridBagConstraints.NONE, new Insets(5,5,5,5),0,0);↵ | | 5 | gbc = new GridBagConstraints(0,0,1,1,0,0,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5,5,5,5), 0,0);↵
|
6 | // i18n[HibernateConfigPanel.configName=Configuration name]↵ | | 6 | // i18n[MappedObjectPanel.QualifiedNames=Show qualified names]↵
|
7 | ret.add(new JLabel(s_stringMgr.getString("HibernatePanel.configName"))↵ | | 7 | chkShowQualified = new JCheckBox(s_stringMgr.getString("MappedObjectPanel.QualifiedNames"));↵
|
|
8 | , gbc);↵ | | 8 | ret.add(chkShowQualified, gbc);↵
|
|
| | | 9 | // dist↵
|
9 | gbc = new GridBagConstraints(1,0,1,1,1,0, GridBagConstraints.WEST,GridBagConstraints.HORIZONTAL, new Insets(5,5,5,5),0,0);↵ | | 10 | gbc = new GridBagConstraints(1,0,1,1,1,1,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5,5,5,5), 0,0);↵
|
10 | txtConfigName = new JTextField();↵ | | 11 | ret.add(new JPanel()↵
|
11 | ret.add(txtConfigName, gbc);↵ | | 12 | , gbc);↵
|
|
12 | return ret;↵ | | 13 | return ret;↵
|
13 | | | 14 |
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |