CloneSet996


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
40230.993class_body_declarations[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13251
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CompliancePreferencePage.java
24047
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/TodoTaskPreferencePage.java
Clone Instance
1
Line Count
32
Source Line
51
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CompliancePreferencePage.java

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

                super.createControl(parent);
                if (isProjectPreferencePage()) {
                        PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), IJavaHelpContextIds.COMPILER_PROPERTY_PAGE);
                }
                else   {
                        PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), IJavaHelpContextIds.COMPILER_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
40
Source Line
47
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/TodoTaskPreferencePage.java

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

                super.createControl(parent);

                if (isProjectPreferencePage()) {
                        PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), IJavaHelpContextIds.TODOTASK_PROPERTY_PAGE);
                }
                else   {
                        PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), IJavaHelpContextIds.TODOTASK_PREFERENCE_PAGE);
                }
        }

        /* (non-Javadoc)
         * @see org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage#createPreferenceContent(org.eclipse.swt.widgets.Composite)
         */
        protected Control createPreferenceContent(Composite composite) {
                return fConfigurationBlock.createContents(composite);
        }

        /* (non-Javadoc)
         * @see org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage#hasProjectSpecificOptions(org.eclipse.core.resources.IProject)
         */
        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: 3Parameter Bindings

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

/* (non-Javadoc)
         * @see org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage#createPreferenceContent(org.eclipse.swt.widgets.Composite)
         */
protected Control createPreferenceContent(Composite composite) {
  return fConfigurationBlock.createContents(composite);
}

/* (non-Javadoc)
         * @see org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage#hasProjectSpecificOptions(org.eclipse.core.resources.IProject)
         */
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[[#a3f8b360]]
TodoTaskConfigurationBlock 
12[[#a3f8b360]]
ComplianceConfigurationBlock 
21[[#b313d9e0]]
TODOTASK_PROPERTY_PAGE 
22[[#b313d9e0]]
COMPILER_PROPERTY_PAGE 
31[[#b313d9c0]]
TODOTASK_PREFERENCE_PAGE 
32[[#b313d9c0]]
COMPILER_PREFERENCE_PAGE