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 from which the command will remove. */ public EList<Object> getOwnerList() { return ownerList;
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;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/edit/command/RemoveCommand.java File path: /emf-2.4.1/src/org/eclipse/emf/edit/command/ReplaceCommand.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}.
7
   * It could be null, in the case that we are dealing with an {@link org.eclipse.emf.common.util.EList}.
8
   */
8
   */
9
  public EStructuralFeature getFeature()
9
  public EStructuralFeature getFeature()
10
  {
10
  {
11
    return feature;
11
    return feature;
12
  }
12
  }
13
  /**
13
  /**
14
   * This returns the list from which the command will remove.
14
   * This returns the list in which the command will replace.
15
   */
15
   */
16
  public EList<Object> getOwnerList()
16
  public EList<Object> getOwnerList()
17
  {
17
  {
18
    return ownerList;
18
    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