CloneSet3023


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5310.962class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15114
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/QuickMenuAction.java
2564
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/SurroundWithActionGroup.java
35149
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OccurrencesSearchGroup.java
Clone Instance
1
Line Count
5
Source Line
114
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/QuickMenuAction.java

        /**
         * Returns the shortcut assigned to the sub menu or <code>null</code> if
         * no short cut is assigned.
         * 
         * @return the shortcut as a human readable string or <code>null</code>
         */
        private String getShortcutString() {
                IBindingService bindingService = (IBindingService) PlatformUI.getWorkbench().getAdapter(IBindingService.class );
                if (bindingService == null)
                        return null;
                return bindingService.getBestActiveBindingFormattedFor(getActionDefinitionId());
        }


Clone Instance
2
Line Count
5
Source Line
64
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/SurroundWithActionGroup.java

        private String getShortcutString() {
                IBindingService bindingService = (IBindingService) PlatformUI.getWorkbench().getAdapter(IBindingService.class );
                if (bindingService == null)
                        return null;
                return bindingService.getBestActiveBindingFormattedFor(SurroundWithTemplateMenuAction.SURROUND_WITH_QUICK_MENU_ACTION_ID);
        }


Clone Instance
3
Line Count
5
Source Line
149
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OccurrencesSearchGroup.java

        private String getShortcutString() {
                IBindingService bindingService = (IBindingService) PlatformUI.getWorkbench().getAdapter(IBindingService.class );
                if (bindingService == null)
                        return null;
                return bindingService.getBestActiveBindingFormattedFor(IJavaEditorActionDefinitionIds.SEARCH_OCCURRENCES_IN_FILE_QUICK_MENU);
        }


Clone AbstractionParameter Count: 1Parameter Bindings

/**
         * Returns the shortcut assigned to the sub menu or <code>null</code> if
         * no short cut is assigned.
         * 
         * @return the shortcut as a human readable string or <code>null</code>
         */
private String getShortcutString() {
  IBindingService bindingService = (IBindingService) PlatformUI.getWorkbench().getAdapter(IBindingService.class );
  if (bindingService == null)
    return null;
  return bindingService.getBestActiveBindingFormattedFor( [[#variable600cc200]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#600cc200]]
IJavaEditorActionDefinitionIds.SEARCH_OCCURRENCES_IN_FILE_QUICK_MENU 
12[[#600cc200]]
SurroundWithTemplateMenuAction.SURROUND_WITH_QUICK_MENU_ACTION_ID 
13[[#600cc200]]
getActionDefinitionId()