private void addRemoveMultiLineCommentCheckBox(JPanel panel, int col, int row) { GridBagConstraints c = new GridBagConstraints(); c.gridx = col; c.gridy = row; c.gridwidth = 2; // Span across two columns c.insets = new Insets(5, 30, 0, 0); String cbLabel = i18n.REMOVE_ML_COMMENT_LABEL; removeMultiLineCommentCheckBox = new JCheckBox(cbLabel); removeMultiLineCommentCheckBox.setToolTipText(i18n.REMOVE_ML_COMMENT_LABEL_TT); panel.add(removeMultiLineCommentCheckBox, c);
private void addDelayTablesTextField(JPanel panel, int col, int row) { GridBagConstraints c = new GridBagConstraints(); c.gridx = col; c.gridy = row; c.ipadx = 40; // Increases component width by 40 pixels c.insets = new Insets(5,5,0,0); c.anchor = GridBagConstraints.WEST; delayTablesTextField = new JTextField(10); delayTablesTextField.setHorizontalAlignment(JTextField.RIGHT); panel.add(delayTablesTextField, c);
Clone fragments detected by clone detection tool
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: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
private void addRemoveMultiLineCommentCheckBox(JPanel panel, int col, int row)
1
private void addDelayTablesTextField(JPanel panel, int col, int row)
2
	{
3
		
2
 {
4
GridBagConstraints c = new GridBagConstraints();
3
        GridBagConstraints c = new GridBagConstraints();
5
		c.gridx = col;
4
        c.gridx = col;
6
		c.gridy = row;
5
        c.gridy = row;
7
		c.gridwidth = 2; // Span across two columns
8
		
6
   
7
        c.ipadx = 40;    // Increases component width by 40 pixels
9
c.insets = new Insets(5, 30, 0, 0);
8
        c.insets = new Insets(5,5,0,0);
10
		String cbLabel = i18n.REMOVE_ML_COMMENT_LABEL;
11
		removeMultiLineCommentCheckBox = new JCheckBox(cbLabel);
12
		removeMultiLineCommentCheckBox.setToolTipText(i18n.REMOVE_ML_COMMENT_LABEL_TT);
13
		panel.add(removeMultiLineCommentCheckBox, c);
14
	
9
        c.anchor = GridBagConstraints.WEST;
10
        delayTablesTextField = new JTextField(10);
11
        
12
        delayTablesTextField.setHorizontalAlignment(JTextField.RIGHT);
13
        panel.add(delayTablesTextField, c);        
14
    
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