Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 4 | 3 | 0.951 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 171 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/navigator/JavaDropAdapterAssistant.java |
2 | 10 | 183 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/navigator/JavaDropAdapterAssistant.java |
3 | 10 | 195 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/SelectionTransferDropAdapter.java |
4 | 10 | 232 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/SelectionTransferDropAdapter.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()); } |
| ||||
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()); } |
| ||||
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()); } |
| ||||
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()); } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#ba6159c0]] | handleDropCopy |
1 | 2 | [[#ba6159c0]] | handleDropMove |
1 | 3 | [[#ba6159c0]] | handleDropCopy |
1 | 4 | [[#ba6159c0]] | handleDropMove |
2 | 1 | [[#ba615920]] | final Object target |
2 | 2 | [[#ba615920]] | final Object target |
2 | 3 | [[#ba615920]] | final Object target, DropTargetEvent event |
2 | 4 | [[#ba615920]] | final Object target, DropTargetEvent event |
3 | 1 | [[#ba615880]] | ReorgCopyStarter |
3 | 2 | [[#ba615880]] | ReorgMoveStarter |
3 | 3 | [[#ba615880]] | ReorgCopyStarter |
3 | 4 | [[#ba615880]] | ReorgMoveStarter |