CloneSet146


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
31220.984executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
131179
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/ecore2ecore/action/MapToEcoreActionDelegate.java
231245
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/ecore2xml/action/GenerateEcore2XMLActionDelegate.java
Next
Last
Clone Instance
1
Line Count
31
Source Line
179
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/ecore2ecore/action/MapToEcoreActionDelegate.java

try {
  mappingResource.save(null);
  IFile file = getFile(mappingResource);
  IWorkbenchPage workbenchPage = workbenchWindow.getActivePage();
  final IWorkbenchPart activePart = workbenchPage.getActivePart();
  if (activePart instanceof ISetSelectionTarget) {
    final ISelection targetSelection = new StructuredSelection(file);
    workbenchWindow.getShell().getDisplay().asyncExec(new Runnable() {
                                                        public void run() {
                                                          ((ISetSelectionTarget) activePart).selectReveal(targetSelection);
                                                        }
                                                      } );
  }
  try {
    workbenchPage.openEditor(new FileEditorInput(file), workbenchWindow.getWorkbench().getEditorRegistry().getDefaultEditor(file.getFullPath().toString()).getId());
  }
  catch (PartInitException
         pie) {
    Ecore2EcoreEditorPlugin.INSTANCE.log(pie);
  }
}
catch (IOException
       ioe) {
  Ecore2EcoreEditorPlugin.INSTANCE.log(ioe);
}


First
Previous
Clone Instance
2
Line Count
31
Source Line
245
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/ecore2xml/action/GenerateEcore2XMLActionDelegate.java

try {
  ecore2xmlResource.save(null);
  IFile file = getFile(ecore2xmlResource);
  IWorkbenchPage workbenchPage = workbenchWindow.getActivePage();
  final IWorkbenchPart activePart = workbenchPage.getActivePart();
  if (activePart instanceof ISetSelectionTarget) {
    final ISelection targetSelection = new StructuredSelection(file);
    workbenchWindow.getShell().getDisplay().asyncExec(new Runnable() {
                                                        public void run() {
                                                          ((ISetSelectionTarget) activePart).selectReveal(targetSelection);
                                                        }
                                                      } );
  }
  try {
    workbenchPage.openEditor(new FileEditorInput(file), workbenchWindow.getWorkbench().getEditorRegistry().getDefaultEditor(file.getFullPath().toString()).getId());
  }
  catch (PartInitException
         pie) {
    Ecore2XMLUIPlugin.INSTANCE.log(pie);
  }
}
catch (IOException
       ioe) {
  Ecore2XMLUIPlugin.INSTANCE.log(ioe);
}


Clone AbstractionParameter Count: 2Parameter Bindings

try {
   [[#variable19068f40]].save(null);
  IFile file = getFile( [[#variable19068f40]]);
  IWorkbenchPage workbenchPage = workbenchWindow.getActivePage();
  final IWorkbenchPart activePart = workbenchPage.getActivePart();
  if (activePart instanceof ISetSelectionTarget) {
    final ISelection targetSelection = new StructuredSelection(file);
    workbenchWindow.getShell().getDisplay().asyncExec(new Runnable() {
                                                        public void run() {
                                                          ((ISetSelectionTarget) activePart).selectReveal(targetSelection);
                                                        }
                                                      } );
  }
  try {
    workbenchPage.openEditor(new FileEditorInput(file), workbenchWindow.getWorkbench().getEditorRegistry().getDefaultEditor(file.getFullPath().toString()).getId());
  }
  catch (PartInitException
         pie) {
     [[#variable19068ec0]].INSTANCE.log(pie);
  }
}
catch (IOException
       ioe) {
   [[#variable19068ec0]].INSTANCE.log(ioe);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#19068f40]]
mappingResource 
12[[#19068f40]]
ecore2xmlResource 
21[[#19068ec0]]
Ecore2EcoreEditorPlugin 
22[[#19068ec0]]
Ecore2XMLUIPlugin