@Deprecated
public void setActiveEditor(IEditorPart editorPart)
{
setActiveWorkbenchPart(editorPart);
}
/**
* @since 2.1.0
*/
public void setActiveWorkbenchPart(IWorkbenchPart workbenchPart)
{
if (workbenchPart instanceof IEditingDomainProvider)
{
domain = ((IEditingDomainProvider)workbenchPart).getEditingDomain();
@Deprecated
public void setActiveEditor(IEditorPart editorPart)
{
setActiveWorkbenchPart(editorPart);
}
/**
* @since 2.1.0
*/
public void setActiveWorkbenchPart(IWorkbenchPart workbenchPart)
{
if (workbenchPart instanceof IEditingDomainProvider)
{
domain = ((IEditingDomainProvider)workbenchPart).getEditingDomain();
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/edit/ui/action/PasteAction.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/edit/ui/action/UndoAction.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | @Deprecated↵ | | 1 | @Deprecated↵
|
2 | public void setActiveEditor(IEditorPart editorPart)↵ | | 2 | public void setActiveEditor(IEditorPart editorPart)↵
|
3 | {↵ | | 3 | {↵
|
4 | setActiveWorkbenchPart(editorPart);↵ | | 4 | setActiveWorkbenchPart(editorPart);↵
|
5 | }↵ | | 5 | }↵
|
|
6 | /**↵ | | 6 | /**↵
|
7 | * @since 2.1.0↵ | | 7 | * @since 2.1.0↵
|
8 | */↵ | | 8 | */↵
|
9 | public void setActiveWorkbenchPart(IWorkbenchPart workbenchPart)↵ | | 9 | public void setActiveWorkbenchPart(IWorkbenchPart workbenchPart)↵
|
10 | {↵ | | 10 | {↵
|
11 | if (workbenchPart instanceof IEditingDomainProvider)↵ | | 11 | if (workbenchPart instanceof IEditingDomainProvider)↵
|
12 | {↵ | | 12 | {↵
|
13 | domain = ((IEditingDomainProvider)workbenchPart).getEditingDomain(); | | 13 | domain = ((IEditingDomainProvider)workbenchPart).getEditingDomain();
|
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 |