choiceTableViewer.addDoubleClickListener(new IDoubleClickListener()
{
public void doubleClick(DoubleClickEvent event)
{
if (addButton.isEnabled())
{
addButton.notifyListeners(SWT.Selection, null);
}
}
});
featureTableViewer.addDoubleClickListener(new IDoubleClickListener()
{
public void doubleClick(DoubleClickEvent event)
{
if (removeButton.isEnabled())
{
removeButton.notifyListeners(SWT.Selection, null);
}
}
});
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/edit/ui/celleditor/FeatureEditorDialog.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/edit/ui/celleditor/FeatureEditorDialog.java
|
Method name: Control createDialogArea(Composite)
|
|
Method name: Control createDialogArea(Composite)
|
Number of AST nodes: 1
|
|
Number of AST nodes: 1
|
|
1 | choiceTableViewer.addDoubleClickListener(new IDoubleClickListener()↵ | | 1 | featureTableViewer.addDoubleClickListener(new IDoubleClickListener()↵
|
2 | {↵ | | 2 | {↵
|
3 | public void doubleClick(DoubleClickEvent event)↵ | | 3 | public void doubleClick(DoubleClickEvent event)↵
|
4 | {↵ | | 4 | ↵
|
5 | ↵ | | 5 | {↵
|
6 | if (addButton.isEnabled())↵ | | 6 | if (removeButton.isEnabled())↵
|
7 | {↵ | | 7 | {↵
|
8 | addButton.notifyListeners(SWT.Selection, null);↵ | | 8 | removeButton.notifyListeners(SWT.Selection, null);↵
|
9 | }↵ | | 9 | ↵
|
10 | ↵ | | 10 | }↵
|
11 | }↵ | | 11 | }↵
|
12 | }); | | 12 | });
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 1 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
119 | choiceTableViewer.addDoubleClickListener(new IDoubleClickListener() {...}); | | 120 | featureTableViewer.addDoubleClickListener(new IDoubleClickListener() {...}); |
Precondition Violations (0)
Row |
Violation |