CloneSet419


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11220.984method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111338
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/ecore2xml/presentation/Ecore2XMLActionBarContributor.java
211358
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/ecore2xml/presentation/Ecore2XMLActionBarContributor.java
Next
Last
Clone Instance
1
Line Count
11
Source Line
338
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/ecore2xml/presentation/Ecore2XMLActionBarContributor.java

/**
 * This generates a {@link org.eclipse.emf.edit.ui.action.CreateChildAction} for each object in <code>descriptors</code>,
 * and returns the collection of these actions.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected Collection<IAction> generateCreateChildActions(Collection<? > descriptors, ISelection selection) {
  Collection<IAction> actions = new ArrayList<IAction>();
  if (descriptors != null) {
    for (Object descriptor: descriptors) {
      actions.add(new CreateChildAction(activeEditorPart, selection, descriptor));
    }
  }
  return actions;
}


First
Previous
Clone Instance
2
Line Count
11
Source Line
358
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/ecore2xml/presentation/Ecore2XMLActionBarContributor.java

/**
 * This generates a {@link org.eclipse.emf.edit.ui.action.CreateSiblingAction} for each object in <code>descriptors</code>,
 * and returns the collection of these actions.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected Collection<IAction> generateCreateSiblingActions(Collection<? > descriptors, ISelection selection) {
  Collection<IAction> actions = new ArrayList<IAction>();
  if (descriptors != null) {
    for (Object descriptor: descriptors) {
      actions.add(new CreateSiblingAction(activeEditorPart, selection, descriptor));
    }
  }
  return actions;
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
   * This generates a {@link org.eclipse.emf.edit.ui.action.CreateSiblingAction} for each object in <code>descriptors</code>,
   * and returns the collection of these actions.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
/**
   * This generates a {@link org.eclipse.emf.edit.ui.action.CreateChildAction} for each object in <code>descriptors</code>,
   * and returns the collection of these actions.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
protected Collection<IAction>  [[#variable172859a0]](Collection<? > descriptors, ISelection selection) {
  Collection<IAction> actions = new ArrayList<IAction>();
  if (descriptors != null) {
    for (Object descriptor: descriptors) {
      actions.add(new [[#variable17285920]](activeEditorPart, selection, descriptor));
    }
  }
  return actions;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#172859a0]]
generateCreateChildActions 
12[[#172859a0]]
generateCreateSiblingActions 
21[[#17285920]]
CreateChildAction 
22[[#17285920]]
CreateSiblingAction