public EObject getOwner() { return owner; } /** * This returns the feature of the owner object upon the command will act. * It could be null, in the case that we are dealing with an {@link org.eclipse.emf.common.util.EList}. */ public EStructuralFeature getFeature() { return feature; } /** * This returns the list in which the command will replace. */ public EList<Object> getOwnerList() { return ownerList;
public EObject getOwner() { return owner; } /** * This returns the feature of the owner object upon the command will act. */ public EStructuralFeature getFeature() { return feature; } /** * If the command will set a single value in a list, this returns the list in which it will set; null otherwise. */ public EList<Object> getOwnerList() { return ownerList;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/edit/command/ReplaceCommand.java File path: /emf-2.4.1/src/org/eclipse/emf/edit/command/SetCommand.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public EObject getOwner()
1
public EObject getOwner()
2
  {
2
  {
3
    return owner;
3
    return owner;
4
  }
4
  }
5
  /**
5
  /**
6
   * This returns the feature of the owner object upon the command will act.
6
   * This returns the feature of the owner object upon the command will act.
7
   * It could be null, in the case that we are dealing with an {@link org.eclipse.emf.common.util.EList}.
8
   */
7
   */
9
  public EStructuralFeature getFeature()
8
  public EStructuralFeature getFeature()
10
  {
9
  {
11
    return feature;
10
    return feature;
12
  }
11
  }
13
  /**
12
  /**
14
   * This returns the list in which the command will replace.
13
   * If the command will set a single value in a list, this returns the list in which it will set; null otherwise.
15
   */
14
   */
16
  public EList<Object> getOwnerList()
15
  public EList<Object> getOwnerList()
17
  {
16
  {
18
    return ownerList;
17
    return ownerList;
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0