CloneSet172


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
91350.994class_body_declarations[11]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19136
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaBuildPreferencePage.java
29136
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavadocProblemsPreferencePage.java
39141
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/ProblemSeveritiesPreferencePage.java
Clone Instance
1
Line Count
91
Source Line
36
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaBuildPreferencePage.java

        public JavaBuildPreferencePage() {
                setPreferenceStore(JavaPlugin.getDefault().getPreferenceStore());
                //setDescription(PreferencesMessages.JavaBuildPreferencePage_description); 

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

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

                super.createControl(parent);
                if (isProjectPreferencePage()) {
                        PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), IJavaHelpContextIds.JAVA_BUILD_PROPERTY_PAGE);
                }
                else   {
                        PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), IJavaHelpContextIds.JAVA_BUILD_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;
        }

        /* (non-Javadoc)
         * @see org.eclipse.jface.dialogs.DialogPage#dispose()
         */
        public void dispose() {
                if (fConfigurationBlock != null) {
                        fConfigurationBlock.dispose();
                }
                super.dispose();
        }

        /* (non-Javadoc)
         * @see org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage#enableProjectSpecificSettings(boolean)
         */
        protected void enableProjectSpecificSettings(boolean useProjectSpecificSettings) {
                super.enableProjectSpecificSettings(useProjectSpecificSettings);
                if (fConfigurationBlock != null) {
                        fConfigurationBlock.useProjectSpecificSettings(useProjectSpecificSettings);
                }
        }

        /*
         * @see org.eclipse.jface.preference.IPreferencePage#performDefaults()
         */
        protected void performDefaults() {
                super.performDefaults();
                if (fConfigurationBlock != null) {
                        fConfigurationBlock.performDefaults();
                }
        }

        /*
         * @see org.eclipse.jface.preference.IPreferencePage#performOk()
         */
        public boolean performOk() {
                if (fConfigurationBlock != null && !fConfigurationBlock.performOk()) {
                        return false;
                }
                return super.performOk();
        }

        /*
         * @see org.eclipse.jface.preference.IPreferencePage#performApply()
         */
        public void performApply() {
                if (fConfigurationBlock != null) {
                        fConfigurationBlock.performApply();
                }
        }


Clone Instance
2
Line Count
91
Source Line
36
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavadocProblemsPreferencePage.java

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

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

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

                super.createControl(parent);
                if (isProjectPreferencePage()) {
                        PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), IJavaHelpContextIds.JAVADOC_PROBLEMS_PROPERTY_PAGE);
                }
                else   {
                        PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), IJavaHelpContextIds.JAVADOC_PROBLEMS_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;
        }

        /* (non-Javadoc)
         * @see org.eclipse.jface.dialogs.DialogPage#dispose()
         */
        public void dispose() {
                if (fConfigurationBlock != null) {
                        fConfigurationBlock.dispose();
                }
                super.dispose();
        }

        /* (non-Javadoc)
         * @see org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage#enableProjectSpecificSettings(boolean)
         */
        protected void enableProjectSpecificSettings(boolean useProjectSpecificSettings) {
                super.enableProjectSpecificSettings(useProjectSpecificSettings);
                if (fConfigurationBlock != null) {
                        fConfigurationBlock.useProjectSpecificSettings(useProjectSpecificSettings);
                }
        }

        /*
         * @see org.eclipse.jface.preference.IPreferencePage#performDefaults()
         */
        protected void performDefaults() {
                super.performDefaults();
                if (fConfigurationBlock != null) {
                        fConfigurationBlock.performDefaults();
                }
        }

        /*
         * @see org.eclipse.jface.preference.IPreferencePage#performOk()
         */
        public boolean performOk() {
                if (fConfigurationBlock != null && !fConfigurationBlock.performOk()) {
                        return false;
                }
                return super.performOk();
        }

        /*
         * @see org.eclipse.jface.preference.IPreferencePage#performApply()
         */
        public void performApply() {
                if (fConfigurationBlock != null) {
                        fConfigurationBlock.performApply();
                }
        }


