data.widthHint = Display.getCurrent().getBounds().width / 5; data.heightHint = Display.getCurrent().getBounds().height / 3; data.verticalAlignment = SWT.FILL;
choiceTableGridData.widthHint = Display.getCurrent().getBounds().width / 5; choiceTableGridData.heightHint = Display.getCurrent().getBounds().height / 3; choiceTableGridData.verticalAlignment = SWT.FILL;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/converter/ui/ModelConverterDescriptorSelectionPage.java File path: /emf-2.4.1/src/org/eclipse/emf/edit/ui/celleditor/FeatureEditorDialog.java
Method name: void createControl(Composite) Method name: Control createDialogArea(Composite)
Number of AST nodes: 3 Number of AST nodes: 3
1
data.widthHint = Display.getCurrent().getBounds().width / 5;
1
choiceTableGridData.widthHint = Display.getCurrent().getBounds().width / 5;
2
      data.heightHint = Display.getCurrent().getBounds().height / 3;
2
      choiceTableGridData.heightHint = Display.getCurrent().getBounds().height / 3;
3
      data.verticalAlignment = SWT.FILL;
3
      choiceTableGridData.verticalAlignment = SWT.FILL;
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 in different classes
Number of node comparisons9
  1. {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
    19
    data.widthHint = Display.getCurrent().getBounds().width / 5;
    19
    data.widthHint = Display.getCurrent().getBounds().width / 5;
    26
    choiceTableGridData.widthHint = Display.getCurrent().getBounds().width / 5;
    Differences
    Expression1Expression2Difference
    datachoiceTableGridDataVARIABLE_NAME_MISMATCH
    26
    choiceTableGridData.widthHint = Display.getCurrent().getBounds().width / 5;
    20
    data.heightHint = Display.getCurrent().getBounds().height / 3;
    20
    data.heightHint = Display.getCurrent().getBounds().height / 3;
    27
    choiceTableGridData.heightHint = Display.getCurrent().getBounds().height / 3;
    Differences
    Expression1Expression2Difference
    datachoiceTableGridDataVARIABLE_NAME_MISMATCH
    27
    choiceTableGridData.heightHint = Display.getCurrent().getBounds().height / 3;
    21
    data.verticalAlignment = SWT.FILL;
    21
    data.verticalAlignment = SWT.FILL;
    28
    choiceTableGridData.verticalAlignment = SWT.FILL;
    Differences
    Expression1Expression2Difference
    datachoiceTableGridDataVARIABLE_NAME_MISMATCH
    28
    choiceTableGridData.verticalAlignment = SWT.FILL;
    Precondition Violations (0)
    Row Violation