CloneSet1589


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14210.997class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114176
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/ReorgQueries.java
214290
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/ReorgQueries.java
Clone Instance
1
Line Count
14
Source Line
176
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/ReorgQueries.java

                private Runnable createQueryRunnable( final String question, final Object[] elements, final int[] result) {
                        return new Runnable() {
                                public void run() {
                                        ListDialog dialog = new YesNoListDialog(fShell, true);
                                        dialog.setAddCancelButton(false);
                                        dialog.setBlockOnOpen(true);
                                        dialog.setContentProvider(new ArrayContentProvider());
                                        dialog.setLabelProvider(new JavaElementLabelProvider());
                                        dialog.setTitle(fDialogTitle);
                                        dialog.setMessage(question);
                                        dialog.setInput(elements);

                                        dialog.open();
                                        result[0] = dialog.getReturnCode();
                                }
                               };
                }


Clone Instance
2
Line Count
14
Source Line
290
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/ReorgQueries.java

                private Runnable createQueryRunnable( final String question, final Object[] elements, final int[] result) {
                        return new Runnable() {
                                public void run() {
                                        ListDialog dialog = new YesNoListDialog(fShell, false);
                                        dialog.setAddCancelButton(false);
                                        dialog.setBlockOnOpen(true);
                                        dialog.setContentProvider(new ArrayContentProvider());
                                        dialog.setLabelProvider(new JavaElementLabelProvider());
                                        dialog.setTitle(fDialogTitle);
                                        dialog.setMessage(question);
                                        dialog.setInput(elements);

                                        dialog.open();
                                        result[0] = dialog.getReturnCode();
                                }
                               };
                }


Clone AbstractionParameter Count: 1Parameter Bindings

private Runnable createQueryRunnable( final String question, final Object[] elements, final int[] result) {
  return new Runnable() {
           public void run() {
             ListDialog dialog = new YesNoListDialog(fShell,  [[#variable754461c0]]);
             dialog.setAddCancelButton(false);
             dialog.setBlockOnOpen(true);
             dialog.setContentProvider(new ArrayContentProvider());
             dialog.setLabelProvider(new JavaElementLabelProvider());
             dialog.setTitle(fDialogTitle);
             dialog.setMessage(question);
             dialog.setInput(elements);
             dialog.open();
             result[0] = dialog.getReturnCode();
           }
         };
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#754461c0]]
true 
12[[#754461c0]]
false