Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
35 | 2 | 6 | 0.975 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 35 | 156 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/DeclarationsSearchGroup.java |
2 | 35 | 166 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ReferencesSearchGroup.java |
| ||||
/* (non-Javadoc) * Method declared on ActionGroup. */ public void fillContextMenu(IMenuManager manager) { IMenuManager javaSearchMM = new MenuManager(MENU_TEXT, IContextMenuConstants.GROUP_SEARCH); addAction(fFindDeclarationsAction, javaSearchMM); addAction(fFindDeclarationsInProjectAction, javaSearchMM); addAction(fFindDeclarationsInHierarchyAction, javaSearchMM); javaSearchMM.add(new Separator()); Iterator iter = SearchUtil.getLRUWorkingSets().sortedIterator(); while (iter.hasNext()) { addWorkingSetAction((IWorkingSet[]) iter.next(), javaSearchMM); } addAction(fFindDeclarationsInWorkingSetAction, javaSearchMM); if ( !javaSearchMM.isEmpty()) manager.appendToGroup(fGroupId, javaSearchMM); } /* * Method declared on ActionGroup. */ public void dispose() { ISelectionProvider provider = fSite.getSelectionProvider(); if (provider != null) { disposeAction(fFindDeclarationsAction, provider); disposeAction(fFindDeclarationsInProjectAction, provider); disposeAction(fFindDeclarationsInHierarchyAction, provider); disposeAction(fFindDeclarationsInWorkingSetAction, provider); } fFindDeclarationsAction = null; fFindDeclarationsInProjectAction = null; fFindDeclarationsInHierarchyAction = null; fFindDeclarationsInWorkingSetAction = null; updateGlobalActionHandlers(); super.dispose(); } |
| ||||
/* (non-Javadoc) * Method declared on ActionGroup. */ public void fillContextMenu(IMenuManager manager) { MenuManager javaSearchMM = new MenuManager(getName(), IContextMenuConstants.GROUP_SEARCH); addAction(fFindReferencesAction, javaSearchMM); addAction(fFindReferencesInProjectAction, javaSearchMM); addAction(fFindReferencesInHierarchyAction, javaSearchMM); javaSearchMM.add(new Separator()); Iterator iter = SearchUtil.getLRUWorkingSets().sortedIterator(); while (iter.hasNext()) { addWorkingSetAction((IWorkingSet[]) iter.next(), javaSearchMM); } addAction(fFindReferencesInWorkingSetAction, javaSearchMM); if ( !javaSearchMM.isEmpty()) manager.appendToGroup(fGroupId, javaSearchMM); } /* * Overrides method declared in ActionGroup */ public void dispose() { ISelectionProvider provider = fSite.getSelectionProvider(); if (provider != null) { disposeAction(fFindReferencesAction, provider); disposeAction(fFindReferencesInProjectAction, provider); disposeAction(fFindReferencesInHierarchyAction, provider); disposeAction(fFindReferencesInWorkingSetAction, provider); } fFindReferencesAction = null; fFindReferencesInProjectAction = null; fFindReferencesInHierarchyAction = null; fFindReferencesInWorkingSetAction = null; updateGlobalActionHandlers(); super.dispose(); } |
| |||
/* (non-Javadoc) * Method declared on ActionGroup. */ public void fillContextMenu(IMenuManager manager) { [[#variablea1230860]] javaSearchMM = new MenuManager( [[#variablea1230800]], IContextMenuConstants.GROUP_SEARCH); addAction( [[#variablea1230780]], javaSearchMM); addAction( [[#variablea1230660]], javaSearchMM); addAction( [[#variablea1230620]], javaSearchMM); javaSearchMM.add(new Separator()); Iterator iter = SearchUtil.getLRUWorkingSets().sortedIterator(); while (iter.hasNext()) { addWorkingSetAction((IWorkingSet[]) iter.next(), javaSearchMM); } addAction( [[#variablea1230600]], javaSearchMM); if ( !javaSearchMM.isEmpty()) manager.appendToGroup(fGroupId, javaSearchMM); } /* * Method declared on ActionGroup. */ /* * Overrides method declared in ActionGroup */ public void dispose() { ISelectionProvider provider = fSite.getSelectionProvider(); if (provider != null) { disposeAction( [[#variablea1230780]], provider); disposeAction( [[#variablea1230660]], provider); disposeAction( [[#variablea1230620]], provider); disposeAction( [[#variablea1230600]], provider); } [[#variablea1230780]]= null; [[#variablea1230660]]= null; [[#variablea1230620]]= null; [[#variablea1230600]]= null; updateGlobalActionHandlers(); super.dispose(); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a1230860]] | IMenuManager |
1 | 2 | [[#a1230860]] | MenuManager |
2 | 1 | [[#a1230800]] | MENU_TEXT |
2 | 2 | [[#a1230800]] | getName() |
3 | 1 | [[#a1230780]] | fFindDeclarationsAction |
3 | 2 | [[#a1230780]] | fFindReferencesAction |
4 | 1 | [[#a1230660]] | fFindDeclarationsInProjectAction |
4 | 2 | [[#a1230660]] | fFindReferencesInProjectAction |
5 | 1 | [[#a1230620]] | fFindDeclarationsInHierarchyAction |
5 | 2 | [[#a1230620]] | fFindReferencesInHierarchyAction |
6 | 1 | [[#a1230600]] | fFindDeclarationsInWorkingSetAction |
6 | 2 | [[#a1230600]] | fFindReferencesInWorkingSetAction |