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/FunctionNamePairItemProvider.java | |||
Method name: List
|
Method name: List
|
|||
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 = ((FunctionNamePair)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.getFunctionNamePair_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.getFunctionNamePair_Out2in())); | |
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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 10 |
Number of mapped statements | 4 |
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) | 0.0 |
Clone type | Type 2 |
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.getFunctionNamePair_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.getFunctionNamePair_Out2in())); |
Row | Violation |
---|---|
1 | Expression ePackage.getComplexTypeConverter_In2out() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression ePackage.getFunctionNamePair_In2out() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Type org.eclipse.emf.ecore.EReference of variable ePackage.getComplexTypeConverter_In2out() does not match with type org.eclipse.emf.ecore.EAttribute of variable ePackage.getFunctionNamePair_In2out() |
4 | Expression ePackage.getComplexTypeConverter_Out2in() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression ePackage.getFunctionNamePair_Out2in() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Type org.eclipse.emf.ecore.EReference of variable ePackage.getComplexTypeConverter_Out2in() does not match with type org.eclipse.emf.ecore.EAttribute of variable ePackage.getFunctionNamePair_Out2in() |