Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 3 | 0.989 | statement_sequence[9] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 229 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/CodeFormatterConfigurationBlock.java |
2 | 13 | 261 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/CodeFormatterConfigurationBlock.java |
| ||||
final FileDialog dialog = new FileDialog(fComposite.getShell(), SWT.SAVE); dialog.setText(FormatterMessages.CodingStyleConfigurationBlock_save_profile_dialog_title); dialog.setFilterExtensions(new String[] { "*.xml" } ); //$NON-NLS-1$ final String lastPath = JavaPlugin.getDefault().getDialogSettings().get(DIALOGSTORE_LASTSAVEPATH); if (lastPath != null) { dialog.setFilterPath(lastPath); } final String path = dialog.open(); if (path == null) return; JavaPlugin.getDefault().getDialogSettings().put(DIALOGSTORE_LASTSAVEPATH, dialog.getFilterPath()); final File file = new File(path); |
| ||||
final FileDialog dialog = new FileDialog(fComposite.getShell(), SWT.OPEN); dialog.setText(FormatterMessages.CodingStyleConfigurationBlock_load_profile_dialog_title); dialog.setFilterExtensions(new String[] { "*.xml" } ); //$NON-NLS-1$ final String lastPath = JavaPlugin.getDefault().getDialogSettings().get(DIALOGSTORE_LASTLOADPATH); if (lastPath != null) { dialog.setFilterPath(lastPath); } final String path = dialog.open(); if (path == null) return; JavaPlugin.getDefault().getDialogSettings().put(DIALOGSTORE_LASTLOADPATH, dialog.getFilterPath()); final File file = new File(path); |
| |||
final FileDialog dialog = new FileDialog(fComposite.getShell(), SWT. [[#variable59c692e0]]); dialog.setText(FormatterMessages. [[#variable9c0904c0]]); dialog.setFilterExtensions(new String[] { "*.xml" } ); //$NON-NLS-1$ final String lastPath = JavaPlugin.getDefault().getDialogSettings().get( [[#variable59c68760]]); if (lastPath != null) { dialog.setFilterPath(lastPath); } final String path = dialog.open(); if (path == null) return; JavaPlugin.getDefault().getDialogSettings().put( [[#variable59c68760]], dialog.getFilterPath()); final File file = new File(path); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#59c692e0]] | OPEN |
1 | 2 | [[#59c692e0]] | SAVE |
2 | 1 | [[#9c0904c0]] | CodingStyleConfigurationBlock_load_profile_dialog_title |
2 | 2 | [[#9c0904c0]] | CodingStyleConfigurationBlock_save_profile_dialog_title |
3 | 1 | [[#59c68760]] | DIALOGSTORE_LASTLOADPATH |
3 | 2 | [[#59c68760]] | DIALOGSTORE_LASTSAVEPATH |