CloneSet2111


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5210.996statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15127
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/workingsets/AbstractWorkingSetWizardPage.java
25295
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/workingsets/JavaWorkingSetPage.java
Clone Instance
1
Line Count
5
Source Line
127
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/workingsets/AbstractWorkingSetWizardPage.java

                if (errorMessage == null && (fWorkingSet == null || newText.equals(fWorkingSet.getName()) == false)) {
                        IWorkingSet[] workingSets = PlatformUI.getWorkbench().getWorkingSetManager().getWorkingSets();
                        for (int i = 0; i < workingSets.length; i++) {
                                if (newText.equals(workingSets[i].getName())) {
                                        errorMessage = WorkingSetMessages.AbstractWorkingSetPage_warning_workingSetExists;
                                }
                        }
                }


Clone Instance
2
Line Count
5
Source Line
295
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/workingsets/JavaWorkingSetPage.java

                if (errorMessage == null && (fWorkingSet == null || newText.equals(fWorkingSet.getName()) == false)) {
                        IWorkingSet[] workingSets = PlatformUI.getWorkbench().getWorkingSetManager().getWorkingSets();
                        for (int i = 0; i < workingSets.length; i++) {
                                if (newText.equals(workingSets[i].getName())) {
                                        errorMessage = WorkingSetMessages.JavaWorkingSetPage_warning_workingSetExists;
                                }
                        }
                }


Clone AbstractionParameter Count: 1Parameter Bindings

if (errorMessage == null && (fWorkingSet == null || newText.equals(fWorkingSet.getName()) == false)) {
  IWorkingSet[] workingSets = PlatformUI.getWorkbench().getWorkingSetManager().getWorkingSets();
  for (int i = 0; i < workingSets.length; i++) {
    if (newText.equals(workingSets[i].getName())) {
      errorMessage = WorkingSetMessages. [[#variable595f46e0]];
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#595f46e0]]
JavaWorkingSetPage_warning_workingSetExists 
12[[#595f46e0]]
AbstractWorkingSetPage_warning_workingSetExists