CloneSet896


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
22210.959statement_sequence[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
122120
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/SnippetOpenHierarchyOnSelectionAction.java
22182
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/SnippetOpenOnSelectionAction.java
Clone Instance
1
Line Count
22
Source Line
120
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/SnippetOpenHierarchyOnSelectionAction.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;


Clone Instance
2
Line Count
21
Source Line
82
Source File
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;


Clone AbstractionParameter Count: 1Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#95e37de0]]
{
  return (IJavaElement) current;
} 
12[[#95e37de0]]
return (IJavaElement) current;