Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
33 | 2 | 6 | 0.986 | class_body_declarations[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 34 | 199 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesViewFlatContentProvider.java |
2 | 33 | 516 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesViewHierarchicalContentProvider.java |
| ||||
private void postAdd( final Object child) { postRunnable(new Runnable() { public void run() { Control ctrl = fViewer.getControl(); if (ctrl != null && !ctrl.isDisposed()) { ((TableViewer) fViewer).add(child); } } } ); } private void postRemove( final Object object) { postRunnable(new Runnable() { public void run() { Control ctrl = fViewer.getControl(); if (ctrl != null && !ctrl.isDisposed()) { ((TableViewer) fViewer).remove(object); } } } ); } private void postRunnable( final Runnable r) { Control ctrl = fViewer.getControl(); if (ctrl != null && !ctrl.isDisposed()) { // fBrowsingPart.setProcessSelectionEvents(false); try { Display currentDisplay = Display.getCurrent(); if (currentDisplay != null && currentDisplay.equals(ctrl.getDisplay())) ctrl.getDisplay().syncExec(r); else ctrl.getDisplay().asyncExec(r); } finally { // fBrowsingPart.setProcessSelectionEvents(true); } } } |
| ||||
private void postRemove( final Object object) { postRunnable(new Runnable() { public void run() { Control ctrl = fViewer.getControl(); if (ctrl != null && !ctrl.isDisposed()) { ((TreeViewer) fViewer).remove(object); } } } ); } private void postRefresh( final Object object) { postRunnable(new Runnable() { public void run() { Control ctrl = fViewer.getControl(); if (ctrl != null && !ctrl.isDisposed()) { ((TreeViewer) fViewer).refresh(object); } } } ); } private void postRunnable( final Runnable r) { Control ctrl = fViewer.getControl(); if (ctrl != null && !ctrl.isDisposed()) { // fBrowsingPart.setProcessSelectionEvents(false); try { Display currentDisplay = Display.getCurrent(); if (currentDisplay != null && currentDisplay.equals(ctrl.getDisplay())) ctrl.getDisplay().syncExec(r); else ctrl.getDisplay().asyncExec(r); } finally { // fBrowsingPart.setProcessSelectionEvents(true); } } } |
| |||
private void [[#variableb3d10420]]( final Object [[#variableb3d10380]]) { postRunnable(new Runnable() { public void run() { Control ctrl = fViewer.getControl(); if (ctrl != null && !ctrl.isDisposed()) { (( [[#variableb3d102e0]]) fViewer). [[#variableb3d102a0]]( [[#variableb3d10380]]); } } } ); } private void [[#variableb3d10240]]( final Object object) { postRunnable(new Runnable() { public void run() { Control ctrl = fViewer.getControl(); if (ctrl != null && !ctrl.isDisposed()) { (( [[#variableb3d102e0]]) fViewer). [[#variableb3d10160]](object); } } } ); } private void postRunnable( final Runnable r) { Control ctrl = fViewer.getControl(); if (ctrl != null && !ctrl.isDisposed()) { // fBrowsingPart.setProcessSelectionEvents(false); try { Display currentDisplay = Display.getCurrent(); if (currentDisplay != null && currentDisplay.equals(ctrl.getDisplay())) ctrl.getDisplay().syncExec(r); else ctrl.getDisplay().asyncExec(r); } finally { // fBrowsingPart.setProcessSelectionEvents(true); } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b3d10420]] | postRemove |
1 | 2 | [[#b3d10420]] | postAdd |
2 | 1 | [[#b3d10380]] | object |
2 | 2 | [[#b3d10380]] | child |
3 | 1 | [[#b3d102e0]] | TreeViewer |
3 | 2 | [[#b3d102e0]] | TableViewer |
4 | 1 | [[#b3d102a0]] | remove |
4 | 2 | [[#b3d102a0]] | add |
5 | 1 | [[#b3d10240]] | postRefresh |
5 | 2 | [[#b3d10240]] | postRemove |
6 | 1 | [[#b3d10160]] | refresh |
6 | 2 | [[#b3d10160]] | remove |