Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
25 | 2 | 4 | 0.973 | class_body_declarations[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 25 | 36 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/CallHierarchyTransferDropAdapter.java |
2 | 25 | 36 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyTransferDropAdapter.java |
| ||||
public void validateDrop(Object target, DropTargetEvent event, int operation) { event.detail = DND.DROP_NONE; initializeSelection(); if (target != null) { super.validateDrop(target, event, operation); return; } if (getInputElement(getSelection()) != null) event.detail = OPERATION; } /* (non-Javadoc) * @see org.eclipse.jdt.internal.ui.packageview.SelectionTransferDropAdapter#isEnabled(org.eclipse.swt.dnd.DropTargetEvent) */ public boolean isEnabled(DropTargetEvent event) { return true; } public void drop(Object target, DropTargetEvent event) { if (target != null || event.detail != OPERATION) { super.drop(target, event); return; } IMethod input = getInputElement(getSelection()); fCallHierarchyViewPart.setMethod(input); } |
| ||||
public void validateDrop(Object target, DropTargetEvent event, int operation) { event.detail = DND.DROP_NONE; initializeSelection(); if (target != null) { super.validateDrop(target, event, operation); return; } if (getInputElement(getSelection()) != null) event.detail = TypeHierarchyTransferDropAdapter.OPERATION; } /* (non-Javadoc) * @see org.eclipse.jdt.internal.ui.packageview.SelectionTransferDropAdapter#isEnabled(org.eclipse.swt.dnd.DropTargetEvent) */ public boolean isEnabled(DropTargetEvent event) { return true; } public void drop(Object target, DropTargetEvent event) { if (target != null || event.detail != TypeHierarchyTransferDropAdapter.OPERATION) { super.drop(target, event); return; } IJavaElement input = getInputElement(getSelection()); fTypeHierarchyViewPart.setInputElement(input); } |
| |||
public void validateDrop(Object target, DropTargetEvent event, int operation) { event.detail = DND.DROP_NONE; initializeSelection(); if (target != null) { super.validateDrop(target, event, operation); return; } if (getInputElement(getSelection()) != null) event.detail = [[#variable591c8ea0]]; } /* (non-Javadoc) * @see org.eclipse.jdt.internal.ui.packageview.SelectionTransferDropAdapter#isEnabled(org.eclipse.swt.dnd.DropTargetEvent) */ public boolean isEnabled(DropTargetEvent event) { return true; } public void drop(Object target, DropTargetEvent event) { if (target != null || event.detail != [[#variable591c8ea0]]) { super.drop(target, event); return; } [[#variable591c8e20]] input = getInputElement(getSelection()); [[#variable591c8dc0]]. [[#variable591c8ca0]](input); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#591c8ea0]] | OPERATION |
1 | 2 | [[#591c8ea0]] | TypeHierarchyTransferDropAdapter.OPERATION |
2 | 1 | [[#591c8e20]] | IMethod |
2 | 2 | [[#591c8e20]] | IJavaElement |
3 | 1 | [[#591c8dc0]] | fCallHierarchyViewPart |
3 | 2 | [[#591c8dc0]] | fTypeHierarchyViewPart |
4 | 1 | [[#591c8ca0]] | setMethod |
4 | 2 | [[#591c8ca0]] | setInputElement |