CloneSet1143


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12201.000method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11097
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/edit/provider/resource/ResourceItemProvider.java
21286
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/edit/provider/resource/ResourceSetItemProvider.java
Next
Last
Clone Instance
1
Line Count
10
Source Line
97
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/edit/provider/resource/ResourceItemProvider.java

/**
 * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
 * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
 * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand(Object, EditingDomain, Class, org.eclipse.emf.edit.command.CommandParameter) createCommand}.
 */
@Override public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
  if (childrenFeatures == null) {
    super.getChildrenFeatures(object);
  // Resource resource = (Resource)object;
  // childrenFeatures.add(ResourcePackage.eINSTANCE.getResource_Contents());
  }
  return childrenFeatures;
}


First
Previous
Clone Instance
2
Line Count
12
Source Line
86
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/edit/provider/resource/ResourceSetItemProvider.java

/**
 * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
 * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
 * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand(Object, EditingDomain, Class, org.eclipse.emf.edit.command.CommandParameter) createCommand}.
 */
@Override public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
  if (childrenFeatures == null) {
    super.getChildrenFeatures(object);
  /*
        ResourceSet resourceSet = (ResourceSet)object;
        childrenFeatures.add(ResourcePackage.eINSTANCE.getResourceSet_Resources());
  */
  }
  return childrenFeatures;
}


Clone AbstractionParameter Count: 0Parameter Bindings

/**
   * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
   * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
   * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand(Object, EditingDomain, Class, org.eclipse.emf.edit.command.CommandParameter) createCommand}.
   */
@Override public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
  if (childrenFeatures == null) {
    super.getChildrenFeatures(object);
  /*
        ResourceSet resourceSet = (ResourceSet)object;
        childrenFeatures.add(ResourcePackage.eINSTANCE.getResourceSet_Resources());
  */
  // Resource resource = (Resource)object;
  // childrenFeatures.add(ResourcePackage.eINSTANCE.getResource_Contents());
  }
  return childrenFeatures;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None