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;
private JPanel createButtonPane(SQLReplacePlugin plugin) { JPanel buttonPane = new JPanel(new GridBagLayout()); GridBagConstraints gbc; btnSave = new JButton(plugin.getResourceString(BM_SAVE)); gbc = new GridBagConstraints(0,0,1,1,0,0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0,1,1,1), 0, 0); buttonPane.add(btnSave, gbc); gbc = new GridBagConstraints(0,6,1,1,0,1, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(0,0,0,0), 0, 0); buttonPane.add(new JPanel(), gbc); return buttonPane;
Clone fragments detected by clone detection tool
File path: /sql12/plugins/hibernate/src/net/sourceforge/squirrel_sql/plugins/hibernate/mapping/MappedObjectPanel.java File path: /sql12/plugins/sqlreplace/src/net/sourceforge/squirrel_sql/plugins/sqlreplace/SQLReplacementPreferencesPanel.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
private JPanel createTopPanel()
1
private JPanel createButtonPane(SQLReplacePlugin plugin)
2
   {
2
   {
3
      JPanel ret = new JPanel(new GridBagLayout());
3
      JPanel buttonPane = new JPanel(new GridBagLayout());
4
      GridBagConstraints gbc;
4
      GridBagConstraints gbc;
5
      btnSave = new JButton(plugin.getResourceString(BM_SAVE));
5
      gbc = new GridBagConstraints(0,0,1,1,0,0,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5,5,5,5), 0,0);
6
      gbc = new GridBagConstraints(0,0,1,1,0,0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0,1,1,1), 0, 0);
6
      // i18n[MappedObjectPanel.QualifiedNames=Show qualified names]
7
      
7
      chkShowQualified = new JCheckBox(s_stringMgr.getString("MappedObjectPanel.QualifiedNames"));
8
      ret.add(chkShowQualified, gbc);
8
buttonPane.add(btnSave, gbc);
9
      // dist
10
      gbc = new GridBagConstraints(1,0,1,1,1,1,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5,5,5,5), 0,0);
9
      gbc = new GridBagConstraints(0,6,1,1,0,1, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(0,0,0,0), 0, 0);
11
      ret.add(new JPanel(), gbc);
10
      buttonPane.add(new JPanel(), gbc);
12
      return ret;
11
      return buttonPane;
13
   
12
   
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0