CloneSet2192


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10250.962statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11069
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JUnitCopyAction.java
21077
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/CopyCallHierarchyAction.java
Clone Instance
1
Line Count
10
Source Line
69
Source File
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JUnitCopyAction.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();
                   }


Clone Instance
2
Line Count
10
Source Line
77
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/CopyCallHierarchyAction.java

                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();
                   }


Clone AbstractionParameter Count: 5Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b8c7fd80]]
buf.toString() 
12[[#b8c7fd80]]
source 
21[[#b8c7fd20]]
getViewSite 
22[[#b8c7fd20]]
getComposite 
31[[#b8c7fd00]]
CallHierarchyMessages 
32[[#b8c7fd00]]
JUnitMessages 
41[[#b8c7fc60]]
CopyCallHierarchyAction_problem 
42[[#b8c7fc60]]
CopyTraceAction_problem 
51[[#9be0bd80]]
CopyCallHierarchyAction_clipboard_busy 
52[[#9be0bd80]]
CopyTraceAction_clipboard_busy