if (activePart instanceof ISetSelectionTarget)
{
final ISelection targetSelection = new StructuredSelection(file);
getShell().getDisplay().asyncExec(new Runnable()
{
public void run()
{
((ISetSelectionTarget)activePart).selectReveal(targetSelection);
if (activePart instanceof ISetSelectionTarget)
{
final ISelection targetSelection = new StructuredSelection(modelFile);
getShell().getDisplay().asyncExec
(new Runnable()
{
public void run()
{
((ISetSelectionTarget)activePart).selectReveal(targetSelection);
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/converter/ui/contribution/base/ModelConverterWizard.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/presentation/DynamicModelWizard.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | if (activePart instanceof ISetSelectionTarget)↵ | | 1 | if (activePart instanceof ISetSelectionTarget)↵
|
2 | {↵ | | 2 | ↵
|
| | | 3 | {↵
|
3 | final ISelection targetSelection = new StructuredSelection(file);↵ | | 4 | final ISelection targetSelection = new StructuredSelection(modelFile);↵
|
4 | getShell().getDisplay().asyncExec↵ | | 5 | getShell().getDisplay().asyncExec↵
|
5 | (new Runnable()↵ | | 6 | (new Runnable()↵
|
6 | {↵ | | 7 | ↵
|
| | | 8 | {↵
|
7 | public void run()↵ | | 9 | public void run()↵
|
8 | {↵ | | 10 | ↵
|
| | | 11 | {↵
|
9 | ((ISetSelectionTarget)activePart).selectReveal(targetSelection);↵ | | 12 | ((ISetSelectionTarget)activePart).selectReveal(targetSelection);↵
|
10 | | | 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 | |
Number of node comparisons | 0 |