CloneSet972


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
24220.995statement_sequence[8]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
124171
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/launchConfigurations/AppletMainTab.java
223171
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/launchConfigurations/JavaMainTab.java
Clone Instance
1
Line Count
24
Source Line
171
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/launchConfigurations/AppletMainTab.java

                SelectionDialog dialog = null;
                try {
                        dialog = JavaUI.createTypeDialog(
                                        getShell(), 
                                        getLaunchConfigurationDialog(), 
                                        SearchEngine.createJavaSearchScope(types), 
                                        IJavaElementSearchConstants.CONSIDER_CLASSES, 
                                        false, 
                                        "**"            ); //$NON-NLS-1$
                } //end try 
                catch (JavaModelException e) {
                        setErrorMessage(e.getMessage());
                        return;
                } //end catch
                dialog.setTitle(LauncherMessages.appletlauncher_maintab_selection_applet_dialog_title);
                dialog.setMessage(LauncherMessages.appletlauncher_maintab_selection_applet_dialog_message);
                if (dialog.open() == Window.CANCEL) {
                        return;
                } //end if
                Object[] results = dialog.getResult();
                IType type = (IType) results[0];
                if (type != null) {
                        fMainText.setText(type.getFullyQualifiedName());
                        fProjText.setText(type.getJavaProject().getElementName());
                } //end if


Clone Instance
2
Line Count
23
Source Line
171
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/launchConfigurations/JavaMainTab.java

                SelectionDialog dialog = null;
                try {
                        dialog = JavaUI.createTypeDialog(
                                                getShell(), 
                                                getLaunchConfigurationDialog(), 
                                                SearchEngine.createJavaSearchScope(types), 
                                                IJavaElementSearchConstants.CONSIDER_CLASSES, 
                                                false, 
                                                "**"    ); //$NON-NLS-1$
                } catch (JavaModelException e) {
                        setErrorMessage(e.getMessage());
                        return;
                  }      //end catch
                dialog.setTitle(LauncherMessages.JavaMainTab_Choose_Main_Type_11);
                dialog.setMessage(LauncherMessages.JavaMainTab_Choose_a_main__type_to_launch__12);
                if (dialog.open() == Window.CANCEL) {
                        return;
                } //end if
                Object[] results = dialog.getResult();
                IType type = (IType) results[0];
                if (type != null) {
                        fMainText.setText(type.getFullyQualifiedName());
                        fProjText.setText(type.getJavaProject().getElementName());
                } //end if


Clone AbstractionParameter Count: 2Parameter Bindings

SelectionDialog dialog = null;
try {
  dialog = JavaUI.createTypeDialog(getShell(), getLaunchConfigurationDialog(), SearchEngine.createJavaSearchScope(types), IJavaElementSearchConstants.CONSIDER_CLASSES, false, "**"); //$NON-NLS-1$
} //end try 
catch (JavaModelException e) {
  setErrorMessage(e.getMessage());
  return;
} //end catch
dialog.setTitle(LauncherMessages. [[#variableb1e84380]]);
dialog.setMessage(LauncherMessages. [[#variableb1e84320]]);
if (dialog.open() == Window.CANCEL) {
  return;
} //end if
Object[] results = dialog.getResult();
IType type = (IType) results[0];
if (type != null) {
  fMainText.setText(type.getFullyQualifiedName());
  fProjText.setText(type.getJavaProject().getElementName());
} //end if
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b1e84380]]
appletlauncher_maintab_selection_applet_dialog_title 
12[[#b1e84380]]
JavaMainTab_Choose_Main_Type_11 
21[[#b1e84320]]
appletlauncher_maintab_selection_applet_dialog_message 
22[[#b1e84320]]
JavaMainTab_Choose_a_main__type_to_launch__12