CloneSet790


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15230.994statement_sequence[10]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115166
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/EditVariableEntryDialog.java
215444
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceAttachmentBlock.java
Clone Instance
1
Line Count
15
Source Line
166
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/EditVariableEntryDialog.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;


Clone Instance
2
Line Count
15
Source Line
444
Source File
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, 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;


Clone AbstractionParameter Count: 3Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#564bacc0]]
true 
12[[#564bacc0]]
false 
21[[#9cdf9980]]
SourceAttachmentBlock_extvardialog_title 
22[[#9cdf9980]]
EditVariableEntryDialog_extvardialog_title 
31[[#61623d80]]
SourceAttachmentBlock_extvardialog_description 
32[[#61623d80]]
EditVariableEntryDialog_extvardialog_description