| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 15 | 2 | 3 | 0.994 | statement_sequence[10] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 15 | 166 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/EditVariableEntryDialog.java |
| 2 | 15 | 444 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceAttachmentBlock.java |
| ||||
IPath resolvedPath = getResolvedPath(currPath);
File initialSelection = resolvedPath != null ? resolvedPath.toFile(): null;
String currVariable = currPath.segment(0);
JARFileSelectionDialog dialog = new JARFileSelectionDialog(getShell(), false, false);
dialog.setTitle(NewWizardMessages.EditVariableEntryDialog_extvardialog_title);
dialog.setMessage(NewWizardMessages.EditVariableEntryDialog_extvardialog_description);
dialog.setInput(fFileVariablePath.toFile());
dialog.setInitialSelection(initialSelection);
if (dialog.open() == Window.OK) {
File result = (File) dialog.getResult()[0];
IPath returnPath = Path.fromOSString(result.getPath()).makeAbsolute();
return modifyPath(returnPath, currVariable);
}
return null;
|
| ||||
IPath resolvedPath = getResolvedPath(currPath);
File initialSelection = resolvedPath != null ? resolvedPath.toFile(): null;
String currVariable = currPath.segment(0);
JARFileSelectionDialog dialog = new JARFileSelectionDialog(getShell(), false, true);
dialog.setTitle(NewWizardMessages.SourceAttachmentBlock_extvardialog_title);
dialog.setMessage(NewWizardMessages.SourceAttachmentBlock_extvardialog_description);
dialog.setInput(fFileVariablePath.toFile());
dialog.setInitialSelection(initialSelection);
if (dialog.open() == Window.OK) {
File result = (File) dialog.getResult()[0];
IPath returnPath = Path.fromOSString(result.getPath()).makeAbsolute();
return modifyPath(returnPath, currVariable);
}
return null;
|
| |||
IPath resolvedPath = getResolvedPath(currPath);
File initialSelection = resolvedPath != null ? resolvedPath.toFile(): null;
String currVariable = currPath.segment(0);
JARFileSelectionDialog dialog = new JARFileSelectionDialog(getShell(), false, [[#variable564bacc0]]);
dialog.setTitle(NewWizardMessages. [[#variable9cdf9980]]);
dialog.setMessage(NewWizardMessages. [[#variable61623d80]]);
dialog.setInput(fFileVariablePath.toFile());
dialog.setInitialSelection(initialSelection);
if (dialog.open() == Window.OK) {
File result = (File) dialog.getResult()[0];
IPath returnPath = Path.fromOSString(result.getPath()).makeAbsolute();
return modifyPath(returnPath, currVariable);
}
return null;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#564bacc0]] | true |
| 1 | 2 | [[#564bacc0]] | false |
| 2 | 1 | [[#9cdf9980]] | SourceAttachmentBlock_extvardialog_title |
| 2 | 2 | [[#9cdf9980]] | EditVariableEntryDialog_extvardialog_title |
| 3 | 1 | [[#61623d80]] | SourceAttachmentBlock_extvardialog_description |
| 3 | 2 | [[#61623d80]] | EditVariableEntryDialog_extvardialog_description |