CloneSet2191


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13230.985class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113303
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java
213416
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/ProjectsWorkbookPage.java
Clone Instance
1
Line Count
13
Source Line
303
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java

        protected void libaryPageDoubleClicked(TreeListDialogField field) {
                List selection = fLibrariesList.getSelectedElements();
                if (canEdit(selection)) {
                        editEntry();
                }
        }

        protected void libaryPageKeyPressed(TreeListDialogField field, KeyEvent event) {
                if (field == fLibrariesList) {
                        if (event.character == SWT.DEL && event.stateMask == 0) {
                                List selection = field.getSelectedElements();
                                if (canRemove(selection)) {
                                        removeEntry();
                                }
                        }
                }
        }


Clone Instance
2
Line Count
13
Source Line
416
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/ProjectsWorkbookPage.java

        protected void projectPageDoubleClicked(TreeListDialogField field) {
                List selection = fProjectsList.getSelectedElements();
                if (canEdit(selection)) {
                        editEntry();
                }
        }

        protected void projectPageKeyPressed(TreeListDialogField field, KeyEvent event) {
                if (field == fProjectsList) {
                        if (event.character == SWT.DEL && event.stateMask == 0) {
                                List selection = field.getSelectedElements();
                                if (canRemove(selection)) {
                                        removeEntry();
                                }
                        }
                }
        }


Clone AbstractionParameter Count: 3Parameter Bindings

protected void [[#variable9cecf460]](TreeListDialogField field) {
  List selection = [[#variable55902b00]].getSelectedElements();
  if (canEdit(selection)) {
    editEntry();
  }
}

protected void [[#variable55902be0]](TreeListDialogField field, KeyEvent event) {
  if (field == [[#variable55902b00]]) {
    if (event.character == SWT.DEL && event.stateMask == 0) {
      List selection = field.getSelectedElements();
      if (canRemove(selection)) {
        removeEntry();
      }
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9cecf460]]
libaryPageDoubleClicked 
12[[#9cecf460]]
projectPageDoubleClicked 
21[[#55902b00]]
fLibrariesList 
22[[#55902b00]]
fProjectsList 
31[[#55902be0]]
libaryPageKeyPressed 
32[[#55902be0]]
projectPageKeyPressed