CloneSet3866


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10210.994statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11081
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dnd/DelegatingDropAdapter.java
211106
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dnd/DelegatingDropAdapter.java
Clone Instance
1
Line Count
10
Source Line
81
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dnd/DelegatingDropAdapter.java

                TransferDropTargetListener oldListener = getCurrentListener();
                updateCurrentListener(event);
                final TransferDropTargetListener newListener = getCurrentListener();
                // only notify the current listener if it hasn't changed based on the
                // operation change. otherwise the new listener would get a dragEnter
                // followed by a dragOperationChanged with the exact same event.
                if (newListener != null && newListener == oldListener) {
                        SafeRunner.run(new SafeRunnable() {
                                public void run() throws Exception {
                                        newListener.dragOperationChanged(event);
                                }
                                       } );
                }


Clone Instance
2
Line Count
11
Source Line
106
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dnd/DelegatingDropAdapter.java

                TransferDropTargetListener oldListener = getCurrentListener();
                updateCurrentListener(event);
                final TransferDropTargetListener newListener = getCurrentListener();

                // only notify the current listener if it hasn't changed based on the
                // drag over. otherwise the new listener would get a dragEnter
                // followed by a dragOver with the exact same event.
                if (newListener != null && newListener == oldListener) {
                        SafeRunner.run(new SafeRunnable() {
                                public void run() throws Exception {
                                        newListener.dragOver(event);
                                }
                                       } );
                }


Clone AbstractionParameter Count: 1Parameter Bindings

TransferDropTargetListener oldListener = getCurrentListener();
updateCurrentListener(event);
final TransferDropTargetListener newListener = getCurrentListener();
// only notify the current listener if it hasn't changed based on the
// operation change. otherwise the new listener would get a dragEnter
// followed by a dragOperationChanged with the exact same event.
// drag over. otherwise the new listener would get a dragEnter
// followed by a dragOver with the exact same event.
if (newListener != null && newListener == oldListener) {
  SafeRunner.run(new SafeRunnable() {
                   public void run() throws Exception {
                     newListener. [[#variable95d6eb60]](event);
                   }
                 } );
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#95d6eb60]]
dragOperationChanged 
12[[#95d6eb60]]
dragOver