Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
21 | 2 | 6 | 0.988 | statement_sequence[8] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 21 | 242 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/EditVariableEntryDialog.java |
2 | 21 | 380 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceAttachmentBlock.java |
| ||||
String varName = filePath.segment(0); if (varName == null) { status.setError(NewWizardMessages.EditVariableEntryDialog_filename_error_notvalid); return status; } fFileVariablePath = JavaCore.getClasspathVariable(varName); if (fFileVariablePath == null) { status.setError(NewWizardMessages.EditVariableEntryDialog_filename_error_varnotexists); return status; } resolvedPath = fFileVariablePath.append(filePath.removeFirstSegments(1)); if (resolvedPath.isEmpty()) { status.setWarning(NewWizardMessages.EditVariableEntryDialog_filename_warning_varempty); return status; } File file = resolvedPath.toFile(); if ( !file.isFile()) { String message = Messages.format(NewWizardMessages.EditVariableEntryDialog_filename_error_filenotexists, resolvedPath.toOSString()); status.setInfo(message); return status; } |
| ||||
String varName = filePath.segment(0); if (varName == null) { status.setError(NewWizardMessages.SourceAttachmentBlock_filename_error_notvalid); return status; } fFileVariablePath = JavaCore.getClasspathVariable(varName); if (fFileVariablePath == null) { status.setError(NewWizardMessages.SourceAttachmentBlock_filename_error_varnotexists); return status; } resolvedPath = fFileVariablePath.append(filePath.removeFirstSegments(1)); if (resolvedPath.isEmpty()) { status.setWarning(NewWizardMessages.SourceAttachmentBlock_filename_warning_varempty); return status; } File file = resolvedPath.toFile(); if ( !file.exists()) { String message = Messages.format(NewWizardMessages.SourceAttachmentBlock_filename_error_filenotexists, resolvedPath.toOSString()); status.setWarning(message); return status; } |
| |||
String varName = filePath.segment(0); if (varName == null) { status.setError(NewWizardMessages. [[#variable9823aac0]]); return status; } fFileVariablePath = JavaCore.getClasspathVariable(varName); if (fFileVariablePath == null) { status.setError(NewWizardMessages. [[#variable9823aa00]]); return status; } resolvedPath = fFileVariablePath.append(filePath.removeFirstSegments(1)); if (resolvedPath.isEmpty()) { status.setWarning(NewWizardMessages. [[#variable9823aa60]]); return status; } File file = resolvedPath.toFile(); if ( !file. [[#variablebb03b780]]()) { String message = Messages.format(NewWizardMessages. [[#variableb71be7c0]], resolvedPath.toOSString()); status. [[#variable9823aa40]](message); return status; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#9823aac0]] | EditVariableEntryDialog_filename_error_notvalid |
1 | 2 | [[#9823aac0]] | SourceAttachmentBlock_filename_error_notvalid |
2 | 1 | [[#9823aa00]] | EditVariableEntryDialog_filename_error_varnotexists |
2 | 2 | [[#9823aa00]] | SourceAttachmentBlock_filename_error_varnotexists |
3 | 1 | [[#9823aa60]] | EditVariableEntryDialog_filename_warning_varempty |
3 | 2 | [[#9823aa60]] | SourceAttachmentBlock_filename_warning_varempty |
4 | 1 | [[#bb03b780]] | isFile |
4 | 2 | [[#bb03b780]] | exists |
5 | 1 | [[#b71be7c0]] | EditVariableEntryDialog_filename_error_filenotexists |
5 | 2 | [[#b71be7c0]] | SourceAttachmentBlock_filename_error_filenotexists |
6 | 1 | [[#9823aa40]] | setInfo |
6 | 2 | [[#9823aa40]] | setWarning |