CloneSet1752


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11220.959block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111110
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/newsourcepage/AddLibraryToBuildpathAction.java
211123
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewElementWizard.java
Clone Instance
1
Line Count
11
Source Line
110
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/newsourcepage/AddLibraryToBuildpathAction.java

                                            {
                                                ISchedulingRule rule = null;
                                                Job job = Platform.getJobManager().currentJob();
                                                if (job != null)
                                                        rule = job.getRule();
                                                IRunnableWithProgress runnable = null;
                                                if (rule != null)
                                                        runnable = new WorkbenchRunnableAdapter(op, rule, true);
                                                else
                                                        runnable = new WorkbenchRunnableAdapter(op, ResourcesPlugin.getWorkspace().getRoot());
                                                getContainer().run(false, true, runnable);
                                            }


Clone Instance
2
Line Count
11
Source Line
123
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewElementWizard.java

                    {
                        ISchedulingRule rule = null;
                        Job job = Platform.getJobManager().currentJob();
                        if (job != null)
                                rule = job.getRule();
                        IRunnableWithProgress runnable = null;
                        if (rule != null)
                                runnable = new WorkbenchRunnableAdapter(op, rule, true);
                        else
                                runnable = new WorkbenchRunnableAdapter(op, getSchedulingRule());
                        getContainer().run(canRunForked(), true, runnable);
                    }


Clone AbstractionParameter Count: 2Parameter Bindings

{
  ISchedulingRule rule = null;
  Job job = Platform.getJobManager().currentJob();
  if (job != null)
    rule = job.getRule();
  IRunnableWithProgress runnable = null;
  if (rule != null)
    runnable = new WorkbenchRunnableAdapter(op, rule, true);
  else
    runnable = new WorkbenchRunnableAdapter(op,  [[#variable59622240]]);
  getContainer().run( [[#variable596221c0]], true, runnable);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#59622240]]
ResourcesPlugin.getWorkspace().getRoot() 
12[[#59622240]]
getSchedulingRule() 
21[[#596221c0]]
false 
22[[#596221c0]]
canRunForked()