CloneSet449


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10430.951method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110171
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/navigator/JavaDropAdapterAssistant.java
210183
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/navigator/JavaDropAdapterAssistant.java
310195
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/SelectionTransferDropAdapter.java
410232
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/SelectionTransferDropAdapter.java
Clone Instance
1
Line Count
10
Source Line
171
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/navigator/JavaDropAdapterAssistant.java

        private void handleDropMove( final Object target) throws JavaModelException, InvocationTargetException, InterruptedException {
                IJavaElement[] javaElements = ReorgUtils.getJavaElements(fElements);
                IResource[] resources = ReorgUtils.getResources(fElements);
                ReorgMoveStarter starter = null;
                if (target instanceof IResource)
                        starter = ReorgMoveStarter.create(javaElements, resources, (IResource) target);
                else if (target instanceof IJavaElement)
                        starter = ReorgMoveStarter.create(javaElements, resources, (IJavaElement) target);
                if (starter != null)
                        starter.run(getShell());
        }


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

        private void handleDropCopy( final Object target) throws JavaModelException, InvocationTargetException, InterruptedException {
                IJavaElement[] javaElements = ReorgUtils.getJavaElements(fElements);
                IResource[] resources = ReorgUtils.getResources(fElements);
                ReorgCopyStarter starter = null;
                if (target instanceof IResource)
                        starter = ReorgCopyStarter.create(javaElements, resources, (IResource) target);
                else if (target instanceof IJavaElement)
                        starter = ReorgCopyStarter.create(javaElements, resources, (IJavaElement) target);
                if (starter != null)
                        starter.run(getShell());
        }


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

        private void handleDropMove( final Object target, DropTargetEvent event) throws JavaModelException, InvocationTargetException, InterruptedException {
                IJavaElement[] javaElements = ReorgUtils.getJavaElements(fElements);
                IResource[] resources = ReorgUtils.getResources(fElements);
                ReorgMoveStarter starter = null;
                if (target instanceof IResource)
                        starter = ReorgMoveStarter.create(javaElements, resources, (IResource) target);
                else if (target instanceof IJavaElement)
                        starter = ReorgMoveStarter.create(javaElements, resources, (IJavaElement) target);
                if (starter != null)
                        starter.run(getShell());
        }


Clone Instance
4
Line Count
10
Source Line
232
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/SelectionTransferDropAdapter.java

        private void handleDropCopy( final Object target, DropTargetEvent event) throws JavaModelException, InvocationTargetException, InterruptedException {
                IJavaElement[] javaElements = ReorgUtils.getJavaElements(fElements);
                IResource[] resources = ReorgUtils.getResources(fElements);
                ReorgCopyStarter starter = null;
                if (target instanceof IResource)
                        starter = ReorgCopyStarter.create(javaElements, resources, (IResource) target);
                else if (target instanceof IJavaElement)
                        starter = ReorgCopyStarter.create(javaElements, resources, (IJavaElement) target);
                if (starter != null)
                        starter.run(getShell());
        }


Clone AbstractionParameter Count: 3Parameter Bindings

private void [[#variableba6159c0]]( [[#variableba615920]]) throws JavaModelException, InvocationTargetException, InterruptedException {
  IJavaElement[] javaElements = ReorgUtils.getJavaElements(fElements);
  IResource[] resources = ReorgUtils.getResources(fElements);
   [[#variableba615880]] starter = null;
  if (target instanceof IResource)
    starter = [[#variableba615880]].create(javaElements, resources, (IResource) target);
  else
    if (target instanceof IJavaElement)
      starter = [[#variableba615880]].create(javaElements, resources, (IJavaElement) target);
  if (starter != null)
    starter.run(getShell());
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#ba6159c0]]
handleDropCopy 
12[[#ba6159c0]]
handleDropMove 
13[[#ba6159c0]]
handleDropCopy 
14[[#ba6159c0]]
handleDropMove 
21[[#ba615920]]
final Object target 
22[[#ba615920]]
final Object target 
23[[#ba615920]]
final Object target, DropTargetEvent event 
24[[#ba615920]]
final Object target, DropTargetEvent event 
31[[#ba615880]]
ReorgCopyStarter 
32[[#ba615880]]
ReorgMoveStarter 
33[[#ba615880]]
ReorgCopyStarter 
34[[#ba615880]]
ReorgMoveStarter