GridData data = new GridData(); data.widthHint = Display.getCurrent().getBounds().width / 5; data.heightHint = Display.getCurrent().getBounds().height / 3; data.verticalAlignment = SWT.FILL; data.horizontalAlignment = SWT.FILL; data.grabExcessHorizontalSpace = true; data.grabExcessVerticalSpace = true; descriptorTable.setLayoutData(data);
GridData choiceTableGridData = new GridData(); choiceTableGridData.widthHint = Display.getCurrent().getBounds().width / 5; choiceTableGridData.heightHint = Display.getCurrent().getBounds().height / 3; choiceTableGridData.verticalAlignment = SWT.FILL; choiceTableGridData.horizontalAlignment = SWT.FILL; choiceTableGridData.grabExcessHorizontalSpace= true; choiceTableGridData.grabExcessVerticalSpace= true; choiceTable.setLayoutData(choiceTableGridData);
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: 8 Number of AST nodes: 8
1
GridData data = new GridData();
1
GridData choiceTableGridData = new GridData();
2
      data.widthHint = Display.getCurrent().getBounds().width / 5;
2
      choiceTableGridData.widthHint = Display.getCurrent().getBounds().width / 5;
3
      data.heightHint = Display.getCurrent().getBounds().height / 3;
3
      choiceTableGridData.heightHint = Display.getCurrent().getBounds().height / 3;
4
      data.verticalAlignment = SWT.FILL;
4
      choiceTableGridData.verticalAlignment = SWT.FILL;
5
      data.horizontalAlignment = SWT.FILL;
5
      choiceTableGridData.horizontalAlignment = SWT.FILL;
6
      data.grabExcessHorizontalSpace = true;
6
      choiceTableGridData.grabExcessHorizontalSpace= true;
7
      data.grabExcessVerticalSpace = true;
7
      choiceTableGridData.grabExcessVerticalSpace= true;
8
      descriptorTable.setLayoutData(data);
8
      choiceTable.setLayoutData(choiceTableGridData);
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 comparisons50
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements8
    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
    18
    GridData data = new GridData();
    18
    GridData data = new GridData();
    25
    GridData choiceTableGridData = new GridData();
    Differences
    Expression1Expression2Difference
    datachoiceTableGridDataVARIABLE_NAME_MISMATCH
    25
    GridData choiceTableGridData = new GridData();
    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;
    22
    data.horizontalAlignment = SWT.FILL;
    22
    data.horizontalAlignment = SWT.FILL;
    29
    choiceTableGridData.horizontalAlignment = SWT.FILL;
    Differences
    Expression1Expression2Difference
    datachoiceTableGridDataVARIABLE_NAME_MISMATCH
    29
    choiceTableGridData.horizontalAlignment = SWT.FILL;
    23
    data.grabExcessHorizontalSpace = true;
    23
    data.grabExcessHorizontalSpace = true;
    30
    choiceTableGridData.grabExcessHorizontalSpace = true;
    Differences
    Expression1Expression2Difference
    datachoiceTableGridDataVARIABLE_NAME_MISMATCH
    30
    choiceTableGridData.grabExcessHorizontalSpace = true;
    24
    data.grabExcessVerticalSpace = true;
    24
    data.grabExcessVerticalSpace = true;
    31
    choiceTableGridData.grabExcessVerticalSpace = true;
    Differences
    Expression1Expression2Difference
    datachoiceTableGridDataVARIABLE_NAME_MISMATCH
    31
    choiceTableGridData.grabExcessVerticalSpace = true;
    25
    descriptorTable.setLayoutData(data);
    25
    descriptorTable.setLayoutData(data);
    32
    choiceTable.setLayoutData(choiceTableGridData);
    Differences
    Expression1Expression2Difference
    datachoiceTableGridDataVARIABLE_NAME_MISMATCH
    descriptorTablechoiceTableVARIABLE_NAME_MISMATCH
    32
    choiceTable.setLayoutData(choiceTableGridData);
    Precondition Violations (0)
    Row Violation