CloneSet182


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
23230.973class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
123233
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/util/EContentAdapter.java
223324
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/util/EContentAdapter.java
Next
Last
Clone Instance
1
Line Count
23
Source Line
233
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/util/EContentAdapter.java

/**
 * Handles installation of the adapter on a Resource
 * by adding the adapter to each of the directly contained objects.
 */
protected void setTarget(Resource target) {
  basicSetTarget(target);
  List<EObject> contents = target.getContents();
  for (int i = 0, size = contents.size(); i < size; ++i) {
    Notifier notifier = contents.get(i);
    addAdapter(notifier);
  }
}

/**
 * Handles installation of the adapter on a ResourceSet
 * by adding the adapter to each of the directly contained objects.
 */
protected void setTarget(ResourceSet target) {
  basicSetTarget(target);
  List<Resource> resources = target.getResources();
  for (int i = 0; i < resources.size(); ++i) {
    Notifier notifier = resources.get(i);
    addAdapter(notifier);
  }
}


First
Previous
Clone Instance
2
Line Count
23
Source Line
324
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/util/EContentAdapter.java

/**
 * Handles undoing the installation of the adapter from a Resource
 * by removing the adapter from each of the directly contained objects.
 */
protected void unsetTarget(Resource target) {
  basicUnsetTarget(target);
  List<EObject> contents = target.getContents();
  for (int i = 0, size = contents.size(); i < size; ++i) {
    Notifier notifier = contents.get(i);
    removeAdapter(notifier);
  }
}

/**
 * Handles undoing the installation of the adapter from a ResourceSet
 * by removing the adapter from each of the directly contained objects.
 */
protected void unsetTarget(ResourceSet target) {
  basicUnsetTarget(target);
  List<Resource> resources = target.getResources();
  for (int i = 0; i < resources.size(); ++i) {
    Notifier notifier = resources.get(i);
    removeAdapter(notifier);
  }
}


Clone AbstractionParameter Count: 3Parameter Bindings

/**
   * Handles installation of the adapter on a Resource
   * by adding the adapter to each of the directly contained objects.
   */
/**
   * Handles undoing the installation of the adapter from a Resource
   * by removing the adapter from each of the directly contained objects.
   */
protected void [[#variable171fb0a0]](Resource target) {
   [[#variable17200680]](target);
  List<EObject> contents = target.getContents();
  for (int i = 0, size = contents.size(); i < size; ++i) {
    Notifier notifier = contents.get(i);
     [[#variable171fb000]](notifier);
  }
}

/**
   * Handles installation of the adapter on a ResourceSet
   * by adding the adapter to each of the directly contained objects.
   */
/**
   * Handles undoing the installation of the adapter from a ResourceSet
   * by removing the adapter from each of the directly contained objects.
   */
protected void [[#variable171fb0a0]](ResourceSet target) {
   [[#variable17200680]](target);
  List<Resource> resources = target.getResources();
  for (int i = 0; i < resources.size(); ++i) {
    Notifier notifier = resources.get(i);
     [[#variable171fb000]](notifier);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#171fb0a0]]
setTarget 
12[[#171fb0a0]]
unsetTarget 
21[[#17200680]]
basicSetTarget 
22[[#17200680]]
basicUnsetTarget 
31[[#171fb000]]
addAdapter 
32[[#171fb000]]
removeAdapter