Clone Instance
3
Line Count
91
Source Line
41
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/ProblemSeveritiesPreferencePage.java

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

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

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

                super.createControl(parent);
                if (isProjectPreferencePage()) {
                        PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), IJavaHelpContextIds.PROBLEM_SEVERITIES_PROPERTY_PAGE);
                }
                else   {
                        PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), IJavaHelpContextIds.PROBLEM_SEVERITIES_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;
        }

        /* (non-Javadoc)
         * @see org.eclipse.jface.dialogs.DialogPage#dispose()
         */
        public void dispose() {
                if (fConfigurationBlock != null) {
                        fConfigurationBlock.dispose();
                }
                super.dispose();
        }

        /* (non-Javadoc)
         * @see org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage#enableProjectSpecificSettings(boolean)
         */
        protected void enableProjectSpecificSettings(boolean useProjectSpecificSettings) {
                super.enableProjectSpecificSettings(useProjectSpecificSettings);
                if (fConfigurationBlock != null) {
                        fConfigurationBlock.useProjectSpecificSettings(useProjectSpecificSettings);
                }
        }

        /*
         * @see org.eclipse.jface.preference.IPreferencePage#performDefaults()
         */
        protected void performDefaults() {
                super.performDefaults();
                if (fConfigurationBlock != null) {
                        fConfigurationBlock.performDefaults();
                }
        }

        /*
         * @see org.eclipse.jface.preference.IPreferencePage#performOk()
         */
        public boolean performOk() {
                if (fConfigurationBlock != null && !fConfigurationBlock.performOk()) {
                        return false;
                }
                return super.performOk();
        }

        /*
         * @see org.eclipse.jface.preference.IPreferencePage#performApply()
         */
        public void performApply() {
                if (fConfigurationBlock != null) {
                        fConfigurationBlock.performApply();
                }
        }


Clone AbstractionParameter Count: 5Parameter Bindings

public [[#variableb212c4c0]]() {
  setPreferenceStore(JavaPlugin.getDefault().getPreferenceStore());
  //setDescription(PreferencesMessages.getString("ProblemSeveritiesPreferencePage.description")); //$NON-NLS-1$
  //setDescription(PreferencesMessages.getString("JavadocProblemsPreferencePage.description")); //$NON-NLS-1$
  //setDescription(PreferencesMessages.JavaBuildPreferencePage_description); 
  // only used when page is shown programatically
  setTitle(PreferencesMessages. [[#variableb212c420]]);
}

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

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;
}

/* (non-Javadoc)
         * @see org.eclipse.jface.dialogs.DialogPage#dispose()
         */
public void dispose() {
  if (fConfigurationBlock != null) {
    fConfigurationBlock.dispose();
  }
  super.dispose();
}

/* (non-Javadoc)
         * @see org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage#enableProjectSpecificSettings(boolean)
         */
protected void enableProjectSpecificSettings(boolean useProjectSpecificSettings) {
  super.enableProjectSpecificSettings(useProjectSpecificSettings);
  if (fConfigurationBlock != null) {
    fConfigurationBlock.useProjectSpecificSettings(useProjectSpecificSettings);
  }
}

/*
         * @see org.eclipse.jface.preference.IPreferencePage#performDefaults()
         */
protected void performDefaults() {
  super.performDefaults();
  if (fConfigurationBlock != null) {
    fConfigurationBlock.performDefaults();
  }
}

/*
         * @see org.eclipse.jface.preference.IPreferencePage#performOk()
         */
public boolean performOk() {
  if (fConfigurationBlock != null && !fConfigurationBlock.performOk()) {
    return false;
  }
  return super.performOk();
}

/*
         * @see org.eclipse.jface.preference.IPreferencePage#performApply()
         */
public void performApply() {
  if (fConfigurationBlock != null) {
    fConfigurationBlock.performApply();
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b212c4c0]]
ProblemSeveritiesPreferencePage 
12[[#b212c4c0]]
JavadocProblemsPreferencePage 
13[[#b212c4c0]]
JavaBuildPreferencePage 
21[[#b212c420]]
ProblemSeveritiesPreferencePage_title 
22[[#b212c420]]
JavadocProblemsPreferencePage_title 
23[[#b212c420]]
JavaBuildPreferencePage_title 
31[[#b212c360]]
ProblemSeveritiesConfigurationBlock 
32[[#b212c360]]
JavadocProblemsConfigurationBlock 
33[[#b212c360]]
JavaBuildConfigurationBlock 
41[[#b212c300]]
PROBLEM_SEVERITIES_PROPERTY_PAGE 
42[[#b212c300]]
JAVADOC_PROBLEMS_PROPERTY_PAGE 
43[[#b212c300]]
JAVA_BUILD_PROPERTY_PAGE 
51[[#b212c280]]
PROBLEM_SEVERITIES_PREFERENCE_PAGE 
52[[#b212c280]]
JAVADOC_PROBLEMS_PREFERENCE_PAGE 
53[[#b212c280]]
JAVA_BUILD_PREFERENCE_PAGE