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.975 | statement_sequence[9] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 699 | plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PullUpMemberPage.java |
2 | 11 | 421 | plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PushDownWizard.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); |
| ||||
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); |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#bb54af00]] | createStringMappingForSelectedMembers |
1 | 2 | [[#bb54af00]] | createStringMappingForSelectedElements |
2 | 1 | [[#bb54ade0]] | shellTitle |
2 | 2 | [[#bb54ade0]] | RefactoringMessages.PushDownInputPage_Edit_members |
3 | 1 | [[#bb54ae40]] | labelText |
3 | 2 | [[#bb54ae40]] | RefactoringMessages.PushDownInputPage_Mark_selected_members |
4 | 1 | [[#bb54ad80]] | setActionForInfos |
4 | 2 | [[#bb54ad80]] | setInfoAction |
5 | 1 | [[#bb4ddbe0]] | getSelectedMembers |
5 | 2 | [[#bb4ddbe0]] | getSelectedMemberActionInfos |