CloneSet2504


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18300
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/MembersView.java
28113
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/ProjectsView.java
Clone Instance
1
Line Count
8
Source Line
300
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/MembersView.java

        protected void hookViewerListeners() {
                super.hookViewerListeners();
                getViewer().addDoubleClickListener(new IDoubleClickListener() {
                        public void doubleClick(DoubleClickEvent event) {
                                TreeViewer viewer = (TreeViewer) getViewer();
                                Object element = ((IStructuredSelection) event.getSelection()).getFirstElement();
                                if (viewer.isExpandable(element))
                                        viewer.setExpandedState(element, !viewer.getExpandedState(element));
                        }
                                                   } );
        }


Clone Instance
2
Line Count
8
Source Line
113
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/ProjectsView.java

        /**
         * Adds additional listeners to this view.
         */
        protected void hookViewerListeners() {
                super.hookViewerListeners();
                getViewer().addDoubleClickListener(new IDoubleClickListener() {
                        public void doubleClick(DoubleClickEvent event) {
                                TreeViewer viewer = (TreeViewer) getViewer();
                                Object element = ((IStructuredSelection) event.getSelection()).getFirstElement();
                                if (viewer.isExpandable(element))
                                        viewer.setExpandedState(element, !viewer.getExpandedState(element));
                        }
                                                   } );
        }


Clone AbstractionParameter Count: 0Parameter Bindings

/**
         * Adds additional listeners to this view.
         */
protected void hookViewerListeners() {
  super.hookViewerListeners();
  getViewer().addDoubleClickListener(new IDoubleClickListener() {
                                       public void doubleClick(DoubleClickEvent event) {
                                         TreeViewer viewer = (TreeViewer) getViewer();
                                         Object element = ((IStructuredSelection) event.getSelection()).getFirstElement();
                                         if (viewer.isExpandable(element))
                                           viewer.setExpandedState(element, !viewer.getExpandedState(element));
                                       }
                                     } );
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None