| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 13 | 3 | 1 | 0.995 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 13 | 96 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FindDeclarationsInWorkingSetAction.java |
| 2 | 13 | 95 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FindImplementorsInWorkingSetAction.java |
| 3 | 13 | 96 | 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 = 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);
}
|
| ||||
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);
}
|
| ||||
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);
}
|
| |||
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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#ba746ea0]] | fWorkingSets |
| 1 | 2 | [[#ba746ea0]] | fWorkingSet |
| 1 | 3 | [[#ba746ea0]] | fWorkingSets |