Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
34 | 2 | 2 | 0.991 | class_body_declarations[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 34 | 39 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/navigator/JavaEditActionProvider.java |
2 | 34 | 39 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/navigator/JavaRefactorActionProvider.java |
| ||||
public void fillContextMenu(IMenuManager menu) { if (fInViewPart) { fCCPGroup.fillContextMenu(menu); } } public void init(ICommonActionExtensionSite site) { ICommonViewerWorkbenchSite workbenchSite = null; if (site.getViewSite() instanceof ICommonViewerWorkbenchSite) workbenchSite = (ICommonViewerWorkbenchSite) site.getViewSite(); if (workbenchSite != null) { if (workbenchSite.getPart() != null && workbenchSite.getPart() instanceof IViewPart) { IViewPart viewPart = (IViewPart) workbenchSite.getPart(); fCCPGroup = new CCPActionGroup(viewPart); fInViewPart = true; } } } public void setContext(ActionContext context) { super.setContext(context); if (fInViewPart) { fCCPGroup.setContext(context); } } public void restoreState(IMemento memento) { } public void saveState(IMemento aMemento) { } |
| ||||
public void fillContextMenu(IMenuManager menu) { if (fInViewPart) { fRefactorGroup.fillContextMenu(menu); } } public void init(ICommonActionExtensionSite site) { ICommonViewerWorkbenchSite workbenchSite = null; if (site.getViewSite() instanceof ICommonViewerWorkbenchSite) workbenchSite = (ICommonViewerWorkbenchSite) site.getViewSite(); if (workbenchSite != null) { if (workbenchSite.getPart() != null && workbenchSite.getPart() instanceof IViewPart) { IViewPart viewPart = (IViewPart) workbenchSite.getPart(); fRefactorGroup = new RefactorActionGroup(viewPart); fInViewPart = true; } } } public void setContext(ActionContext context) { super.setContext(context); if (fInViewPart) { fRefactorGroup.setContext(context); } } public void restoreState(IMemento memento) { } public void saveState(IMemento aMemento) { } |
| |||
public void fillContextMenu(IMenuManager menu) { if (fInViewPart) { [[#variableba712860]].fillContextMenu(menu); } } public void init(ICommonActionExtensionSite site) { ICommonViewerWorkbenchSite workbenchSite = null; if (site.getViewSite() instanceof ICommonViewerWorkbenchSite) workbenchSite = (ICommonViewerWorkbenchSite) site.getViewSite(); if (workbenchSite != null) { if (workbenchSite.getPart() != null && workbenchSite.getPart() instanceof IViewPart) { IViewPart viewPart = (IViewPart) workbenchSite.getPart(); [[#variableba712860]]= new [[#variableba712880]](viewPart); fInViewPart = true; } } } public void setContext(ActionContext context) { super.setContext(context); if (fInViewPart) { [[#variableba712860]].setContext(context); } } public void restoreState(IMemento memento) { } public void saveState(IMemento aMemento) { } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#ba712860]] | fCCPGroup |
1 | 2 | [[#ba712860]] | fRefactorGroup |
2 | 1 | [[#ba712880]] | CCPActionGroup |
2 | 2 | [[#ba712880]] | RefactorActionGroup |