private void addCheckKeywordsCheckBox(JPanel panel, int col, int row) { GridBagConstraints c = new GridBagConstraints(); c.gridx = col; c.gridy = row; c.anchor = GridBagConstraints.WEST; String cbLabelStr = s_stringMgr.getString("PreferencesPanel.checkKeywords"); String cbToolTipText = s_stringMgr.getString("PreferencesPanel.checkKeywordsToolTip"); checkKeywordsCheckBox = new JCheckBox(cbLabelStr); checkKeywordsCheckBox.setToolTipText(cbToolTipText); panel.add(checkKeywordsCheckBox, c);
private void addTestColumnNamesCheckBox(JPanel panel, int col, int row) { GridBagConstraints c = new GridBagConstraints(); c.gridx = col; c.gridy = row; c.anchor = GridBagConstraints.WEST; String cbLabelStr = s_stringMgr.getString("PreferencesPanel.testColumnNames"); String cbToolTipText = s_stringMgr.getString("PreferencesPanel.testColumnNamesToolTip"); testColumnNamesCheckBox = new JCheckBox(cbLabelStr); testColumnNamesCheckBox.setToolTipText(cbToolTipText); panel.add(testColumnNamesCheckBox, c);
Clone fragments detected by clone detection tool
File path: /sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/gui/PreferencesPanel.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 addCheckKeywordsCheckBox(JPanel panel, int col, int row) {
1
private void addTestColumnNamesCheckBox(JPanel panel, int col, int row) {
2
        GridBagConstraints c = new GridBagConstraints();
2
        GridBagConstraints c = new GridBagConstraints();
3
        c.gridx = col;
3
        c.gridx = col;
4
        c.gridy = row;  
4
        c.gridy = row;  
5
        c.anchor = GridBagConstraints.WEST;
5
        c.anchor = GridBagConstraints.WEST;
6
        String cbLabelStr =
6
        String cbLabelStr =
7
            s_stringMgr.getString("PreferencesPanel.checkKeywords");
7
            s_stringMgr.getString("PreferencesPanel.testColumnNames");
8
        String cbToolTipText =
8
        String cbToolTipText =
9
            s_stringMgr.getString("PreferencesPanel.checkKeywordsToolTip");
9
            s_stringMgr.getString("PreferencesPanel.testColumnNamesToolTip");
10
        
10
        
11
        checkKeywordsCheckBox = new JCheckBox(cbLabelStr);
11
testColumnNamesCheckBox = new JCheckBox(cbLabelStr);
12
        checkKeywordsCheckBox.setToolTipText(cbToolTipText);
12
        testColumnNamesCheckBox.setToolTipText(cbToolTipText);
13
        panel.add(checkKeywordsCheckBox, c);        
13
        panel.add(testColumnNamesCheckBox, c);        
14
    
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