CloneSet954


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10250.975statement_sequence[9]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110699
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PullUpMemberPage.java
211421
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PushDownWizard.java
Clone Instance
1
Line Count
10
Source Line
699
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PullUpMemberPage.java

                        final Map stringMapping = createStringMappingForSelectedMembers();
                        final String[] keys = (String[]) stringMapping.keySet().toArray(new String[stringMapping.keySet().size()]);
                        Arrays.sort(keys);
                        final int initialSelectionIndex = getInitialSelectionIndexForEditDialog(stringMapping, keys);
                        final ComboSelectionDialog dialog = new ComboSelectionDialog(getShell(), shellTitle, labelText, keys, initialSelectionIndex);
                        dialog.setBlockOnOpen(true);
                        if (dialog.open() == Window.CANCEL)
                                return;
                        final int action = ((Integer) stringMapping.get(dialog.getSelectedString())).intValue();
                        setActionForInfos(getSelectedMembers(), action);


Clone Instance
2
Line Count
11
Source Line
421
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PushDownWizard.java

                                final Map stringMapping = createStringMappingForSelectedElements();
                                final String[] keys = (String[]) stringMapping.keySet().toArray(new String[stringMapping.keySet().size()]);
                                Arrays.sort(keys);
                                final int initialSelectionIndex = getInitialSelectionIndexForEditDialog(stringMapping, keys);

                                final ComboSelectionDialog dialog = new ComboSelectionDialog(getShell(), RefactoringMessages.PushDownInputPage_Edit_members, RefactoringMessages.PushDownInputPage_Mark_selected_members, keys, initialSelectionIndex);
                                dialog.setBlockOnOpen(true);
                                if (dialog.open() == Window.CANCEL)
                                        return;
                                final int action = ((Integer) stringMapping.get(dialog.getSelectedString())).intValue();
                                setInfoAction(getSelectedMemberActionInfos(), action);


Clone AbstractionParameter Count: 5Parameter Bindings

final Map stringMapping = [[#variablebb54af00]]();
final String[] keys = (String[]) stringMapping.keySet().toArray(new String[stringMapping.keySet().size()]);
Arrays.sort(keys);
final int initialSelectionIndex = getInitialSelectionIndexForEditDialog(stringMapping, keys);
final ComboSelectionDialog dialog = new ComboSelectionDialog(getShell(),  [[#variablebb54ade0]],  [[#variablebb54ae40]], keys, initialSelectionIndex);
dialog.setBlockOnOpen(true);
if (dialog.open() == Window.CANCEL)
  return;
final int action = ((Integer) stringMapping.get(dialog.getSelectedString())).intValue();
 [[#variablebb54ad80]]( [[#variablebb4ddbe0]](), action);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bb54af00]]
createStringMappingForSelectedMembers 
12[[#bb54af00]]
createStringMappingForSelectedElements 
21[[#bb54ade0]]
shellTitle 
22[[#bb54ade0]]
RefactoringMessages.PushDownInputPage_Edit_members 
31[[#bb54ae40]]
labelText 
32[[#bb54ae40]]
RefactoringMessages.PushDownInputPage_Mark_selected_members 
41[[#bb54ad80]]
setActionForInfos 
42[[#bb54ad80]]
setInfoAction 
51[[#bb4ddbe0]]
getSelectedMembers 
52[[#bb4ddbe0]]
getSelectedMemberActionInfos