CloneSet2146


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8320.964class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
171350
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
281564
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
381637
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java
Clone Instance
1
Line Count
7
Source Line
1350
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java

        public void setLinkingEnabled(boolean enabled) {
                fLinkingEnabled = enabled;
                PreferenceConstants.getPreferenceStore().setValue(getLinkToEditorKey(), enabled);
                if (enabled) {
                        IEditorPart editor = getSite().getPage().getActiveEditor();
                        if (editor != null) {
                                setSelectionFromEditor(editor);
                        }
                }
        }


Clone Instance
2
Line Count
8
Source Line
1564
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java

        /*
         * @see org.eclipse.ui.views.navigator.IResourceNavigator#setLinkingEnabled(boolean)
         * @since 2.1
         */
        public void setLinkingEnabled(boolean enabled) {
                fLinkingEnabled = enabled;
                PreferenceConstants.getPreferenceStore().setValue(PreferenceConstants.LINK_PACKAGES_TO_EDITOR, enabled);

                if (enabled) {
                        IEditorPart editor = getSite().getPage().getActiveEditor();
                        if (editor != null) {
                                editorActivated(editor);
                        }
                }
        }


Clone Instance
3
Line Count
8
Source Line
1637
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java

        public void setLinkingEnabled(boolean enabled) {
                fLinkingEnabled = enabled;
                PreferenceConstants.getPreferenceStore().setValue(PreferenceConstants.LINK_TYPEHIERARCHY_TO_EDITOR, enabled);

                if (enabled) {
                        IEditorPart editor = getSite().getPage().getActiveEditor();
                        if (editor != null) {
                                editorActivated(editor);
                        }
                }
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/*
         * @see org.eclipse.ui.views.navigator.IResourceNavigator#setLinkingEnabled(boolean)
         * @since 2.1
         */
public void setLinkingEnabled(boolean enabled) {
  fLinkingEnabled = enabled;
  PreferenceConstants.getPreferenceStore().setValue( [[#variable9753a0c0]], enabled);
  if (enabled) {
    IEditorPart editor = getSite().getPage().getActiveEditor();
    if (editor != null) {
       [[#variable9753a180]](editor);
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9753a0c0]]
PreferenceConstants.LINK_TYPEHIERARCHY_TO_EDITOR 
12[[#9753a0c0]]
PreferenceConstants.LINK_PACKAGES_TO_EDITOR 
13[[#9753a0c0]]
getLinkToEditorKey() 
21[[#9753a180]]
editorActivated 
22[[#9753a180]]
editorActivated 
23[[#9753a180]]
setSelectionFromEditor