CloneSet4757


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
32230.959compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13211
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/ToggleLinkingAction.java
23211
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/ToggleLinkingAction.java
Clone Instance
1
Line Count
32
Source Line
11
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/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());
        }
}




Clone Instance
2
Line Count
32
Source Line
11
Source File
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.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());
        }
}




Clone AbstractionParameter Count: 3Parameter Bindings

/*******************************************************************************
 * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#56d151c0]]
browsing 
12[[#56d151c0]]
typehierarchy 
21[[#56d15160]]
JavaBrowsingPart 
22[[#56d15160]]
TypeHierarchyViewPart 
31[[#56d15140]]
fJavaBrowsingPart 
32[[#56d15140]]
fHierarchyViewPart