CloneSet263


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
27210.991statement_sequence[9]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12742
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/command/DragAndDropOverrideCommand.java
22745
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/command/PasteFromClipboardOverrideCommand.java
Next
Last
Clone Instance
1
Line Count
27
Source Line
42
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/command/DragAndDropOverrideCommand.java

if (collection == null) {
  return false;
}
// We'll try adding a shallow copy of the clipboard contents, instead of a full copy.
// Note: we can't just try adding the clipboard contents itself, because the copy may be a
//       different type then what's on the clipboard (e.g. EJB Field -> RDB Column).
//
CopyCommand.Helper copyHelper = new CopyCommand.Helper();
CompoundCommand shallowCopyCommand = new CompoundCommand(CompoundCommand.MERGE_COMMAND_ALL);
for (Object object: collection) {
  if ( !shallowCopyCommand.appendAndExecute(CreateCopyCommand.create(domain, object, copyHelper))) {
    shallowCopyCommand.dispose();
    return false;
  }
}
Command addCommand = AddCommand.create(domain, owner, null, shallowCopyCommand.getResult());
boolean result = addCommand.canExecute();
shallowCopyCommand.dispose();
addCommand.dispose();
return result;


First
Previous
Clone Instance
2
Line Count
27
Source Line
45
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/command/PasteFromClipboardOverrideCommand.java

if (collection == null) {
  return false;
}
// We'll try adding a shallow copy of the clipboard contents, instead of a full copy.
// Note: we can't just try adding the clipboard contents itself, because the copy may be a
//       different type then what's on the clipboard (e.g. EJB Field -> RDB Column).
//
CopyCommand.Helper copyHelper = new CopyCommand.Helper();
CompoundCommand shallowCopyCommand = new CompoundCommand(CompoundCommand.MERGE_COMMAND_ALL);
for (Object object: collection) {
  if ( !shallowCopyCommand.appendAndExecute(CreateCopyCommand.create(domain, object, copyHelper))) {
    shallowCopyCommand.dispose();
    return false;
  }
}
Command addCommand = AddCommand.create(domain, owner, feature, shallowCopyCommand.getResult());
boolean result = addCommand.canExecute();
shallowCopyCommand.dispose();
addCommand.dispose();
return result;


Clone AbstractionParameter Count: 1Parameter Bindings

if (collection == null) {
  return false;
}
// We'll try adding a shallow copy of the clipboard contents, instead of a full copy.
// Note: we can't just try adding the clipboard contents itself, because the copy may be a
//       different type then what's on the clipboard (e.g. EJB Field -> RDB Column).
//
CopyCommand.Helper copyHelper = new CopyCommand.Helper();
CompoundCommand shallowCopyCommand = new CompoundCommand(CompoundCommand.MERGE_COMMAND_ALL);
for (Object object: collection) {
  if ( !shallowCopyCommand.appendAndExecute(CreateCopyCommand.create(domain, object, copyHelper))) {
    shallowCopyCommand.dispose();
    return false;
  }
}
Command addCommand = AddCommand.create(domain, owner,  [[#variable171ca280]], shallowCopyCommand.getResult());
boolean result = addCommand.canExecute();
shallowCopyCommand.dispose();
addCommand.dispose();
return result;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#171ca280]]
null 
12[[#171ca280]]
feature