CloneSet1054


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
39250.983class_body_declarations[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13935
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeStylePreferencePage.java
23937
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/ImportOrganizePreferencePage.java
Clone Instance
1
Line Count
39
Source Line
35
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeStylePreferencePage.java

        public CodeStylePreferencePage() {
                setPreferenceStore(JavaPlugin.getDefault().getPreferenceStore());
                //setDescription(PreferencesMessages.getString("CodeStylePreferencePage.description")); //$NON-NLS-1$

                // only used when page is shown programatically
                setTitle(PreferencesMessages.CodeStylePreferencePage_title);
        }

        /*
         * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
         */
        public void createControl(Composite parent) {
                IWorkbenchPreferenceContainer container = (IWorkbenchPreferenceContainer) getContainer();
                fConfigurationBlock = new NameConventionConfigurationBlock(getNewStatusChangedListener(), getProject(), container);

                super.createControl(parent);
                PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), IJavaHelpContextIds.CODE_MANIPULATION_PREFERENCE_PAGE);
        }

        protected Control createPreferenceContent(Composite composite) {
                return fConfigurationBlock.createContents(composite);
        }

        protected boolean hasProjectSpecificOptions(IProject project) {
                return fConfigurationBlock.hasProjectSpecificOptions(project);
        }

        /* (non-Javadoc)
         * @see org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage#getPreferencePageID()
         */
        protected String getPreferencePageID() {
                return PREF_ID;
        }

        /* (non-Javadoc)
         * @see org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage#getPropertyPageID()
         */
        protected String getPropertyPageID() {
                return PROP_ID;
        }


Clone Instance
2
Line Count
39
Source Line
37
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/ImportOrganizePreferencePage.java

        public ImportOrganizePreferencePage() {
                setPreferenceStore(JavaPlugin.getDefault().getPreferenceStore());
                //setDescription(PreferencesMessages.ImportOrganizePreferencePage_description); 

                // only used when page is shown programatically
                setTitle(PreferencesMessages.ImportOrganizePreferencePage_title);
        }

        /*
         * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
         */
        public void createControl(Composite parent) {
                IWorkbenchPreferenceContainer container = (IWorkbenchPreferenceContainer) getContainer();
                fConfigurationBlock = new ImportOrganizeConfigurationBlock(getNewStatusChangedListener(), getProject(), container);

                super.createControl(parent);
                PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, IJavaHelpContextIds.ORGANIZE_IMPORTS_PREFERENCE_PAGE);
        }

        protected Control createPreferenceContent(Composite composite) {
                return fConfigurationBlock.createContents(composite);
        }

        protected boolean hasProjectSpecificOptions(IProject project) {
                return fConfigurationBlock.hasProjectSpecificOptions(project);
        }

        /* (non-Javadoc)
         * @see org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage#getPreferencePageID()
         */
        protected String getPreferencePageID() {
                return PREF_ID;
        }

        /* (non-Javadoc)
         * @see org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage#getPropertyPageID()
         */
        protected String getPropertyPageID() {
                return PROP_ID;
        }


Clone AbstractionParameter Count: 5Parameter Bindings

public [[#variable58bb5ba0]]() {
  setPreferenceStore(JavaPlugin.getDefault().getPreferenceStore());
  //setDescription(PreferencesMessages.getString("CodeStylePreferencePage.description")); //$NON-NLS-1$
  //setDescription(PreferencesMessages.ImportOrganizePreferencePage_description); 
  // only used when page is shown programatically
  setTitle(PreferencesMessages. [[#variable58bb5b00]]);
}

/*
         * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
         */
public void createControl(Composite parent) {
  IWorkbenchPreferenceContainer container = (IWorkbenchPreferenceContainer) getContainer();
  fConfigurationBlock = new [[#variable58bb5aa0]](getNewStatusChangedListener(), getProject(), container);
  super.createControl(parent);
  PlatformUI.getWorkbench().getHelpSystem().setHelp( [[#variable58bb5a40]], IJavaHelpContextIds. [[#variable58bb59e0]]);
}

protected Control createPreferenceContent(Composite composite) {
  return fConfigurationBlock.createContents(composite);
}

protected boolean hasProjectSpecificOptions(IProject project) {
  return fConfigurationBlock.hasProjectSpecificOptions(project);
}

/* (non-Javadoc)
         * @see org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage#getPreferencePageID()
         */
protected String getPreferencePageID() {
  return PREF_ID;
}

/* (non-Javadoc)
         * @see org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage#getPropertyPageID()
         */
protected String getPropertyPageID() {
  return PROP_ID;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#58bb5ba0]]
CodeStylePreferencePage 
12[[#58bb5ba0]]
ImportOrganizePreferencePage 
21[[#58bb5b00]]
CodeStylePreferencePage_title 
22[[#58bb5b00]]
ImportOrganizePreferencePage_title 
31[[#58bb5aa0]]
NameConventionConfigurationBlock 
32[[#58bb5aa0]]
ImportOrganizeConfigurationBlock 
41[[#58bb5a40]]
getControl() 
42[[#58bb5a40]]
parent 
51[[#58bb59e0]]
CODE_MANIPULATION_PREFERENCE_PAGE 
52[[#58bb59e0]]
ORGANIZE_IMPORTS_PREFERENCE_PAGE