CloneSet665


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9540.952class_body_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19138
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/JavaElementResourceMapping.java
29157
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/JavaElementResourceMapping.java
39254
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/JavaElementResourceMapping.java
49272
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/JavaElementResourceMapping.java
5987
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/HierarchicalDecorationContext.java
Clone Instance
1
Line Count
9
Source Line
138
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/JavaElementResourceMapping.java

                public Object getModelObject() {
                        return fProject;
                }

                public IProject[] getProjects() {
                        return new IProject[] {
                                               fProject.getProject()
                                              };
                }

                public ResourceTraversal[] getTraversals(ResourceMappingContext context, IProgressMonitor monitor) throws CoreException {
                        return new ResourceTraversal[] {
                                new ResourceTraversal(new IResource[] {
                                                                       fProject.getProject()
                                                                      },                       IResource.DEPTH_INFINITE, 0)
                                                       };
                }


Clone Instance
2
Line Count
9
Source Line
157
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/JavaElementResourceMapping.java

                public Object getModelObject() {
                        return fRoot;
                }

                public IProject[] getProjects() {
                        return new IProject[] {
                                               fRoot.getJavaProject().getProject()
                                              };
                }

                public ResourceTraversal[] getTraversals(ResourceMappingContext context, IProgressMonitor monitor) throws CoreException {
                        return new ResourceTraversal[] {
                                new ResourceTraversal(new IResource[] {
                                                                       fRoot.getResource()
                                                                      },                     IResource.DEPTH_INFINITE, 0)
                                                       };
                }


Clone Instance
3
Line Count
9
Source Line
254
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/JavaElementResourceMapping.java

                public Object getModelObject() {
                        return fUnit;
                }

                public IProject[] getProjects() {
                        return new IProject[] {
                                               fUnit.getJavaProject().getProject()
                                              };
                }

                public ResourceTraversal[] getTraversals(ResourceMappingContext context, IProgressMonitor monitor) throws CoreException {
                        return new ResourceTraversal[] {
                                new ResourceTraversal(new IResource[] {
                                                                       fUnit.getResource()
                                                                      },                     IResource.DEPTH_ONE, 0)
                                                       };
                }


Clone Instance
4
Line Count
9
Source Line
272
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/JavaElementResourceMapping.java

                public Object getModelObject() {
                        return fClassFile;
                }

                public IProject[] getProjects() {
                        return new IProject[] {
                                                fClassFile.getJavaProject().getProject()
                                              };
                }

                public ResourceTraversal[] getTraversals(ResourceMappingContext context, IProgressMonitor monitor) throws CoreException {
                        return new ResourceTraversal[] {
                                new ResourceTraversal(new IResource[] {
                                                                       fClassFile.getResource()
                                                                      },                          IResource.DEPTH_ONE, 0)
                                                       };
                }


Clone Instance
5
Line Count
9
Source Line
87
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/HierarchicalDecorationContext.java

                public Object getModelObject() {
                        return fPack;
                }

                public IProject[] getProjects() {
                        return new IProject[] {
                                               fPack.getJavaProject().getProject()
                                              };
                }

                public ResourceTraversal[] getTraversals(ResourceMappingContext context, IProgressMonitor monitor) throws CoreException {
                        return new ResourceTraversal[] {
                                new ResourceTraversal(new IResource[] {
                                                                       fPack.getResource()
                                                                      },                     IResource.DEPTH_INFINITE, 0)
                                                       };
                }


Clone AbstractionParameter Count: 4Parameter Bindings

public Object getModelObject() {
  return [[#variablec074cea0]];
}

public IProject[] getProjects() {
  return new IProject[] {
                           [[#variablec0703f20]].getProject()
                        };
}

public ResourceTraversal[] getTraversals(ResourceMappingContext context, IProgressMonitor monitor) throws CoreException {
  return new ResourceTraversal[] {
                                   new ResourceTraversal(new IResource[] {
                                                                            [[#variablec074cea0]]. [[#variablec074cae0]]()
                                                                         }, IResource. [[#variablec074cec0]], 0)
                                 };
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#c074cea0]]
fPack 
12[[#c074cea0]]
fProject 
13[[#c074cea0]]
fRoot 
14[[#c074cea0]]
fUnit 
15[[#c074cea0]]
fClassFile 
21[[#c0703f20]]
fPack.getJavaProject() 
22[[#c0703f20]]
fProject 
23[[#c0703f20]]
fRoot.getJavaProject() 
24[[#c0703f20]]
fUnit.getJavaProject() 
25[[#c0703f20]]
fClassFile.getJavaProject() 
31[[#c074cae0]]
getResource 
32[[#c074cae0]]
getProject 
33[[#c074cae0]]
getResource 
34[[#c074cae0]]
getResource 
35[[#c074cae0]]
getResource 
41[[#c074cec0]]
DEPTH_INFINITE 
42[[#c074cec0]]
DEPTH_INFINITE 
43[[#c074cec0]]
DEPTH_INFINITE 
44[[#c074cec0]]
DEPTH_ONE 
45[[#c074cec0]]
DEPTH_ONE