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
|
Method name: List
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (itemPropertyDescriptors == null)↵ | 1 | if (itemPropertyDescriptors == null)↵ | |
2 | {↵ | 2 | {↵ | |
3 | super.getPropertyDescriptors(object);↵ | 3 | super.getPropertyDescriptors(object);↵ | |
4 | //MappingPackage ePackage = ((ComplexTypeConverter)object).ePackageMapping();↵ | 4 | //MappingPackage ePackage = ((FunctionPair)object).ePackageMapping();↵ | |
5 | MappingPackage ePackage = MappingPackage.eINSTANCE;↵ | 5 | MappingPackage ePackage = MappingPackage.eINSTANCE;↵ | |
6 | // This is for the in2out feature.↵ | 6 | // This is for the in2out feature.↵ | |
7 | //↵ | 7 | //↵ | |
8 | itemPropertyDescriptors.add↵ | 8 | itemPropertyDescriptors.add↵ | |
9 | (new ItemPropertyDescriptor↵ | 9 | (new ItemPropertyDescriptor↵ | |
10 | (adapterFactory,↵ | 10 | (adapterFactory,↵ | |
11 | MappingPlugin.getPlugin().getString("_UI_In2out_property_label"),↵ | 11 | MappingPlugin.getPlugin().getString("_UI_In2out_property_label"),↵ | |
12 | MappingPlugin.getPlugin().getString("_UI_In2out_property_description"),↵ | 12 | MappingPlugin.getPlugin().getString("_UI_In2out_property_description"),↵ | |
13 | ePackage.getComplexTypeConverter_In2out()));↵ | 13 | ePackage.getFunctionPair_In2out()));↵ | |
14 | // This is for the out2in feature.↵ | 14 | // This is for the out2in feature.↵ | |
15 | //↵ | 15 | //↵ | |
16 | itemPropertyDescriptors.add↵ | 16 | itemPropertyDescriptors.add↵ | |
17 | (new ItemPropertyDescriptor↵ | 17 | (new ItemPropertyDescriptor↵ | |
18 | (adapterFactory,↵ | 18 | (adapterFactory,↵ | |
19 | MappingPlugin.getPlugin().getString("_UI_Out2in_property_label"),↵ | 19 | MappingPlugin.getPlugin().getString("_UI_Out2in_property_label"),↵ | |
20 | MappingPlugin.getPlugin().getString("_UI_Out2in_property_description"),↵ | 20 | MappingPlugin.getPlugin().getString("_UI_Out2in_property_description"),↵ | |
21 | ePackage.getComplexTypeConverter_Out2in()));↵ | 21 | ePackage.getFunctionPair_Out2in()));↵ | |
22 | }↵ | 22 | }↵ | |
23 | return itemPropertyDescriptors; | 23 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 26 |
Number of mapped statements | 6 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 5.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (itemPropertyDescriptors == null) | 1 | if (itemPropertyDescriptors == null) | |||||||||||||
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.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.getFunctionPair_Out2in())); | ||||||||||||
6 | return itemPropertyDescriptors; | 6 | return itemPropertyDescriptors; |
Row | Violation |
---|---|
1 | Expression ePackage.getComplexTypeConverter_In2out() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression ePackage.getFunctionPair_In2out() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression ePackage.getComplexTypeConverter_Out2in() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression ePackage.getFunctionPair_Out2in() cannot be parameterized, because it has dependencies to/from statements that will be extracted |