Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 2 | 1 | 0.977 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 126 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ActionDelegateHelper.java |
2 | 32 | 995 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ToggleBreakpointAdapter.java |
| ||||
IClassFile classFile = (IClassFile) editorInput.getAdapter(IClassFile.class ); if (classFile != null) { IJavaElement e = classFile.getElementAt(currentSelection.getOffset()); if (e instanceof IMember) { m = (IMember) e; } } else { IWorkingCopyManager manager = JavaUI.getWorkingCopyManager(); ICompilationUnit unit = manager.getWorkingCopy(editorInput); if (unit != null) { synchronized (unit) { unit.reconcile(ICompilationUnit.NO_AST /*don't create ast*/ , false /*don't force problem detection*/ , null /*use primary owner*/ , null /*no progress monitor*/ ); } IJavaElement e = unit.getElementAt(currentSelection.getOffset()); if (e instanceof IMember) { m = (IMember) e; } } } |
| ||||
IClassFile classFile = (IClassFile) editorInput.getAdapter(IClassFile.class ); if (classFile != null) { IJavaElement e = classFile.getElementAt(offset); if (e instanceof IMember) { m = (IMember) e; } } else { IWorkingCopyManager manager = JavaUI.getWorkingCopyManager(); ICompilationUnit unit = manager.getWorkingCopy(editorInput); if (unit != null) { synchronized (unit) { unit.reconcile(ICompilationUnit.NO_AST /* * don't create * ast */ , false /* * don't * force * problem * detection */ , null /* * use * primary * owner */ , null /* * no * progress * monitor */ ); } IJavaElement e = unit.getElementAt(offset); if (e instanceof IMember) { m = (IMember) e; } } } |
| |||
IClassFile classFile = (IClassFile) editorInput.getAdapter(IClassFile.class ); if (classFile != null) { IJavaElement e = classFile.getElementAt( [[#variable990ff360]]); if (e instanceof IMember) { m = (IMember) e; } } else { IWorkingCopyManager manager = JavaUI.getWorkingCopyManager(); ICompilationUnit unit = manager.getWorkingCopy(editorInput); if (unit != null) { synchronized (unit) { unit.reconcile(ICompilationUnit.NO_AST /*don't create ast*/ /* * don't create * ast */ , false /*don't force problem detection*/ /* * don't * force * problem * detection */ , null /*use primary owner*/ /* * use * primary * owner */ , null /*no progress monitor*/ /* * no * progress * monitor */ ); } IJavaElement e = unit.getElementAt( [[#variable990ff360]]); if (e instanceof IMember) { m = (IMember) e; } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#990ff360]] | currentSelection.getOffset() |
1 | 2 | [[#990ff360]] | offset |