try
{
Object value = EcoreUtil.createFromString((EDataType)eClassifier, choiceText.getText());
values.getChildren().add(value);
choiceText.setText("");
featureTableViewer.setSelection(new StructuredSelection(value));
event.doit = false;
}
catch (RuntimeException exception)
{
// Ignore
}
try
{
Object value = EcoreUtil.createFromString((EDataType)eClassifier, choiceText.getText());
values.getChildren().add(value);
choiceText.setText("");
featureTableViewer.setSelection(new StructuredSelection(value));
}
catch (RuntimeException exception)
{
// Ignore
}
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: void keyPressed(KeyEvent)
|
|
Method name: void widgetSelected(SelectionEvent)
|
Number of AST nodes: 6
|
|
Number of AST nodes: 5
|
|
1 | try↵ | | 1 | try↵
|
2 | {↵ | | 2 | ↵
|
3 | ↵ | | 3 | {↵
|
4 | Object value = EcoreUtil.createFromString((EDataType)eClassifier, choiceText.getText());↵ | | 4 | Object value = EcoreUtil.createFromString((EDataType)eClassifier, choiceText.getText());↵
|
5 | values.getChildren().add(value);↵ | | 5 | values.getChildren().add(value);↵
|
6 | choiceText.setText("");↵ | | 6 | choiceText.setText("");↵
|
7 | featureTableViewer.setSelection(new StructuredSelection(value));↵ | | 7 | featureTableViewer.setSelection(new StructuredSelection(value));↵
|
8 | event.doit = false;↵ | | |
|
9 | }↵ | | 8 | }↵
|
10 | catch (RuntimeException exception)↵ | | 9 | catch (RuntimeException exception)↵
|
11 | {↵ | | 10 | ↵
|
12 | ↵ | | 11 | {↵
|
13 | // Ignore↵ | | 12 | // Ignore↵
|
14 | } | | 13 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
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 java file |
Number of node comparisons | 1 |