CloneSet701


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13310.995class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11396
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FindDeclarationsInWorkingSetAction.java
21395
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FindImplementorsInWorkingSetAction.java
31396
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FindReferencesInWorkingSetAction.java
Clone Instance
1
Line Count
13
Source Line
96
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FindDeclarationsInWorkingSetAction.java

        QuerySpecification createQuery(IJavaElement element) throws JavaModelException {
                JavaSearchScopeFactory factory = JavaSearchScopeFactory.getInstance();

                IWorkingSet[] workingSets = fWorkingSet;
                if (fWorkingSet == null) {
                        workingSets = factory.queryWorkingSets();
                        if (workingSets == null)
                                return null;
                }
                SearchUtil.updateLRUWorkingSets(workingSets);
                IJavaSearchScope scope = factory.createJavaSearchScope(workingSets, true);
                String description = factory.getWorkingSetScopeDescription(workingSets, true);
                return new ElementQuerySpecification(element, getLimitTo(), scope, description);
        }


Clone Instance
2
Line Count
13
Source Line
95
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FindImplementorsInWorkingSetAction.java

        QuerySpecification createQuery(IJavaElement element) throws JavaModelException {
                JavaSearchScopeFactory factory = JavaSearchScopeFactory.getInstance();

                IWorkingSet[] workingSets = fWorkingSets;
                if (fWorkingSets == null) {
                        workingSets = factory.queryWorkingSets();
                        if (workingSets == null)
                                return null;
                }
                SearchUtil.updateLRUWorkingSets(workingSets);
                IJavaSearchScope scope = factory.createJavaSearchScope(workingSets, true);
                String description = factory.getWorkingSetScopeDescription(workingSets, true);
                return new ElementQuerySpecification(element, getLimitTo(), scope, description);
        }


Clone Instance
3
Line Count
13
Source Line
96
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FindReferencesInWorkingSetAction.java

        QuerySpecification createQuery(IJavaElement element) throws JavaModelException {
                JavaSearchScopeFactory factory = JavaSearchScopeFactory.getInstance();

                IWorkingSet[] workingSets = fWorkingSets;
                if (fWorkingSets == null) {
                        workingSets = factory.queryWorkingSets();
                        if (workingSets == null)
                                return null;
                }
                SearchUtil.updateLRUWorkingSets(workingSets);
                IJavaSearchScope scope = factory.createJavaSearchScope(workingSets, true);
                String description = factory.getWorkingSetScopeDescription(workingSets, true);
                return new ElementQuerySpecification(element, getLimitTo(), scope, description);
        }


Clone AbstractionParameter Count: 1Parameter Bindings

QuerySpecification createQuery(IJavaElement element) throws JavaModelException {
  JavaSearchScopeFactory factory = JavaSearchScopeFactory.getInstance();
  IWorkingSet[] workingSets = [[#variableba746ea0]];
  if ( [[#variableba746ea0]]== null) {
    workingSets = factory.queryWorkingSets();
    if (workingSets == null)
      return null;
  }
  SearchUtil.updateLRUWorkingSets(workingSets);
  IJavaSearchScope scope = factory.createJavaSearchScope(workingSets, true);
  String description = factory.getWorkingSetScopeDescription(workingSets, true);
  return new ElementQuerySpecification(element, getLimitTo(), scope, description);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#ba746ea0]]
fWorkingSets 
12[[#ba746ea0]]
fWorkingSet 
13[[#ba746ea0]]
fWorkingSets