private void addPromptForHibernateCheckBox(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.promptForHibernate"); String cbToolTipText = s_stringMgr.getString("PreferencesPanel.promptForHibernateToolTip"); promptForHibernateCheckBox = new JCheckBox(cbLabelStr); promptForHibernateCheckBox.setToolTipText(cbToolTipText); panel.add(promptForHibernateCheckBox, c);
private void addQualifyTableNamesCheckBox(JPanel panel, int col, int row) { GridBagConstraints c = new GridBagConstraints(); c.gridx = col; c.gridy = row; c.anchor = GridBagConstraints.WEST; // i18n[SQLScriptPreferencesPanel.qualifyCheckboxLabel=Qualify table names in scripts with schema] String cbLabelStr = s_stringMgr.getString("SQLScriptPreferencesPanel.qualifyCheckboxLabel"); // i18n[SQLScriptPreferencesPanel.prefsToolTip=Table names appear in scripts as SCHEMA.TABLE] String cbToolTipText = s_stringMgr.getString("SQLScriptPreferencesPanel.qualifyCheckboxToolTip"); qualifyTableNamesCheckBox = new JCheckBox(cbLabelStr); qualifyTableNamesCheckBox.setToolTipText(cbToolTipText); panel.add(qualifyTableNamesCheckBox, 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/sqlscript/src/net/sourceforge/squirrel_sql/plugins/sqlscript/prefs/SQLScriptPreferencesPanel.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
private void addPromptForHibernateCheckBox(JPanel panel, int col, int row) {
1
private void addQualifyTableNamesCheckBox(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
        // i18n[SQLScriptPreferencesPanel.qualifyCheckboxLabel=Qualify table names in scripts with schema]
6
        String cbLabelStr = 
7
        String cbLabelStr = 
7
            s_stringMgr.getString("PreferencesPanel.promptForHibernate");
8
        	s_stringMgr.getString("SQLScriptPreferencesPanel.qualifyCheckboxLabel");
9
        // i18n[SQLScriptPreferencesPanel.prefsToolTip=Table names appear in scripts as SCHEMA.TABLE]
8
        String cbToolTipText =
10
        String cbToolTipText =
9
    
11
 
10
        s_stringMgr.getString("PreferencesPanel.promptForHibernateToolTip");
12
        	s_stringMgr.getString("SQLScriptPreferencesPanel.qualifyCheckboxToolTip");
11
        promptForHibernateCheckBox = new JCheckBox(cbLabelStr);
13
        qualifyTableNamesCheckBox = new JCheckBox(cbLabelStr);
12
        promptForHibernateCheckBox.setToolTipText(cbToolTipText);
14
        qualifyTableNamesCheckBox.setToolTipText(cbToolTipText);
13
        panel.add(promptForHibernateCheckBox, c);
15
        panel.add(qualifyTableNamesCheckBox, c);
14
    
16
    
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