Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
24 | 2 | 2 | 0.995 | statement_sequence[8] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 24 | 171 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/launchConfigurations/AppletMainTab.java |
2 | 23 | 171 | 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$ } //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 |
| ||||
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 |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b1e84380]] | appletlauncher_maintab_selection_applet_dialog_title |
1 | 2 | [[#b1e84380]] | JavaMainTab_Choose_Main_Type_11 |
2 | 1 | [[#b1e84320]] | appletlauncher_maintab_selection_applet_dialog_message |
2 | 2 | [[#b1e84320]] | JavaMainTab_Choose_a_main__type_to_launch__12 |