CloneSet680


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
25210.996class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
124310
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/DetailFormatterDialog.java
225710
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/EditLogicalStructureDialog.java
Clone Instance
1
Line Count
24
Source Line
310
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/DetailFormatterDialog.java

        /**
         * Open the 'select type' dialog, and set the user choice into the formatter.
         */
        private void selectType() {
                Shell shell = getShell();
                SelectionDialog dialog = null;
                try {
                        dialog = JavaUI.createTypeDialog(shell, PlatformUI.getWorkbench().getProgressService(), 
                                 SearchEngine.createWorkspaceScope(), IJavaElementSearchConstants.CONSIDER_ALL_TYPES, false, fTypeNameText.getText());
                } catch (JavaModelException jme) {
                        String title = DebugUIMessages.DetailFormatterDialog_Select_type_6;
                        String message = DebugUIMessages.DetailFormatterDialog_Could_not_open_type_selection_dialog_for_detail_formatters_7;
                        ExceptionHandler.handle(jme, title, message);
                        return;
                  }

                dialog.setTitle(DebugUIMessages.DetailFormatterDialog_Select_type_8);
                dialog.setMessage(DebugUIMessages.DetailFormatterDialog_Select_a_type_to_format_when_displaying_its_detail_9);
                if (dialog.open() == IDialogConstants.CANCEL_ID) {
                        return;
                }

                Object[] types = dialog.getResult();
                if (types != null && types.length > 0) {
                        fType = (IType) types[0];
                        fTypeNameText.setText(fType.getFullyQualifiedName());
                        fTypeSearched = true;
                }
        }


Clone Instance
2
Line Count
25
Source Line
710
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/EditLogicalStructureDialog.java

        /**
         * Open the 'select type' dialog, and set the user choice into the formatter.
         */
        private void selectType() {
                Shell shell = getShell();
                SelectionDialog dialog = null;
                try {
                        dialog = JavaUI.createTypeDialog(shell, PlatformUI.getWorkbench().getProgressService(), 
                                 SearchEngine.createWorkspaceScope(), IJavaElementSearchConstants.CONSIDER_ALL_TYPES, 
                 false                                   , fQualifiedTypeNameText.getText());
                } catch (JavaModelException jme) {
                        String title = DebugUIMessages.DetailFormatterDialog_Select_type_6;
                        String message = DebugUIMessages.DetailFormatterDialog_Could_not_open_type_selection_dialog_for_detail_formatters_7;
                        ExceptionHandler.handle(jme, title, message);
                        return;
                  }

                dialog.setTitle(DebugUIMessages.DetailFormatterDialog_Select_type_8);
                dialog.setMessage(DebugUIMessages.DetailFormatterDialog_Select_a_type_to_format_when_displaying_its_detail_9);
                if (dialog.open() == IDialogConstants.CANCEL_ID) {
                        return;
                }

                Object[] types = dialog.getResult();
                if (types != null && types.length > 0) {
                        fType = (IType) types[0];
                        fQualifiedTypeNameText.setText(fType.getFullyQualifiedName());
                        fTypeSearched = true;
                }
        }


Clone AbstractionParameter Count: 1Parameter Bindings

/**
         * Open the 'select type' dialog, and set the user choice into the formatter.
         */
private void selectType() {
  Shell shell = getShell();
  SelectionDialog dialog = null;
  try {
    dialog = JavaUI.createTypeDialog(shell, PlatformUI.getWorkbench().getProgressService(), SearchEngine.createWorkspaceScope(), IJavaElementSearchConstants.CONSIDER_ALL_TYPES, false,  [[#variable5b589520]].getText());
  }
  catch (JavaModelException jme) {
    String title = DebugUIMessages.DetailFormatterDialog_Select_type_6;
    String message = DebugUIMessages.DetailFormatterDialog_Could_not_open_type_selection_dialog_for_detail_formatters_7;
    ExceptionHandler.handle(jme, title, message);
    return;
  }
  dialog.setTitle(DebugUIMessages.DetailFormatterDialog_Select_type_8);
  dialog.setMessage(DebugUIMessages.DetailFormatterDialog_Select_a_type_to_format_when_displaying_its_detail_9);
  if (dialog.open() == IDialogConstants.CANCEL_ID) {
    return;
  }
  Object[] types = dialog.getResult();
  if (types != null && types.length > 0) {
    fType = (IType) types[0];
     [[#variable5b589520]].setText(fType.getFullyQualifiedName());
    fTypeSearched = true;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5b589520]]
fQualifiedTypeNameText 
12[[#5b589520]]
fTypeNameText