CloneSet192


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
26230.981compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12617
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/exporter/ui/GenModelExportActionDelegate.java
22617
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/importer/ui/GenModelReloadActionDelegate.java
Next
Last
Clone Instance
1
Line Count
26
Source Line
17
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/exporter/ui/GenModelExportActionDelegate.java

/**
 * <copyright>
 *
 * Copyright (c) 2005-2006 IBM Corporation and others.
 * All rights reserved.   This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors: 
 *   IBM - Initial API and implementation
 *
 * </copyright>
 *
 * $Id: GenModelExportActionDelegate.java,v 1.2 2006/12/28 06:50:54 marcelop Exp $
 */
package org.eclipse.emf.exporter.ui;

import org.eclipse.core.resources.IFile;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.wizard.IWizard;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IWorkbench;
import org.eclipse.emf.converter.ui.OpenWizardActionDelegate;

/**
 * Exports a GenModel file and the Ecore files behind it.
 * @since 2.2.0
 */
public class GenModelExportActionDelegate extends OpenWizardActionDelegate {
  @Override protected IWizard createWizard(IWorkbench workbench, Shell shell, IFile file) {
    EMFExportWizard wizard = new EMFExportWizard(file);
    wizard.init(workbench, new StructuredSelection(file));
    return wizard;
  }
}




First
Previous
Clone Instance
2
Line Count
26
Source Line
17
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/importer/ui/GenModelReloadActionDelegate.java

/**
 * <copyright>
 *
 * Copyright (c) 2005-2006 IBM Corporation and others.
 * All rights reserved.   This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors: 
 *   IBM - Initial API and implementation
 *
 * </copyright>
 *
 * $Id: GenModelReloadActionDelegate.java,v 1.5 2006/12/28 06:53:13 marcelop Exp $
 */
package org.eclipse.emf.importer.ui;

import org.eclipse.core.resources.IFile;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.wizard.IWizard;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IWorkbench;
import org.eclipse.emf.converter.ui.OpenWizardActionDelegate;

/**
 * Reloads a GenModel file and the Ecore files behind it.
 * @since 2.1.0
 */
public class GenModelReloadActionDelegate extends OpenWizardActionDelegate {
  @Override protected IWizard createWizard(IWorkbench workbench, Shell shell, IFile file) {
    EMFModelWizard wizard = new EMFModelWizard(file);
    wizard.init(workbench, new StructuredSelection(file));
    return wizard;
  }
}




Clone AbstractionParameter Count: 3Parameter Bindings

/**
 * <copyright>
 *
 * Copyright (c) 2005-2006 IBM Corporation and others.
 * All rights reserved.   This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors: 
 *   IBM - Initial API and implementation
 *
 * </copyright>
 *
 * $Id: GenModelExportActionDelegate.java,v 1.2 2006/12/28 06:50:54 marcelop Exp $
 */
/**
 * <copyright>
 *
 * Copyright (c) 2005-2006 IBM Corporation and others.
 * All rights reserved.   This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors: 
 *   IBM - Initial API and implementation
 *
 * </copyright>
 *
 * $Id: GenModelReloadActionDelegate.java,v 1.5 2006/12/28 06:53:13 marcelop Exp $
 */
package org.eclipse.emf. [[#variable17146400]].ui;

import org.eclipse.core.resources.IFile;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.wizard.IWizard;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IWorkbench;
import org.eclipse.emf.converter.ui.OpenWizardActionDelegate;

/**
 * Exports a GenModel file and the Ecore files behind it.
 * @since 2.2.0
 */
/**
 * Reloads a GenModel file and the Ecore files behind it.
 * @since 2.1.0
 */
public class [[#variable171463a0]]extends OpenWizardActionDelegate {
  @Override protected IWizard createWizard(IWorkbench workbench, Shell shell, IFile file) {
     [[#variable17146300]] wizard = new [[#variable17146300]](file);
    wizard.init(workbench, new StructuredSelection(file));
    return wizard;
  }
}


 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#17146400]]
exporter 
12[[#17146400]]
importer 
21[[#171463a0]]
GenModelExportActionDelegate 
22[[#171463a0]]
GenModelReloadActionDelegate 
31[[#17146300]]
EMFExportWizard 
32[[#17146300]]
EMFModelWizard