CloneSet648


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19220.997class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
119322
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/CallHierarchyViewPart.java
219737
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java
Clone Instance
1
Line Count
19
Source Line
322
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/CallHierarchyViewPart.java

        private void addDropAdapters(StructuredViewer viewer) {
                Transfer[] transfers = new Transfer[] {
                                                        LocalSelectionTransfer.getInstance()
                                                      };
                int ops = DND.DROP_MOVE|  DND.DROP_COPY|  DND.DROP_LINK|  DND.DROP_DEFAULT;
                TransferDropTargetListener[] dropListeners = new TransferDropTargetListener[] {
                         new CallHierarchyTransferDropAdapter(this, viewer)
                                                                                              };
                viewer.addDropSupport(ops, transfers, new DelegatingDropAdapter(dropListeners));
        }

        private void addDragAdapters(StructuredViewer viewer) {
                int ops = DND.DROP_COPY|  DND.DROP_LINK;
                Transfer[] transfers = new Transfer[] {
                                                        LocalSelectionTransfer.getInstance(), ResourceTransfer.getInstance()
                                                      };
                TransferDragSourceListener[] dragListeners = new TransferDragSourceListener[] {
                         new SelectionTransferDragAdapter(viewer),
                         new ResourceTransferDragAdapter(viewer)
                                                                                              };
                viewer.addDragSupport(ops, transfers, new JdtViewerDragAdapter(viewer, dragListeners));
        }


Clone Instance
2
Line Count
19
Source Line
737
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java

        private void addDropAdapters(AbstractTreeViewer viewer) {
                Transfer[] transfers = new Transfer[] {
                                                        LocalSelectionTransfer.getInstance()
                                                      };
                int ops = DND.DROP_MOVE|  DND.DROP_COPY|  DND.DROP_LINK|  DND.DROP_DEFAULT;
                TransferDropTargetListener[] dropListeners = new TransferDropTargetListener[] {
                         new TypeHierarchyTransferDropAdapter(this, viewer)
                                                                                              };
                viewer.addDropSupport(ops, transfers, new DelegatingDropAdapter(dropListeners));
        }

        private void addDragAdapters(StructuredViewer viewer) {
                int ops = DND.DROP_COPY|  DND.DROP_LINK;
                Transfer[] transfers = new Transfer[] {
                                                        LocalSelectionTransfer.getInstance(), ResourceTransfer.getInstance()
                                                      };
                TransferDragSourceListener[] dragListeners = new TransferDragSourceListener[] {
                         new SelectionTransferDragAdapter(viewer),
                         new ResourceTransferDragAdapter(viewer)
                                                                                              };
                viewer.addDragSupport(ops, transfers, new JdtViewerDragAdapter(viewer, dragListeners));
        }


Clone AbstractionParameter Count: 2Parameter Bindings

private void addDropAdapters( [[#variable98240420]] viewer) {
  Transfer[] transfers = new Transfer[] {
                                          LocalSelectionTransfer.getInstance()
                                        };
  int ops = DND.DROP_MOVE|DND.DROP_COPY|DND.DROP_LINK|DND.DROP_DEFAULT;
  TransferDropTargetListener[] dropListeners = new TransferDropTargetListener[] {
                                                                                  new [[#variable73029fc0]](this, viewer)
                                                                                };
  viewer.addDropSupport(ops, transfers, new DelegatingDropAdapter(dropListeners));
}

private void addDragAdapters(StructuredViewer viewer) {
  int ops = DND.DROP_COPY|DND.DROP_LINK;
  Transfer[] transfers = new Transfer[] {
                                          LocalSelectionTransfer.getInstance(),
                                          ResourceTransfer.getInstance()
                                        };
  TransferDragSourceListener[] dragListeners = new TransferDragSourceListener[] {
                                                                                  new SelectionTransferDragAdapter(viewer),
                                                                                  new ResourceTransferDragAdapter(viewer)
                                                                                };
  viewer.addDragSupport(ops, transfers, new JdtViewerDragAdapter(viewer, dragListeners));
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#98240420]]
StructuredViewer 
12[[#98240420]]
AbstractTreeViewer 
21[[#73029fc0]]
CallHierarchyTransferDropAdapter 
22[[#73029fc0]]
TypeHierarchyTransferDropAdapter