Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 2 | 0.984 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 161 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/workingsets/WorkingSetModel.java |
2 | 5 | 168 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/workingsets/WorkingSetModel.java |
| ||||
private void addElement(IAdaptable element, IWorkingSet ws) { addToMap(fElementToWorkingSet, element, ws); IResource resource = (IResource) element.getAdapter(IResource.class ); if (resource != null) { addToMap(fResourceToWorkingSet, resource, ws); } } |
| ||||
private void removeElement(IAdaptable element, IWorkingSet ws) { removeFromMap(fElementToWorkingSet, element, ws); IResource resource = (IResource) element.getAdapter(IResource.class ); if (resource != null) { removeFromMap(fResourceToWorkingSet, resource, ws); } } |
| |||
private void [[#variable98837480]](IAdaptable element, IWorkingSet ws) { [[#variable98837400]](fElementToWorkingSet, element, ws); IResource resource = (IResource) element.getAdapter(IResource.class ); if (resource != null) { [[#variable98837400]](fResourceToWorkingSet, resource, ws); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#98837480]] | addElement |
1 | 2 | [[#98837480]] | removeElement |
2 | 1 | [[#98837400]] | addToMap |
2 | 2 | [[#98837400]] | removeFromMap |