CloneSet1279


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14240.989statement_sequence[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114587
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarManifestWizardPage.java
214296
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarOptionsPage.java
Clone Instance
1
Line Count
14
Source Line
587
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarManifestWizardPage.java

                                IPath location = fJarPackage.getManifestLocation();
                                if ( !location.toString().startsWith("/")) { //$NON-NLS-1$
                                        setErrorMessage(JarPackagerMessages.JarManifestWizardPage_error_manifestPathMustBeAbsolute);
                                        return false;
                                }
                                IResource resource = findResource(location);
                                if (resource != null && resource.getType() != IResource.FILE) {
                                        setErrorMessage(JarPackagerMessages.JarManifestWizardPage_error_manifestMustNotBeExistingContainer);
                                        return false;
                                }
                                resource = findResource(location.removeLastSegments(1));
                                if (resource == null || resource.getType() == IResource.FILE) {
                                        setErrorMessage(JarPackagerMessages.JarManifestWizardPage_error_manifestContainerDoesNotExist);
                                        return false;
                                }


Clone Instance
2
Line Count
14
Source Line
296
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarOptionsPage.java

                        IPath location = fJarPackage.getDescriptionLocation();
                        if ( !location.toString().startsWith("/")) { //$NON-NLS-1$
                                setErrorMessage(JarPackagerMessages.JarOptionsPage_error_descriptionMustBeAbsolute);
                                return false;
                        }
                        IResource resource = findResource(location);
                        if (resource != null && resource.getType() != IResource.FILE) {
                                setErrorMessage(JarPackagerMessages.JarOptionsPage_error_descriptionMustNotBeExistingContainer);
                                return false;
                        }
                        resource = findResource(location.removeLastSegments(1));
                        if (resource == null || resource.getType() == IResource.FILE) {
                                setErrorMessage(JarPackagerMessages.JarOptionsPage_error_descriptionContainerDoesNotExist);
                                return false;
                        }


Clone AbstractionParameter Count: 4Parameter Bindings

IPath location = fJarPackage. [[#variable5bde0a60]]();
if ( !location.toString().startsWith("/")) { //$NON-NLS-1$
  setErrorMessage(JarPackagerMessages. [[#variable63401c60]]);
  return false;
}
IResource resource = findResource(location);
if (resource != null && resource.getType() != IResource.FILE) {
  setErrorMessage(JarPackagerMessages. [[#variableb88d6720]]);
  return false;
}
resource = findResource(location.removeLastSegments(1));
if (resource == null || resource.getType() == IResource.FILE) {
  setErrorMessage(JarPackagerMessages. [[#variable5bde09e0]]);
  return false;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5bde0a60]]
getDescriptionLocation 
12[[#5bde0a60]]
getManifestLocation 
21[[#63401c60]]
JarOptionsPage_error_descriptionMustBeAbsolute 
22[[#63401c60]]
JarManifestWizardPage_error_manifestPathMustBeAbsolute 
31[[#b88d6720]]
JarOptionsPage_error_descriptionMustNotBeExistingContainer 
32[[#b88d6720]]
JarManifestWizardPage_error_manifestMustNotBeExistingContainer 
41[[#5bde09e0]]
JarOptionsPage_error_descriptionContainerDoesNotExist 
42[[#5bde09e0]]
JarManifestWizardPage_error_manifestContainerDoesNotExist