CloneSet2724


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6250.951class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17441
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/ProjectsWorkbookPage.java
26412
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java
Clone Instance
1
Line Count
7
Source Line
441
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/ProjectsWorkbookPage.java

        private void projectPageSelectionChanged(DialogField field) {
                List selElements = fProjectsList.getSelectedElements();
                fProjectsList.enableButton(IDX_EDIT, canEdit(selElements));
                fProjectsList.enableButton(IDX_REMOVE, canRemove(selElements));

                boolean noAttributes = containsOnlyTopLevelEntries(selElements);
                fProjectsList.enableButton(IDX_ADDPROJECT, noAttributes);
        }


Clone Instance
2
Line Count
6
Source Line
412
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java

        protected void sourcePageSelectionChanged(DialogField field) {
                List selected = fFoldersList.getSelectedElements();
                fFoldersList.enableButton(IDX_EDIT, canEdit(selected));
                fFoldersList.enableButton(IDX_REMOVE, canRemove(selected));
                boolean noAttributes = containsOnlyTopLevelEntries(selected);
                fFoldersList.enableButton(IDX_ADD, noAttributes);
        }


Clone AbstractionParameter Count: 5Parameter Bindings

 [[#variable54dccb40]]void [[#variable54dccae0]](DialogField field) {
  List  [[#variableb8ea2ee0]]= [[#variable5470eec0]].getSelectedElements();
   [[#variable5470eec0]].enableButton(IDX_EDIT, canEdit( [[#variableb8ea2ee0]]));
   [[#variable5470eec0]].enableButton(IDX_REMOVE, canRemove( [[#variableb8ea2ee0]]));
  boolean noAttributes = containsOnlyTopLevelEntries( [[#variableb8ea2ee0]]);
   [[#variable5470eec0]].enableButton( [[#variable54dccb80]], noAttributes);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#54dccb40]]
protected 
12[[#54dccb40]]
private 
21[[#54dccae0]]
sourcePageSelectionChanged 
22[[#54dccae0]]
projectPageSelectionChanged 
31[[#b8ea2ee0]]
selected 
32[[#b8ea2ee0]]
selElements 
41[[#5470eec0]]
fFoldersList 
42[[#5470eec0]]
fProjectsList 
51[[#54dccb80]]
IDX_ADD 
52[[#54dccb80]]
IDX_ADDPROJECT