super.getPropertyDescriptors(object); //MappingPackage ePackage = ((ComplexTypeConverter)object).ePackageMapping(); MappingPackage ePackage = MappingPackage.eINSTANCE; // This is for the in2out feature. // itemPropertyDescriptors.add (new ItemPropertyDescriptor (adapterFactory, MappingPlugin.getPlugin().getString("_UI_In2out_property_label"), MappingPlugin.getPlugin().getString("_UI_In2out_property_description"), ePackage.getComplexTypeConverter_In2out())); // This is for the out2in feature. // itemPropertyDescriptors.add (new ItemPropertyDescriptor (adapterFactory, MappingPlugin.getPlugin().getString("_UI_Out2in_property_label"), MappingPlugin.getPlugin().getString("_UI_Out2in_property_description"), ePackage.getComplexTypeConverter_Out2in()));
super.getPropertyDescriptors(object); //MappingPackage ePackage = ((FunctionPair)object).ePackageMapping(); MappingPackage ePackage = MappingPackage.eINSTANCE; // This is for the in2out feature. // itemPropertyDescriptors.add (new ItemPropertyDescriptor (adapterFactory, MappingPlugin.getPlugin().getString("_UI_In2out_property_label"), MappingPlugin.getPlugin().getString("_UI_In2out_property_description"), ePackage.getFunctionPair_In2out())); // This is for the out2in feature. // itemPropertyDescriptors.add (new ItemPropertyDescriptor (adapterFactory, MappingPlugin.getPlugin().getString("_UI_Out2in_property_label"), MappingPlugin.getPlugin().getString("_UI_Out2in_property_description"), ePackage.getFunctionPair_Out2in()));
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/mapping/provider/ComplexTypeConverterItemProvider.java File path: /emf-2.4.1/src/org/eclipse/emf/mapping/provider/FunctionPairItemProvider.java
Method name: List getPropertyDescriptors(Object) Method name: List getPropertyDescriptors(Object)
Number of AST nodes: 4 Number of AST nodes: 4
1
super.getPropertyDescriptors(object);
1
super.getPropertyDescriptors(object);
2
      //MappingPackage ePackage = ((ComplexTypeConverter)object).ePackageMapping();
2
      //MappingPackage ePackage = ((FunctionPair)object).ePackageMapping();
3
      MappingPackage ePackage = MappingPackage.eINSTANCE;
3
      MappingPackage ePackage = MappingPackage.eINSTANCE;
4
      // This is for the in2out feature.
4
      // This is for the in2out feature.
5
      //
5
      //
6
      itemPropertyDescriptors.add
6
      itemPropertyDescriptors.add
7
        (new ItemPropertyDescriptor
7
        (new ItemPropertyDescriptor
8
          (adapterFactory,
8
          (adapterFactory,
9
           MappingPlugin.getPlugin().getString("_UI_In2out_property_label"),
9
           MappingPlugin.getPlugin().getString("_UI_In2out_property_label"),
10
           MappingPlugin.getPlugin().getString("_UI_In2out_property_description"),
10
           MappingPlugin.getPlugin().getString("_UI_In2out_property_description"),
11
           ePackage.getComplexTypeConverter_In2out()));
11
           ePackage.getFunctionPair_In2out()));
12
      // This is for the out2in feature.
12
      // This is for the out2in feature.
13
      //
13
      //
14
      itemPropertyDescriptors.add
14
      itemPropertyDescriptors.add
15
        (new ItemPropertyDescriptor
15
        (new ItemPropertyDescriptor
16
          (adapterFactory,
16
          (adapterFactory,
17
           MappingPlugin.getPlugin().getString("_UI_Out2in_property_label"),
17
           MappingPlugin.getPlugin().getString("_UI_Out2in_property_label"),
18
           MappingPlugin.getPlugin().getString("_UI_Out2in_property_description"),
18
           MappingPlugin.getPlugin().getString("_UI_Out2in_property_description"),
19
           ePackage.getComplexTypeConverter_Out2in()));
19
           ePackage.getFunctionPair_Out2in()));
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 comparisons10
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements4
    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
    super.getPropertyDescriptors(object);
    2
    super.getPropertyDescriptors(object);
    3
    MappingPackage ePackage = MappingPackage.eINSTANCE;
    3
    MappingPackage ePackage = MappingPackage.eINSTANCE;
    4
    itemPropertyDescriptors.add(new ItemPropertyDescriptor(adapterFactory, MappingPlugin.getPlugin().getString("_UI_In2out_property_label"), MappingPlugin.getPlugin().getString("_UI_In2out_property_description"), ePackage.getComplexTypeConverter_In2out()));
    4
    itemPropertyDescriptors.add(new ItemPropertyDescriptor(adapterFactory, MappingPlugin.getPlugin().getString("_UI_In2out_property_label"), MappingPlugin.getPlugin().getString("_UI_In2out_property_description"), ePackage.getComplexTypeConverter_In2out()));
    4
    itemPropertyDescriptors.add(new ItemPropertyDescriptor(adapterFactory, MappingPlugin.getPlugin().getString("_UI_In2out_property_label"), MappingPlugin.getPlugin().getString("_UI_In2out_property_description"), ePackage.getFunctionPair_In2out()));
    Differences
    Expression1Expression2Difference
    getComplexTypeConverter_In2outgetFunctionPair_In2outMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression ePackage.getComplexTypeConverter_In2out() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression ePackage.getFunctionPair_In2out() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4
    itemPropertyDescriptors.add(new ItemPropertyDescriptor(adapterFactory, MappingPlugin.getPlugin().getString("_UI_In2out_property_label"), MappingPlugin.getPlugin().getString("_UI_In2out_property_description"), ePackage.getFunctionPair_In2out()));
    5
    itemPropertyDescriptors.add(new ItemPropertyDescriptor(adapterFactory, MappingPlugin.getPlugin().getString("_UI_Out2in_property_label"), MappingPlugin.getPlugin().getString("_UI_Out2in_property_description"), ePackage.getComplexTypeConverter_Out2in()));
    5
    itemPropertyDescriptors.add(new ItemPropertyDescriptor(adapterFactory, MappingPlugin.getPlugin().getString("_UI_Out2in_property_label"), MappingPlugin.getPlugin().getString("_UI_Out2in_property_description"), ePackage.getComplexTypeConverter_Out2in()));
    5
    itemPropertyDescriptors.add(new ItemPropertyDescriptor(adapterFactory, MappingPlugin.getPlugin().getString("_UI_Out2in_property_label"), MappingPlugin.getPlugin().getString("_UI_Out2in_property_description"), ePackage.getFunctionPair_Out2in()));
    Differences
    Expression1Expression2Difference
    getComplexTypeConverter_Out2ingetFunctionPair_Out2inMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression ePackage.getComplexTypeConverter_Out2in() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression ePackage.getFunctionPair_Out2in() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5
    itemPropertyDescriptors.add(new ItemPropertyDescriptor(adapterFactory, MappingPlugin.getPlugin().getString("_UI_Out2in_property_label"), MappingPlugin.getPlugin().getString("_UI_Out2in_property_description"), ePackage.getFunctionPair_Out2in()));
    Precondition Violations (4)
    Row Violation
    1Expression ePackage.getComplexTypeConverter_In2out() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression ePackage.getFunctionPair_In2out() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression ePackage.getComplexTypeConverter_Out2in() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression ePackage.getFunctionPair_Out2in() cannot be parameterized, because it has dependencies to/from statements that will be extracted