Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 3 | 2 | 0.964 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 1350 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java |
2 | 8 | 1564 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java |
3 | 8 | 1637 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.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); } } } |
| ||||
/* * @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); } } } |
| ||||
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); } } } |
| |||
/* * @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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#9753a0c0]] | PreferenceConstants.LINK_TYPEHIERARCHY_TO_EDITOR |
1 | 2 | [[#9753a0c0]] | PreferenceConstants.LINK_PACKAGES_TO_EDITOR |
1 | 3 | [[#9753a0c0]] | getLinkToEditorKey() |
2 | 1 | [[#9753a180]] | editorActivated |
2 | 2 | [[#9753a180]] | editorActivated |
2 | 3 | [[#9753a180]] | setSelectionFromEditor |