Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 5 | 0.962 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 69 | plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JUnitCopyAction.java |
2 | 10 | 77 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/CopyCallHierarchyAction.java |
| ||||
TextTransfer plainTextTransfer = TextTransfer.getInstance(); try { fClipboard.setContents( new String[] { convertLineTerminators(source) }, new Transfer[] { plainTextTransfer } ); } catch (SWTError e) { if (e.code != DND.ERROR_CANNOT_SET_CLIPBOARD) throw e; if (MessageDialog.openQuestion(fView.getComposite().getShell(), JUnitMessages.CopyTraceAction_problem, JUnitMessages.CopyTraceAction_clipboard_busy)) run(); } |
| ||||
TextTransfer plainTextTransfer = TextTransfer.getInstance(); try { fClipboard.setContents( new String[] { convertLineTerminators(buf.toString()) }, new Transfer[] { plainTextTransfer } ); } catch (SWTError e) { if (e.code != DND.ERROR_CANNOT_SET_CLIPBOARD) throw e; if (MessageDialog.openQuestion(fView.getViewSite().getShell(), CallHierarchyMessages.CopyCallHierarchyAction_problem, CallHierarchyMessages.CopyCallHierarchyAction_clipboard_busy)) run(); } |
| |||
TextTransfer plainTextTransfer = TextTransfer.getInstance(); try { fClipboard.setContents(new String[] { convertLineTerminators( [[#variableb8c7fd80]]) }, new Transfer[] { plainTextTransfer } ); } catch (SWTError e) { if (e.code != DND.ERROR_CANNOT_SET_CLIPBOARD) throw e; if (MessageDialog.openQuestion(fView. [[#variableb8c7fd20]]().getShell(), [[#variableb8c7fd00]]. [[#variableb8c7fc60]], [[#variableb8c7fd00]]. [[#variable9be0bd80]])) run(); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b8c7fd80]] | buf.toString() |
1 | 2 | [[#b8c7fd80]] | source |
2 | 1 | [[#b8c7fd20]] | getViewSite |
2 | 2 | [[#b8c7fd20]] | getComposite |
3 | 1 | [[#b8c7fd00]] | CallHierarchyMessages |
3 | 2 | [[#b8c7fd00]] | JUnitMessages |
4 | 1 | [[#b8c7fc60]] | CopyCallHierarchyAction_problem |
4 | 2 | [[#b8c7fc60]] | CopyTraceAction_problem |
5 | 1 | [[#9be0bd80]] | CopyCallHierarchyAction_clipboard_busy |
5 | 2 | [[#9be0bd80]] | CopyTraceAction_clipboard_busy |