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 | statement_sequence_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 100 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/SelectionListenerWithASTManager.java |
2 | 5 | 111 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/SelectionListenerWithASTManager.java |
| ||||
if (isEmpty()) { fPart.getEditorSite().getPage().addPostSelectionListener(fPostSelectionListener); ISelectionProvider selectionProvider = fPart.getSelectionProvider(); if (selectionProvider != null) selectionProvider.addSelectionChangedListener(fSelectionListener); } |
| ||||
if (isEmpty()) { fPart.getEditorSite().getPage().removePostSelectionListener(fPostSelectionListener); ISelectionProvider selectionProvider = fPart.getSelectionProvider(); if (selectionProvider != null) selectionProvider.removeSelectionChangedListener(fSelectionListener); } |
| |||
if (isEmpty()) { fPart.getEditorSite().getPage(). [[#variable94288ae0]](fPostSelectionListener); ISelectionProvider selectionProvider = fPart.getSelectionProvider(); if (selectionProvider != null) selectionProvider. [[#variable94288a40]](fSelectionListener); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#94288ae0]] | addPostSelectionListener |
1 | 2 | [[#94288ae0]] | removePostSelectionListener |
2 | 1 | [[#94288a40]] | addSelectionChangedListener |
2 | 2 | [[#94288a40]] | removeSelectionChangedListener |