composite.setLayoutData(new GridData(GridData.FILL_BOTH)); { FormLayout layout = new FormLayout(); layout.marginTop = 10; layout.spacing = 10; composite.setLayout(layout); } Label packagesLabel = new Label(composite, SWT.LEFT); packagesLabel.setText(getPackagesLabel()); { FormData data = new FormData(); data.left = new FormAttachment(0); packagesLabel.setLayoutData(data);
composite.setLayoutData(new GridData(GridData.FILL_BOTH)); { FormLayout layout = new FormLayout(); layout.marginTop = 10; layout.spacing = 10; composite.setLayout(layout); } Label referencedGenModelsLabel = new Label(composite, SWT.LEFT); referencedGenModelsLabel.setText(getReferencedGenModelsLabel()); { FormData data = new FormData(); data.left = new FormAttachment(0); referencedGenModelsLabel.setLayoutData(data);
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/converter/ui/contribution/base/ModelConverterPackagePage.java File path: /emf-2.4.1/src/org/eclipse/emf/converter/ui/contribution/base/ModelConverterPackagePage.java
Method name: void createPackageControl(Composite) Method name: void createReferencedGenModelControl(Composite)
Number of AST nodes: 10 Number of AST nodes: 10
1
composite.setLayoutData(new GridData(GridData.FILL_BOTH));
1
composite.setLayoutData(new GridData(GridData.FILL_BOTH));
2
    {
2
    {
3
      FormLayout layout = new FormLayout();
3
      FormLayout layout = new FormLayout();
4
      layout.marginTop = 10;
4
      layout.marginTop = 10;
5
      layout.spacing = 10;
5
      layout.spacing = 10;
6
      composite.setLayout(layout);
6
      composite.setLayout(layout);
7
    }
7
    }
8
    Label packagesLabel = new Label(composite, SWT.LEFT);
8
    Label referencedGenModelsLabel = new Label(composite, SWT.LEFT);
9
    packagesLabel.setText(getPackagesLabel());
9
    referencedGenModelsLabel.setText(getReferencedGenModelsLabel());
10
    {
10
    {
11
      FormData data = new FormData();
11
      FormData data = new FormData();
12
      data.left = new FormAttachment(0);
12
      data.left = new FormAttachment(0);
13
      packagesLabel.setLayoutData(data);
13
      referencedGenModelsLabel.setLayoutData(data);
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 comparisons41
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements10
    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
    2
    composite.setLayoutData(new GridData(GridData.FILL_BOTH));
    2
    composite.setLayoutData(new GridData(GridData.FILL_BOTH));
    3
    FormLayout layout = new FormLayout();
    3
    FormLayout layout = new FormLayout();
    4
    layout.marginTop = 10;
    4
    layout.marginTop = 10;
    5
    layout.spacing = 10;
    5
    layout.spacing = 10;
    6
    composite.setLayout(layout);
    6
    composite.setLayout(layout);
    7
    Label packagesLabel = new Label(composite, SWT.LEFT);
    7
    Label packagesLabel = new Label(composite, SWT.LEFT);
    7
    Label referencedGenModelsLabel = new Label(composite, SWT.LEFT);
    Differences
    Expression1Expression2Difference
    packagesLabelreferencedGenModelsLabelVARIABLE_NAME_MISMATCH
    7
    Label referencedGenModelsLabel = new Label(composite, SWT.LEFT);
    8
    packagesLabel.setText(getPackagesLabel());
    8
    packagesLabel.setText(getPackagesLabel());
    8
    referencedGenModelsLabel.setText(getReferencedGenModelsLabel());
    Differences
    Expression1Expression2Difference
    getPackagesLabelgetReferencedGenModelsLabelMETHOD_INVOCATION_NAME_MISMATCH
    packagesLabelreferencedGenModelsLabelVARIABLE_NAME_MISMATCH
    8
    referencedGenModelsLabel.setText(getReferencedGenModelsLabel());
    9
    FormData data = new FormData();
    9
    FormData data = new FormData();
    10
    data.left = new FormAttachment(0);
    10
    data.left = new FormAttachment(0);
    11
    packagesLabel.setLayoutData(data);
    11
    packagesLabel.setLayoutData(data);
    11
    referencedGenModelsLabel.setLayoutData(data);
    Differences
    Expression1Expression2Difference
    packagesLabelreferencedGenModelsLabelVARIABLE_NAME_MISMATCH
    11
    referencedGenModelsLabel.setLayoutData(data);
    Precondition Violations (0)
    Row Violation