Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
32 | 2 | 3 | 0.959 | compilation_unit |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 32 | 11 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/ToggleLinkingAction.java |
2 | 32 | 11 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/ToggleLinkingAction.java |
| ||||
/******************************************************************************* * Copyright (c) 2000, 2005 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.jdt.internal.ui.browsing; import org.eclipse.jdt.internal.ui.actions.AbstractToggleLinkingAction; /** * This action toggles whether this package explorer links its selection to the active * editor. * * @since 2.1 */ public class ToggleLinkingAction extends AbstractToggleLinkingAction { JavaBrowsingPart fJavaBrowsingPart; /** * Constructs a new action. */ public ToggleLinkingAction(JavaBrowsingPart part) { setChecked(part.isLinkingEnabled()); fJavaBrowsingPart = part; } /** * Runs the action. */ public void run() { fJavaBrowsingPart.setLinkingEnabled(isChecked()); } } |
| ||||
/******************************************************************************* * Copyright (c) 2000, 2005 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.jdt.internal.ui.typehierarchy; import org.eclipse.jdt.internal.ui.actions.AbstractToggleLinkingAction; /** * This action toggles whether the type hierarchy links its selection to the active * editor. * * @since 2.1 */ public class ToggleLinkingAction extends AbstractToggleLinkingAction { TypeHierarchyViewPart fHierarchyViewPart; /** * Constructs a new action. */ public ToggleLinkingAction(TypeHierarchyViewPart part) { setChecked(part.isLinkingEnabled()); fHierarchyViewPart = part; } /** * Runs the action. */ public void run() { fHierarchyViewPart.setLinkingEnabled(isChecked()); } } |
| |||
/******************************************************************************* * Copyright (c) 2000, 2005 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.jdt.internal.ui. [[#variable56d151c0]]; import org.eclipse.jdt.internal.ui.actions.AbstractToggleLinkingAction; /** * This action toggles whether this package explorer links its selection to the active * editor. * * @since 2.1 */ /** * This action toggles whether the type hierarchy links its selection to the active * editor. * * @since 2.1 */ public class ToggleLinkingAction extends AbstractToggleLinkingAction { [[#variable56d15160]] [[#variable56d15140]]; /** * Constructs a new action. */ public ToggleLinkingAction( [[#variable56d15160]] part) { setChecked(part.isLinkingEnabled()); [[#variable56d15140]]= part; } /** * Runs the action. */ public void run() { [[#variable56d15140]].setLinkingEnabled(isChecked()); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#56d151c0]] | browsing |
1 | 2 | [[#56d151c0]] | typehierarchy |
2 | 1 | [[#56d15160]] | JavaBrowsingPart |
2 | 2 | [[#56d15160]] | TypeHierarchyViewPart |
3 | 1 | [[#56d15140]] | fJavaBrowsingPart |
3 | 2 | [[#56d15140]] | fHierarchyViewPart |