CloneSet121


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
57230.986class_body_declarations[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
157150
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/presentation/EcoreModelWizard.java
257166
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/ecore2ecore/presentation/Ecore2EcoreModelWizard.java
Next
Last
Clone Instance
1
Line Count
57
Source Line
150
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/presentation/EcoreModelWizard.java

/**
 * Remember the selection during initialization for populating the default container.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected IStructuredSelection selection;

/**
 * Remember the workbench during initialization.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected IWorkbench workbench;

/**
 * Caches the names of the types that can be created as the root object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected List<String> initialObjectNames;

/**
 * This just records the information.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void init(IWorkbench workbench, IStructuredSelection selection) {
  this.workbench = workbench;
  this.selection = selection;
  setWindowTitle(EcoreEditorPlugin.INSTANCE.getString("_UI_Wizard_label"));
  setDefaultPageImageDescriptor(ExtendedImageRegistry.INSTANCE.getImageDescriptor(EcoreEditorPlugin.INSTANCE.getImage("full/wizban/NewEcore")));
}

/**
 * Returns the names of the types that can be created as the root object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected Collection<String> getInitialObjectNames() {
  if (initialObjectNames == null) {
    initialObjectNames = new ArrayList<String>();
    for (EClassifier eClassifier: ecorePackage.getEClassifiers()) {
      if (eClassifier instanceof EClass) {
        EClass eClass = (EClass) eClassifier;
        if ( !eClass.isAbstract()) {
          initialObjectNames.add(eClass.getName());
        }
      }
    }
    Collections.sort(initialObjectNames, CommonPlugin.INSTANCE.getComparator());
  }
  return initialObjectNames;
}


First
Previous
Clone Instance
2
Line Count
57
Source Line
166
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/ecore2ecore/presentation/Ecore2EcoreModelWizard.java

/**
 * Remember the selection during initialization for populating the default container.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected IStructuredSelection selection;

/**
 * Remember the workbench during initialization.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected IWorkbench workbench;

/**
 * Caches the names of the types that can be created as the root object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected List<String> initialObjectNames;

/**
 * This just records the information.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void init(IWorkbench workbench, IStructuredSelection selection) {
  this.workbench = workbench;
  this.selection = selection;
  setWindowTitle(Ecore2EcoreEditorPlugin.INSTANCE.getString("_UI_Wizard_label"));
  setDefaultPageImageDescriptor(ExtendedImageRegistry.INSTANCE.getImageDescriptor(Ecore2EcoreEditorPlugin.INSTANCE.getImage("full/wizban/NewEcore2Ecore")));
}

/**
 * Returns the names of the types that can be created as the root object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected Collection<String> getInitialObjectNames() {
  if (initialObjectNames == null) {
    initialObjectNames = new ArrayList<String>();
    for (EClassifier eClassifier: ecore2EcorePackage.getEClassifiers()) {
      if (eClassifier instanceof EClass) {
        EClass eClass = (EClass) eClassifier;
        if ( !eClass.isAbstract()) {
          initialObjectNames.add(eClass.getName());
        }
      }
    }
    Collections.sort(initialObjectNames, CommonPlugin.INSTANCE.getComparator());
  }
  return initialObjectNames;
}


Clone AbstractionParameter Count: 3Parameter Bindings

/**
   * Remember the selection during initialization for populating the default container.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
protected IStructuredSelection selection;

/**
   * Remember the workbench during initialization.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
protected IWorkbench workbench;

/**
   * Caches the names of the types that can be created as the root object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
protected List<String> initialObjectNames;

/**
   * This just records the information.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public void init(IWorkbench workbench, IStructuredSelection selection) {
  this.workbench = workbench;
  this.selection = selection;
  setWindowTitle( [[#variable17110080]].INSTANCE.getString("_UI_Wizard_label"));
  setDefaultPageImageDescriptor(ExtendedImageRegistry.INSTANCE.getImageDescriptor( [[#variable17110080]].INSTANCE.getImage( [[#variable17110020]])));
}

/**
   * Returns the names of the types that can be created as the root object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
protected Collection<String> getInitialObjectNames() {
  if (initialObjectNames == null) {
    initialObjectNames = new ArrayList<String>();
    for (EClassifier eClassifier: [[#variable1711ffc0]].getEClassifiers()) {
      if (eClassifier instanceof EClass) {
        EClass eClass = (EClass) eClassifier;
        if ( !eClass.isAbstract()) {
          initialObjectNames.add(eClass.getName());
        }
      }
    }
    Collections.sort(initialObjectNames, CommonPlugin.INSTANCE.getComparator());
  }
  return initialObjectNames;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#17110080]]
EcoreEditorPlugin 
12[[#17110080]]
Ecore2EcoreEditorPlugin 
21[[#17110020]]
"full/wizban/NewEcore" 
22[[#17110020]]
"full/wizban/NewEcore2Ecore" 
31[[#1711ffc0]]
ecorePackage 
32[[#1711ffc0]]
ecore2EcorePackage