executeButton.setEnabled(enable); editSQLButton.setEnabled(enable); showSQLButton.setEnabled(enable);
_newColumnNameField.setEnabled(aFlag); _mergeNewColumnNameLabel.setEnabled(aFlag); _mergeInExistingBox.setEnabled(!aFlag);
Clone fragments detected by clone detection tool
File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/gui/AbstractRefactoringTabbedDialog.java File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/gui/MergeColumnDialog.java
Method name: void setAllButtonEnabled(boolean) Method name: void enableNewColumn(boolean)
Number of AST nodes: 3 Number of AST nodes: 3
1
executeButton.setEnabled(enable);
2
        editSQLButton.setEnabled(enable);
3
        showSQLButton
1
_newColumnNameField.setEnabled(aFlag);
2
			_mergeNewColumnNameLabel.setEnabled(aFlag);
4
.setEnabled(enable);
3
			_mergeInExistingBox.setEnabled(!aFlag);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons9
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    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
    executeButton.setEnabled(enable);
    1
    executeButton.setEnabled(enable);
    1
    _newColumnNameField.setEnabled(aFlag);
    Differences
    Expression1Expression2Difference
    enableaFlagVARIABLE_NAME_MISMATCH
    executeButton_newColumnNameFieldVARIABLE_NAME_MISMATCH
    javax.swing.JButtonjavax.swing.JTextFieldSUBCLASS_TYPE_MISMATCH
    1
    _newColumnNameField.setEnabled(aFlag);
    2
    editSQLButton.setEnabled(enable);
    2
    editSQLButton.setEnabled(enable);
    2
    _mergeNewColumnNameLabel.setEnabled(aFlag);
    Differences
    Expression1Expression2Difference
    enableaFlagVARIABLE_NAME_MISMATCH
    editSQLButton_mergeNewColumnNameLabelVARIABLE_NAME_MISMATCH
    javax.swing.JButtonjavax.swing.JLabelSUBCLASS_TYPE_MISMATCH
    2
    _mergeNewColumnNameLabel.setEnabled(aFlag);
    3
    showSQLButton.setEnabled(enable);
    3
    showSQLButton.setEnabled(enable);
    3
    _mergeInExistingBox.setEnabled(!aFlag);
    Differences
    Expression1Expression2Difference
    enable!aFlagTYPE_COMPATIBLE_REPLACEMENT
    showSQLButton_mergeInExistingBoxVARIABLE_NAME_MISMATCH
    javax.swing.JButtonjavax.swing.JComboBoxSUBCLASS_TYPE_MISMATCH
    3
    _mergeInExistingBox.setEnabled(!aFlag);
    Precondition Violations (1)
    Row Violation
    1The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.plugins.refactoring.gui.AbstractRefactoringTabbedDialog and net.sourceforge.squirrel_sql.plugins.refactoring.gui.MergeColumnDialog.PropertiesTab do not have a common superclass