| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 9 | 4 | 3 | 0.970 | statement_sequence[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 9 | 200 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/navigator/JavaDropAdapterAssistant.java |
| 2 | 9 | 227 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/navigator/JavaDropAdapterAssistant.java |
| 3 | 9 | 175 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/SelectionTransferDropAdapter.java |
| 4 | 9 | 212 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/SelectionTransferDropAdapter.java |
| ||||
if ( !canCopyElements())
return DND.DROP_NONE;
if (target instanceof IResource && fCopyProcessor != null && fCopyProcessor.setDestination((IResource) target).isOK())
return DND.DROP_COPY;
else if (target instanceof IJavaElement && fCopyProcessor != null && fCopyProcessor.setDestination((IJavaElement) target).isOK())
return DND.DROP_COPY;
else
return DND.DROP_NONE;
|
| ||||
//}
if ( !canMoveElements())
return DND.DROP_NONE;
if (target instanceof IResource && fMoveProcessor != null && fMoveProcessor.setDestination((IResource) target).isOK())
return DND.DROP_MOVE;
else if (target instanceof IJavaElement && fMoveProcessor != null && fMoveProcessor.setDestination((IJavaElement) target).isOK())
return DND.DROP_MOVE;
else
return DND.DROP_NONE;
|
| ||||
if ( !canMoveElements())
return DND.DROP_NONE;
if (target instanceof IResource && fMoveProcessor != null && fMoveProcessor.setDestination((IResource) target).isOK())
return DND.DROP_MOVE;
else if (target instanceof IJavaElement && fMoveProcessor != null && fMoveProcessor.setDestination((IJavaElement) target).isOK())
return DND.DROP_MOVE;
else
return DND.DROP_NONE;
|
| ||||
if ( !canCopyElements())
return DND.DROP_NONE;
if (target instanceof IResource && fCopyProcessor != null && fCopyProcessor.setDestination((IResource) target).isOK())
return DND.DROP_COPY;
else if (target instanceof IJavaElement && fCopyProcessor != null && fCopyProcessor.setDestination((IJavaElement) target).isOK())
return DND.DROP_COPY;
else
return DND.DROP_NONE;
|
| |||
//}
if ( ! [[#variable5d523d20]]())
return DND.DROP_NONE;
if (target instanceof IResource && [[#variableb556a880]]!= null && [[#variableb556a880]].setDestination((IResource) target).isOK())
return DND. [[#variable5d523ce0]];
else
if (target instanceof IJavaElement && [[#variableb556a880]]!= null && [[#variableb556a880]].setDestination((IJavaElement) target).isOK())
return DND. [[#variable5d523ce0]];
else
return DND.DROP_NONE;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#5d523d20]] | canMoveElements |
| 1 | 2 | [[#5d523d20]] | canCopyElements |
| 1 | 3 | [[#5d523d20]] | canCopyElements |
| 1 | 4 | [[#5d523d20]] | canMoveElements |
| 2 | 1 | [[#b556a880]] | fMoveProcessor |
| 2 | 2 | [[#b556a880]] | fCopyProcessor |
| 2 | 3 | [[#b556a880]] | fCopyProcessor |
| 2 | 4 | [[#b556a880]] | fMoveProcessor |
| 3 | 1 | [[#5d523ce0]] | DROP_MOVE |
| 3 | 2 | [[#5d523ce0]] | DROP_COPY |
| 3 | 3 | [[#5d523ce0]] | DROP_COPY |
| 3 | 4 | [[#5d523ce0]] | DROP_MOVE |