Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
19 | 2 | 2 | 0.997 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 19 | 322 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/CallHierarchyViewPart.java |
2 | 19 | 737 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.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)); } |
| ||||
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)); } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#98240420]] | StructuredViewer |
1 | 2 | [[#98240420]] | AbstractTreeViewer |
2 | 1 | [[#73029fc0]] | CallHierarchyTransferDropAdapter |
2 | 2 | [[#73029fc0]] | TypeHierarchyTransferDropAdapter |