Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
22 | 2 | 1 | 0.959 | statement_sequence[7] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 22 | 120 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/SnippetOpenHierarchyOnSelectionAction.java |
2 | 21 | 82 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/SnippetOpenOnSelectionAction.java |
| ||||
int flags = JavaElementLabelProvider.SHOW_DEFAULT| JavaElementLabelProvider.SHOW_QUALIFIED| JavaElementLabelProvider.SHOW_ROOT; ElementListSelectionDialog dialog = new ElementListSelectionDialog(shell, new JavaElementLabelProvider(flags)); dialog.setTitle(title); dialog.setMessage(message); dialog.setElements(elements.toArray()); if (dialog.open() == Window.OK) { Object[] selection = dialog.getResult(); if (selection != null && selection.length > 0) { nResults = selection.length; for (int i = 0; i < nResults; i++) { Object current = selection[i]; if (current instanceof IJavaElement) { return (IJavaElement) current; } } } } return null; |
| ||||
int flags = JavaElementLabelProvider.SHOW_DEFAULT| JavaElementLabelProvider.SHOW_QUALIFIED| JavaElementLabelProvider.SHOW_ROOT; ElementListSelectionDialog dialog = new ElementListSelectionDialog(shell, new JavaElementLabelProvider(flags)); dialog.setTitle(title); dialog.setMessage(message); dialog.setElements(elements.toArray()); if (dialog.open() == Window.OK) { Object[] selection = dialog.getResult(); if (selection != null && selection.length > 0) { nResults = selection.length; for (int i = 0; i < nResults; i++) { Object current = selection[i]; if (current instanceof IJavaElement) return (IJavaElement) current; } } } return null; |
| |||
int flags = JavaElementLabelProvider.SHOW_DEFAULT|JavaElementLabelProvider.SHOW_QUALIFIED|JavaElementLabelProvider.SHOW_ROOT; ElementListSelectionDialog dialog = new ElementListSelectionDialog(shell, new JavaElementLabelProvider(flags)); dialog.setTitle(title); dialog.setMessage(message); dialog.setElements(elements.toArray()); if (dialog.open() == Window.OK) { Object[] selection = dialog.getResult(); if (selection != null && selection.length > 0) { nResults = selection.length; for (int i = 0; i < nResults; i++) { Object current = selection[i]; if (current instanceof IJavaElement) [[#variable95e37de0]] } } } return null; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#95e37de0]] | { return (IJavaElement) current; } |
1 | 2 | [[#95e37de0]] | return (IJavaElement) current; |