public void widgetDefaultSelected(SelectionEvent event)
{
widgetSelected(event);
}
public void widgetSelected(SelectionEvent event)
{
TableItem [] selection = table.getSelection();
selectedTableItem = selection.length == 1 ? selection[0] : null;
}
public void keyPressed(KeyEvent event)
{
public void widgetDefaultSelected(SelectionEvent event)
{
widgetSelected(event);
}
public void widgetSelected(SelectionEvent event)
{
TableItem [] selection = table.getSelection();
selectedTableItem = selection.length == 1 ? selection[0] : null;
}
public void keyPressed(KeyEvent event)
{
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/common/ui/celleditor/ExtendedTableEditor.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/common/ui/celleditor/ExtendedTableTreeEditor.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public void widgetDefaultSelected(SelectionEvent event)↵ | | 1 | public void widgetDefaultSelected(SelectionEvent event)↵
|
2 | {↵ | | 2 | {↵
|
3 | widgetSelected(event);↵ | | 3 | widgetSelected(event);↵
|
4 | }↵ | | 4 | }↵
|
|
5 | public void widgetSelected(SelectionEvent event)↵ | | 5 | public void widgetSelected(SelectionEvent event)↵
|
6 | {↵ | | 6 | {↵
|
7 | TableItem [] selection = table.getSelection();↵ | | 7 | TableItem [] selection = table.getSelection();↵
|
8 | selectedTableItem = selection.length == 1 ? selection[0] : null;↵ | | 8 | selectedTableItem = selection.length == 1 ? selection[0] : null;↵
|
9 | }↵ | | 9 | }↵
|
|
10 | public void keyPressed(KeyEvent event)↵ | | 10 | public void keyPressed(KeyEvent event)↵
|
11 | { | | 11 | {
|
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 | |
Number of node comparisons | 0 |