CloneSet1720


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
55240.982compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15512
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorHoverPreferencePage.java
24912
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
Clone Instance
1
Line Count
55
Source Line
12
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorHoverPreferencePage.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.preferences;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;

import org.eclipse.jdt.internal.ui.IJavaHelpContextIds;
import org.eclipse.jdt.internal.ui.JavaPlugin;



/**
 * Quick Diff preference page.
 * <p>
 * Note: Must be public since it is referenced from plugin.xml
 * </p>
 * 
 * @since 3.0
 */
public class JavaEditorHoverPreferencePage extends AbstractConfigurationBlockPreferencePage {

        /*
         * @see org.eclipse.ui.internal.editors.text.AbstractConfigureationBlockPreferencePage#getHelpId()
         */
        protected String getHelpId() {
                return IJavaHelpContextIds.JAVA_EDITOR_PREFERENCE_PAGE;
        }

        /*
         * @see org.eclipse.ui.internal.editors.text.AbstractConfigurationBlockPreferencePage#setDescription()
         */
        protected void setDescription() {
                String description = PreferencesMessages.JavaEditorPreferencePage_hoverTab_title;
                setDescription(description);
        }

        /*
         * @see org.org.eclipse.ui.internal.editors.text.AbstractConfigurationBlockPreferencePage#setPreferenceStore()
         */
        protected void setPreferenceStore() {
                setPreferenceStore(JavaPlugin.getDefault().getPreferenceStore());
        }


        protected Label createDescriptionLabel(Composite parent) {
                return null; // no description for new look.
        }

        /*
         * @see org.eclipse.ui.internal.editors.text.AbstractConfigureationBlockPreferencePage#createConfigurationBlock(org.eclipse.ui.internal.editors.text.OverlayPreferenceStore)
         */
        protected IPreferenceConfigurationBlock createConfigurationBlock(OverlayPreferenceStore overlayPreferenceStore) {
                return new JavaEditorHoverConfigurationBlock(this, overlayPreferenceStore);
        }
}




Clone Instance
2
Line Count
49
Source Line
12
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.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.preferences;


import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;

import org.eclipse.jdt.internal.ui.IJavaHelpContextIds;
import org.eclipse.jdt.internal.ui.JavaPlugin;

/**
 * The page for setting the editor options.
 */
public final class JavaEditorPreferencePage extends AbstractConfigurationBlockPreferencePage {

        /*
         * @see org.eclipse.ui.internal.editors.text.AbstractConfigureationBlockPreferencePage#getHelpId()
         */
        protected String getHelpId() {
                return IJavaHelpContextIds.JAVA_EDITOR_PREFERENCE_PAGE;
        }

        /*
         * @see org.eclipse.ui.internal.editors.text.AbstractConfigurationBlockPreferencePage#setDescription()
         */
        protected void setDescription() {
                String description = PreferencesMessages.JavaEditorPreferencePage_general;
                setDescription(description);
        }

        /*
         * @see org.org.eclipse.ui.internal.editors.text.AbstractConfigurationBlockPreferencePage#setPreferenceStore()
         */
        protected void setPreferenceStore() {
                setPreferenceStore(JavaPlugin.getDefault().getPreferenceStore());
        }


        protected Label createDescriptionLabel(Composite parent) {
                return null; // no description for new look.
        }

        /*
         * @see org.eclipse.ui.internal.editors.text.AbstractConfigureationBlockPreferencePage#createConfigurationBlock(org.eclipse.ui.internal.editors.text.OverlayPreferenceStore)
         */
        protected IPreferenceConfigurationBlock createConfigurationBlock(OverlayPreferenceStore overlayPreferenceStore) {
                return new JavaEditorAppearanceConfigurationBlock(this, overlayPreferenceStore);
        }
}




Clone AbstractionParameter Count: 4Parameter 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.preferences;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.jdt.internal.ui.IJavaHelpContextIds;
import org.eclipse.jdt.internal.ui.JavaPlugin;

 [[#variable5cae6cc0]]class [[#variable5cae6d60]]extends AbstractConfigurationBlockPreferencePage {
  /*
           * @see org.eclipse.ui.internal.editors.text.AbstractConfigureationBlockPreferencePage#getHelpId()
           */
  protected String getHelpId() {
    return IJavaHelpContextIds.JAVA_EDITOR_PREFERENCE_PAGE;
  }

  /*
           * @see org.eclipse.ui.internal.editors.text.AbstractConfigurationBlockPreferencePage#setDescription()
           */
  protected void setDescription() {
    String description = PreferencesMessages. [[#variable5cae6de0]];
    setDescription(description);
  }

  /*
           * @see org.org.eclipse.ui.internal.editors.text.AbstractConfigurationBlockPreferencePage#setPreferenceStore()
           */
  protected void setPreferenceStore() {
    setPreferenceStore(JavaPlugin.getDefault().getPreferenceStore());
  }

  protected Label createDescriptionLabel(Composite parent) {
    return null; // no description for new look.
  }

  /*
           * @see org.eclipse.ui.internal.editors.text.AbstractConfigureationBlockPreferencePage#createConfigurationBlock(org.eclipse.ui.internal.editors.text.OverlayPreferenceStore)
           */
  protected IPreferenceConfigurationBlock createConfigurationBlock(OverlayPreferenceStore overlayPreferenceStore) {
    return new [[#variable5cae6dc0]](this, overlayPreferenceStore);
  }
}


 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5cae6cc0]]
/**
 * Quick Diff preference page.
 * <p>
 * Note: Must be public since it is referenced from plugin.xml
 * </p>
 * 
 * @since 3.0
 */
public 
12[[#5cae6cc0]]
/**
 * The page for setting the editor options.
 */
public final 
21[[#5cae6d60]]
JavaEditorHoverPreferencePage 
22[[#5cae6d60]]
JavaEditorPreferencePage 
31[[#5cae6de0]]
JavaEditorPreferencePage_hoverTab_title 
32[[#5cae6de0]]
JavaEditorPreferencePage_general 
41[[#5cae6dc0]]
JavaEditorHoverConfigurationBlock 
42[[#5cae6dc0]]
JavaEditorAppearanceConfigurationBlock