CloneSet889


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9430.970statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19200
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/navigator/JavaDropAdapterAssistant.java
29227
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/navigator/JavaDropAdapterAssistant.java
39175
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/SelectionTransferDropAdapter.java
49212
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/SelectionTransferDropAdapter.java
Clone Instance
1
Line Count
9
Source Line
200
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/navigator/JavaDropAdapterAssistant.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;


Clone Instance
2
Line Count
9
Source Line
227
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/navigator/JavaDropAdapterAssistant.java

                //}

                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;


Clone Instance
3
Line Count
9
Source Line
175
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/SelectionTransferDropAdapter.java

                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;


Clone Instance
4
Line Count
9
Source Line
212
Source File
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;


Clone AbstractionParameter Count: 3Parameter Bindings

//}
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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5d523d20]]
canMoveElements 
12[[#5d523d20]]
canCopyElements 
13[[#5d523d20]]
canCopyElements 
14[[#5d523d20]]
canMoveElements 
21[[#b556a880]]
fMoveProcessor 
22[[#b556a880]]
fCopyProcessor 
23[[#b556a880]]
fCopyProcessor 
24[[#b556a880]]
fMoveProcessor 
31[[#5d523ce0]]
DROP_MOVE 
32[[#5d523ce0]]
DROP_COPY 
33[[#5d523ce0]]
DROP_COPY 
34[[#5d523ce0]]
DROP_MOVE