| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 10 | 2 | 4 | 0.983 | statement_sequence[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 10 | 47 | plugins/org.eclipse.jdt.launching.macosx/macosx/org/eclipse/jdt/internal/ui/macbundler/BundleWizardPage2.java |
| 2 | 10 | 60 | 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);
}
}
} );
|
| ||||
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);
}
}
} );
|
| |||
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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#b489ee80]] | addButton1 |
| 1 | 2 | [[#b489ee80]] | addButton2 |
| 2 | 1 | [[#4cf73160]] | "page2.addFile.button.label" |
| 2 | 2 | [[#4cf73160]] | "page2.addFolder.button.label" |
| 3 | 1 | [[#b489ee20]] | FileDialog |
| 3 | 2 | [[#b489ee20]] | DirectoryDialog |
| 4 | 1 | [[#b4b00940]] | "page2.chooseFileDialog.title" |
| 4 | 2 | [[#b4b00940]] | "page2.chooseFolder.dialog.title" |