CloneSet1006


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
34220.991class_body_declarations[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13439
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/navigator/JavaEditActionProvider.java
23439
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/navigator/JavaRefactorActionProvider.java
Clone Instance
1
Line Count
34
Source Line
39
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/navigator/JavaEditActionProvider.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) {
        }


Clone Instance
2
Line Count
34
Source Line
39
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/navigator/JavaRefactorActionProvider.java

        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) {
        }


Clone AbstractionParameter Count: 2Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#ba712860]]
fCCPGroup 
12[[#ba712860]]
fRefactorGroup 
21[[#ba712880]]
CCPActionGroup 
22[[#ba712880]]
RefactorActionGroup