Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
26 | 2 | 2 | 0.991 | class_body_declarations[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 26 | 29 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesViewTableViewer.java |
2 | 33 | 34 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesViewTreeViewer.java |
| ||||
public PackagesViewTableViewer(Composite parent, int style) { super(parent, style); } public void mapElement(Object element, Widget item) { if (element instanceof LogicalPackage && item instanceof Item) { LogicalPackage cp = (LogicalPackage) element; IPackageFragment[] fragments = cp.getFragments(); for (int i = 0; i < fragments.length; i++) { IPackageFragment fragment = fragments[i]; fResourceToItemsMapper.addToMap(fragment, (Item) item); } } super.mapElement(element, item); } public void unmapElement(Object element, Widget item) { if (element instanceof LogicalPackage && item instanceof Item) { LogicalPackage cp = (LogicalPackage) element; IPackageFragment[] fragments = cp.getFragments(); for (int i = 0; i < fragments.length; i++) { IPackageFragment fragment = fragments[i]; fResourceToItemsMapper.removeFromMap(fragment, (Item) item); } } super.unmapElement(element, item); } |
| ||||
public PackagesViewTreeViewer(Composite parent, int style) { super(parent, style); } /* * @see org.eclipse.jface.viewers.StructuredViewer#mapElement(java.lang.Object, org.eclipse.swt.widgets.Widget) */ public void mapElement(Object element, Widget item) { if (element instanceof LogicalPackage && item instanceof Item) { LogicalPackage cp = (LogicalPackage) element; IPackageFragment[] fragments = cp.getFragments(); for (int i = 0; i < fragments.length; i++) { IPackageFragment fragment = fragments[i]; fResourceToItemsMapper.addToMap(fragment, (Item) item); } } super.mapElement(element, item); } /* * @see org.eclipse.jface.viewers.StructuredViewer#unmapElement(java.lang.Object, org.eclipse.swt.widgets.Widget) */ public void unmapElement(Object element, Widget item) { if (element instanceof LogicalPackage && item instanceof Item) { LogicalPackage cp = (LogicalPackage) element; IPackageFragment[] fragments = cp.getFragments(); for (int i = 0; i < fragments.length; i++) { IPackageFragment fragment = fragments[i]; fResourceToItemsMapper.removeFromMap((Object) fragment, (Item) item); } } super.unmapElement(element, item); } |
| |||
public [[#variablebda23560]](Composite parent, int style) { super(parent, style); } /* * @see org.eclipse.jface.viewers.StructuredViewer#mapElement(java.lang.Object, org.eclipse.swt.widgets.Widget) */ public void mapElement(Object element, Widget item) { if (element instanceof LogicalPackage && item instanceof Item) { LogicalPackage cp = (LogicalPackage) element; IPackageFragment[] fragments = cp.getFragments(); for (int i = 0; i < fragments.length; i++) { IPackageFragment fragment = fragments[i]; fResourceToItemsMapper.addToMap(fragment, (Item) item); } } super.mapElement(element, item); } /* * @see org.eclipse.jface.viewers.StructuredViewer#unmapElement(java.lang.Object, org.eclipse.swt.widgets.Widget) */ public void unmapElement(Object element, Widget item) { if (element instanceof LogicalPackage && item instanceof Item) { LogicalPackage cp = (LogicalPackage) element; IPackageFragment[] fragments = cp.getFragments(); for (int i = 0; i < fragments.length; i++) { IPackageFragment fragment = fragments[i]; fResourceToItemsMapper.removeFromMap( [[#variablebda235e0]], (Item) item); } } super.unmapElement(element, item); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#bda23560]] | PackagesViewTableViewer |
1 | 2 | [[#bda23560]] | PackagesViewTreeViewer |
2 | 1 | [[#bda235e0]] | fragment |
2 | 2 | [[#bda235e0]] | (Object) fragment |