CloneSet1049


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
21210.984method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
121396
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/edit/command/AddCommand.java
221436
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/edit/command/AddCommand.java
Next
Last
Clone Instance
1
Line Count
21
Source Line
396
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/edit/command/AddCommand.java

@Override public void doExecute() {
  // Simply add the collection to the list.
  //
  if (index == CommandParameter.NO_INDEX) {
    ownerList.addAll(collection);
  }
  else {
    ownerList.addAll(index, collection);
  }
  // Update the containing map, if necessary.
  //
  updateEMap(owner, feature);
  // We'd like the collection of things added to be selected after this command completes.
  //
  affectedObjects = collection;
}


First
Previous
Clone Instance
2
Line Count
21
Source Line
436
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/edit/command/AddCommand.java

@Override public void doRedo() {
  // Simply add the collection to the list.
  //
  if (index == CommandParameter.NO_INDEX) {
    ownerList.addAll(collection);
  }
  else {
    ownerList.addAll(index, collection);
  }
  // Update the containing map, if necessary.
  //
  updateEMap(owner, feature);
  // We'd like the collection of things added to be selected after this command completes.
  //
  affectedObjects = collection;
}


Clone AbstractionParameter Count: 1Parameter Bindings

@Override public void [[#variable174cae40]]() {
  // Simply add the collection to the list.
  //
  if (index == CommandParameter.NO_INDEX) {
    ownerList.addAll(collection);
  }
  else {
    ownerList.addAll(index, collection);
  }
  // Update the containing map, if necessary.
  //
  updateEMap(owner, feature);
  // We'd like the collection of things added to be selected after this command completes.
  //
  affectedObjects = collection;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#174cae40]]
doExecute 
12[[#174cae40]]
doRedo