CloneSet1141


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10240.983statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11047
plugins/org.eclipse.jdt.launching.macosx/macosx/org/eclipse/jdt/internal/ui/macbundler/BundleWizardPage2.java
21060
plugins/org.eclipse.jdt.launching.macosx/macosx/org/eclipse/jdt/internal/ui/macbundler/BundleWizardPage2.java
Clone Instance
1
Line Count
10
Source Line
47
Source File
plugins/org.eclipse.jdt.launching.macosx/macosx/org/eclipse/jdt/internal/ui/macbundler/BundleWizardPage2.java

                        final Button addButton1 = createButton(c1, SWT.NONE, Util.getString("page2.addFile.button.label")); //$NON-NLS-1$
                        addButton1.addSelectionListener(new SelectionAdapter() {
                                public void widgetSelected(SelectionEvent e) {
                                        FileDialog fd = new FileDialog(addButton1.getShell(), SWT.OPEN);
                                        fd.setText(Util.getString("page2.chooseFileDialog.title")); //$NON-NLS-1$
                                        String path = fd.open();
                                        if (path != null) {
                                                ResourceInfo ri = new ResourceInfo(path);
                                                fBundleDescription.addResource(ri, onClasspath);
                                                add(table, ri);
                                        }
                                }
                                                        } );


Clone Instance
2
Line Count
10
Source Line
60
Source File
plugins/org.eclipse.jdt.launching.macosx/macosx/org/eclipse/jdt/internal/ui/macbundler/BundleWizardPage2.java

                        final Button addButton2 = createButton(c1, SWT.NONE, Util.getString("page2.addFolder.button.label")); //$NON-NLS-1$
                        addButton2.addSelectionListener(new SelectionAdapter() {
                                public void widgetSelected(SelectionEvent e) {
                                        DirectoryDialog fd = new DirectoryDialog(addButton2.getShell(), SWT.OPEN);
                                        fd.setText(Util.getString("page2.chooseFolder.dialog.title")); //$NON-NLS-1$
                                        String path = fd.open();
                                        if (path != null) {
                                                ResourceInfo ri = new ResourceInfo(path);
                                                fBundleDescription.addResource(ri, onClasspath);
                                                add(table, ri);
                                        }
                                }
                                                        } );


Clone AbstractionParameter Count: 4Parameter Bindings

final Button  [[#variableb489ee80]]= createButton(c1, SWT.NONE, Util.getString( [[#variable4cf73160]])); //$NON-NLS-1$
 [[#variableb489ee80]].addSelectionListener(new SelectionAdapter() {
                                              public void widgetSelected(SelectionEvent e) {
                                                 [[#variableb489ee20]] fd = new [[#variableb489ee20]]( [[#variableb489ee80]].getShell(), SWT.OPEN);
                                                fd.setText(Util.getString( [[#variableb4b00940]])); //$NON-NLS-1$
                                                String path = fd.open();
                                                if (path != null) {
                                                  ResourceInfo ri = new ResourceInfo(path);
                                                  fBundleDescription.addResource(ri, onClasspath);
                                                  add(table, ri);
                                                }
                                              }
                                            } );
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b489ee80]]
addButton1 
12[[#b489ee80]]
addButton2 
21[[#4cf73160]]
"page2.addFile.button.label" 
22[[#4cf73160]]
"page2.addFolder.button.label" 
31[[#b489ee20]]
FileDialog 
32[[#b489ee20]]
DirectoryDialog 
41[[#b4b00940]]
"page2.chooseFileDialog.title" 
42[[#b4b00940]]
"page2.chooseFolder.dialog.title"