GridBagConstraints c = new GridBagConstraints(); c.gridx = col; c.gridy = row; c.anchor = GridBagConstraints.WEST; // i18n[RefactoringPreferencesPanel.quoteCheckboxLabel=Quote identifiers in scripts] String cbLabelStr = s_stringMgr.getString("RefactoringPreferencesPanel.quoteCheckboxLabel"); // i18n[RefactoringPreferencesPanel.quoteToolTip=Identifiers appear in quotes] String cbToolTipText = s_stringMgr.getString("RefactoringPreferencesPanel.qualifyCheckboxToolTip"); quoteIdentifersCheckBox = new JCheckBox(cbLabelStr); quoteIdentifersCheckBox.setToolTipText(cbToolTipText); panel.add(quoteIdentifersCheckBox, c);
GridBagConstraints c = new GridBagConstraints(); c.gridx = col; c.gridy = row; c.anchor = GridBagConstraints.WEST; // i18n[RefactoringPreferencesPanel.qualifyCheckboxLabel=Qualify table names in scripts with schema] String cbLabelStr = s_stringMgr.getString("RefactoringPreferencesPanel.qualifyCheckboxLabel"); // i18n[RefactoringPreferencesPanel.prefsToolTip=Table names appear in scripts as SCHEMA.TABLE] String cbToolTipText = s_stringMgr.getString("RefactoringPreferencesPanel.qualifyCheckboxToolTip"); qualifyTableNamesCheckBox = new JCheckBox(cbLabelStr); qualifyTableNamesCheckBox.setToolTipText(cbToolTipText); panel.add(qualifyTableNamesCheckBox, c);
Clone fragments detected by clone detection tool
File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/prefs/RefactoringPreferencesPanel.java File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/prefs/RefactoringPreferencesPanel.java
Method name: void addQuoteIdentifiersCheckBox(JPanel, int, int) Method name: void addQualifyTableNamesCheckBox(JPanel, int, int)
Number of AST nodes: 9 Number of AST nodes: 9
1
GridBagConstraints c = new GridBagConstraints();
1
GridBagConstraints c = new GridBagConstraints();
2
       c.gridx = col;
2
        c.gridx = col;
3
       c.gridy = row;  
3
        c.gridy = row;  
4
       c.anchor = GridBagConstraints.WEST;
4
        c.anchor = GridBagConstraints.WEST;
5
       // i18n[RefactoringPreferencesPanel.quoteCheckboxLabel=Quote identifiers in scripts]
5
        // i18n[RefactoringPreferencesPanel.qualifyCheckboxLabel=Qualify table names in scripts with schema]
6
       String cbLabelStr = 
6
        String cbLabelStr = 
7
       	s_stringMgr.getString("RefactoringPreferencesPanel.quoteCheckboxLabel");
7
        	s_stringMgr.getString("RefactoringPreferencesPanel.qualifyCheckboxLabel");
8
       // i18n[RefactoringPreferencesPanel.quoteToolTip=Identifiers appear in quotes]
8
        // i18n[RefactoringPreferencesPanel.prefsToolTip=Table names appear in scripts as SCHEMA.TABLE]
9
       String cbToolTipText = 
9
        String cbToolTipText = 
10
       	s_stringMgr.getString("RefactoringPreferencesPanel.qualifyCheckboxToolTip");
10
        	s_stringMgr.getString("RefactoringPreferencesPanel.qualifyCheckboxToolTip");
11
       quoteIdentifersCheckBox = new JCheckBox(cbLabelStr);
11
        qualifyTableNamesCheckBox = new JCheckBox(cbLabelStr);
12
       quoteIdentifersCheckBox.setToolTipText(cbToolTipText);
12
        qualifyTableNamesCheckBox.setToolTipText(cbToolTipText);
13
       panel.add(quoteIdentifersCheckBox, c);
13
        panel.add(qualifyTableNamesCheckBox, c);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are declared in the same class
Number of node comparisons37
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements9
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    GridBagConstraints c = new GridBagConstraints();
    1
    GridBagConstraints c = new GridBagConstraints();
    2
    c.gridx = col;
    2
    c.gridx = col;
    3
    c.gridy = row;
    3
    c.gridy = row;
    4
    c.anchor = GridBagConstraints.WEST;
    4
    c.anchor = GridBagConstraints.WEST;
    5
    String cbLabelStr = s_stringMgr.getString("RefactoringPreferencesPanel.quoteCheckboxLabel");
    5
    String cbLabelStr = s_stringMgr.getString("RefactoringPreferencesPanel.quoteCheckboxLabel");
    5
    String cbLabelStr = s_stringMgr.getString("RefactoringPreferencesPanel.qualifyCheckboxLabel");
    Differences
    Expression1Expression2Difference
    "RefactoringPreferencesPanel.quoteCheckboxLabel""RefactoringPreferencesPanel.qualifyCheckboxLabel"LITERAL_VALUE_MISMATCH
    5
    String cbLabelStr = s_stringMgr.getString("RefactoringPreferencesPanel.qualifyCheckboxLabel");
    6
    String cbToolTipText = s_stringMgr.getString("RefactoringPreferencesPanel.qualifyCheckboxToolTip");
    6
    String cbToolTipText = s_stringMgr.getString("RefactoringPreferencesPanel.qualifyCheckboxToolTip");
    7
    quoteIdentifersCheckBox = new JCheckBox(cbLabelStr);
    7
    quoteIdentifersCheckBox = new JCheckBox(cbLabelStr);
    7
    qualifyTableNamesCheckBox = new JCheckBox(cbLabelStr);
    Differences
    Expression1Expression2Difference
    quoteIdentifersCheckBoxqualifyTableNamesCheckBoxVARIABLE_NAME_MISMATCH
    7
    qualifyTableNamesCheckBox = new JCheckBox(cbLabelStr);
    8
    quoteIdentifersCheckBox.setToolTipText(cbToolTipText);
    8
    quoteIdentifersCheckBox.setToolTipText(cbToolTipText);
    8
    qualifyTableNamesCheckBox.setToolTipText(cbToolTipText);
    Differences
    Expression1Expression2Difference
    quoteIdentifersCheckBoxqualifyTableNamesCheckBoxVARIABLE_NAME_MISMATCH
    8
    qualifyTableNamesCheckBox.setToolTipText(cbToolTipText);
    9
    panel.add(quoteIdentifersCheckBox, c);
    9
    panel.add(quoteIdentifersCheckBox, c);
    9
    panel.add(qualifyTableNamesCheckBox, c);
    Differences
    Expression1Expression2Difference
    quoteIdentifersCheckBoxqualifyTableNamesCheckBoxVARIABLE_NAME_MISMATCH
    9
    panel.add(qualifyTableNamesCheckBox, c);
    Precondition Violations (0)
    Row Violation