CloneSet3721


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

        private void restoreLinkingEnabled(IMemento memento) {
                Integer val = memento.getInteger(getLinkToEditorKey());
                if (val != null) {
                        fLinkingEnabled = val.intValue() != 0;
                }
        }


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

        /*
        private void restoreCurrentFrame(IMemento memento) {
                IMemento frameMemento = memento.getChild(TAG_CURRENT_FRAME);
                
                if (frameMemento != null) {
                FrameAction action = fActionSet.getUpAction();
                FrameList frameList= action.getFrameList();
                        TreeFrame frame = new TreeFrame(fViewer);
                        frame.restoreState(frameMemento);
                        frame.setName(getFrameName(frame.getInput()));
                        frame.setToolTipText(getToolTipText(frame.getInput()));
                        frameList.gotoFrame(frame);
                }
        }
        */
        private void restoreLinkingEnabled(IMemento memento) {
                Integer val = memento.getInteger(PreferenceConstants.LINK_PACKAGES_TO_EDITOR);
                if (val != null) {
                        fLinkingEnabled = val.intValue() != 0;
                }
        }


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

        private void restoreLinkingEnabled(IMemento memento) {
                Integer val = memento.getInteger(PreferenceConstants.LINK_TYPEHIERARCHY_TO_EDITOR);
                if (val != null) {
                        fLinkingEnabled = val.intValue() != 0;
                }
        }


Clone AbstractionParameter Count: 1Parameter Bindings

/*
        private void restoreCurrentFrame(IMemento memento) {
                IMemento frameMemento = memento.getChild(TAG_CURRENT_FRAME);
                
                if (frameMemento != null) {
                FrameAction action = fActionSet.getUpAction();
                FrameList frameList= action.getFrameList();
                        TreeFrame frame = new TreeFrame(fViewer);
                        frame.restoreState(frameMemento);
                        frame.setName(getFrameName(frame.getInput()));
                        frame.setToolTipText(getToolTipText(frame.getInput()));
                        frameList.gotoFrame(frame);
                }
        }
        */
private void restoreLinkingEnabled(IMemento memento) {
  Integer val = memento.getInteger( [[#variable9bad1900]]);
  if (val != null) {
    fLinkingEnabled = val.intValue() != 0;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9bad1900]]
PreferenceConstants.LINK_TYPEHIERARCHY_TO_EDITOR 
12[[#9bad1900]]
PreferenceConstants.LINK_PACKAGES_TO_EDITOR 
13[[#9bad1900]]
getLinkToEditorKey()