CloneSet1555


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11301.000statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112100
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/nls/SourceContainerDialog.java
211170
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/nls/SourceFirstPackageSelectionDialogField.java
311495
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewContainerWizardPage.java
Clone Instance
1
Line Count
12
Source Line
100
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/nls/SourceContainerDialog.java

                if (dialog.open() == Window.OK) {
                        Object element = dialog.getFirstResult();
                        if (element instanceof IJavaProject) {
                                IJavaProject jproject = (IJavaProject) element;
                                return jproject.getPackageFragmentRoot(jproject.getProject());
                        }
                        else    if (element instanceof IPackageFragmentRoot) {
                                        return (IPackageFragmentRoot) element;
                                }
                        return null;
                }
                return null;


Clone Instance
2
Line Count
11
Source Line
170
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/nls/SourceFirstPackageSelectionDialogField.java

                if (dialog.open() == Window.OK) {
                        Object element = dialog.getFirstResult();
                        if (element instanceof IJavaProject) {
                                IJavaProject jproject = (IJavaProject) element;
                                return jproject.getPackageFragmentRoot(jproject.getProject());
                        }
                        else   if (element instanceof IPackageFragmentRoot) {
                                return (IPackageFragmentRoot) element;
                               }
                        return null;
                }
                return null;


Clone Instance
3
Line Count
11
Source Line
495
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewContainerWizardPage.java

                if (dialog.open() == Window.OK) {
                        Object element = dialog.getFirstResult();
                        if (element instanceof IJavaProject) {
                                IJavaProject jproject = (IJavaProject) element;
                                return jproject.getPackageFragmentRoot(jproject.getProject());
                        }
                        else   if (element instanceof IPackageFragmentRoot) {
                                return (IPackageFragmentRoot) element;
                               }
                        return null;
                }
                return null;


Clone AbstractionParameter Count: 0Parameter Bindings

if (dialog.open() == Window.OK) {
  Object element = dialog.getFirstResult();
  if (element instanceof IJavaProject) {
    IJavaProject jproject = (IJavaProject) element;
    return jproject.getPackageFragmentRoot(jproject.getProject());
  }
  else
    if (element instanceof IPackageFragmentRoot) {
      return (IPackageFragmentRoot) element;
    }
  return null;
}
return null;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None