CloneSet248


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19220.989method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
119700
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/presentation/EcoreActionBarContributor.java
219728
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/presentation/EcoreActionBarContributor.java
Next
Last
Clone Instance
1
Line Count
19
Source Line
700
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/presentation/EcoreActionBarContributor.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 NOT
 */
protected Collection<IAction> generateCreateChildActions(Collection<? > descriptors, ISelection selection) {
  Collection<IAction> actions = new ArrayList<IAction>();
  if (descriptors != null) {
    for (Object descriptor: descriptors) {
      if ( !showGenericsAction.isChecked() && descriptor instanceof CommandParameter) {
        Object feature = ((CommandParameter) descriptor).getFeature();
        if (isGenericFeature(feature)) {
          continue ;
        }
      }
      actions.add(new CreateChildAction(activeEditorPart, selection, descriptor));
    }
  }
  return actions;
}


First
Previous
Clone Instance
2
Line Count
19
Source Line
728
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/presentation/EcoreActionBarContributor.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 NOT
 */
protected Collection<IAction> generateCreateSiblingActions(Collection<? > descriptors, ISelection selection) {
  Collection<IAction> actions = new ArrayList<IAction>();
  if (descriptors != null) {
    for (Object descriptor: descriptors) {
      if ( !showGenericsAction.isChecked() && descriptor instanceof CommandParameter) {
        Object feature = ((CommandParameter) descriptor).getFeature();
        if (isGenericFeature(feature)) {
          continue ;
        }
      }
      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 NOT
   */
/**
   * 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 NOT
   */
protected Collection<IAction>  [[#variable171bc6a0]](Collection<? > descriptors, ISelection selection) {
  Collection<IAction> actions = new ArrayList<IAction>();
  if (descriptors != null) {
    for (Object descriptor: descriptors) {
      if ( !showGenericsAction.isChecked() && descriptor instanceof CommandParameter) {
        Object feature = ((CommandParameter) descriptor).getFeature();
        if (isGenericFeature(feature)) {
          continue ;
        }
      }
      actions.add(new [[#variable171bd080]](activeEditorPart, selection, descriptor));
    }
  }
  return actions;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#171bc6a0]]
generateCreateChildActions 
12[[#171bc6a0]]
generateCreateSiblingActions 
21[[#171bd080]]
CreateChildAction 
22[[#171bd080]]
CreateSiblingAction