CloneSet962


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
49330.990compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14912
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/FoldingPreferencePage.java
25012
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/MarkOccurrencesPreferencePage.java
34912
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/SmartTypingPreferencePage.java
Clone Instance
1
Line Count
49
Source Line
12
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/FoldingPreferencePage.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 FoldingPreferencePage 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_folding_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 FoldingConfigurationBlock(overlayPreferenceStore);
        }
}




Clone Instance
2
Line Count
50
Source Line
12
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/MarkOccurrencesPreferencePage.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 MarkOccurrencesPreferencePage 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.MarkOccurrencesConfigurationBlock_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 MarkOccurrencesConfigurationBlock(overlayPreferenceStore);
        }
}




Clone Instance
3
Line Count
49
Source Line
12
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/SmartTypingPreferencePage.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 SmartTypingPreferencePage 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_typing_tabTitle;
                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 SmartTypingConfigurationBlock(overlayPreferenceStore);
        }
}




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.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 [[#variablebadb2fe0]]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. [[#variablebadb2f80]];
    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 [[#variablebadb2e20]](overlayPreferenceStore);
  }
}


 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#badb2fe0]]
FoldingPreferencePage 
12[[#badb2fe0]]
MarkOccurrencesPreferencePage 
13[[#badb2fe0]]
SmartTypingPreferencePage 
21[[#badb2f80]]
JavaEditorPreferencePage_folding_title 
22[[#badb2f80]]
MarkOccurrencesConfigurationBlock_title 
23[[#badb2f80]]
JavaEditorPreferencePage_typing_tabTitle 
31[[#badb2e20]]
FoldingConfigurationBlock 
32[[#badb2e20]]
MarkOccurrencesConfigurationBlock 
33[[#badb2e20]]
SmartTypingConfigurationBlock