CloneSet1239


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13230.989statement_sequence[9]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115229
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/CodeFormatterConfigurationBlock.java
213261
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/CodeFormatterConfigurationBlock.java
Clone Instance
1
Line Count
15
Source Line
229
Source File
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);


Clone Instance
2
Line Count
13
Source Line
261
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/CodeFormatterConfigurationBlock.java

                        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);


Clone AbstractionParameter Count: 3Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#59c692e0]]
OPEN 
12[[#59c692e0]]
SAVE 
21[[#9c0904c0]]
CodingStyleConfigurationBlock_load_profile_dialog_title 
22[[#9c0904c0]]
CodingStyleConfigurationBlock_save_profile_dialog_title 
31[[#59c68760]]
DIALOGSTORE_LASTLOADPATH 
32[[#59c68760]]
DIALOGSTORE_LASTSAVEPATH