@Override public boolean performOk() { IWorkbenchPreferenceContainer container = (IWorkbenchPreferenceContainer) getContainer(); if (!processChanges(container)) { return false; } boolean retVal = super.performOk(); if (retVal && isProjectPreferencePage()) { try { IPreferenceStore preferenceStore = preferenceStoreAccessImpl.getWritablePreferenceStore(getProject()); if (preferenceStore instanceof IPersistentPreferenceStore) { ((IPersistentPreferenceStore) preferenceStore).save(); } } catch (Exception e) { System.err.println(e); retVal = false; } } return retVal; }
public AbstractFormatterSelectionBlock(IStatusChangeListener context, IProject project, IWorkbenchPreferenceContainer container) { super(context, project, ProfileManager.collectPreferenceKeys(TEMP_LIST, true), container); Collections.sort(TEMP_LIST, new Comparator<IScriptFormatterFactory>() { public int compare(IScriptFormatterFactory s1, IScriptFormatterFactory s2) { return s1.getName().compareToIgnoreCase(s2.getName()); } }); factories = TEMP_LIST.toArray(new IScriptFormatterFactory[TEMP_LIST.size()]); TEMP_LIST = new ArrayList<IScriptFormatterFactory>(); sourcePreviewViewers = new ArrayList<SourceViewer>(); // Override the super preferences lookup order. // All the changes to the formatter settings should go to the instance scope (no project scope here). Only the // selected profile will be picked from the project scope and then the instance scope when requested. fLookupOrder = new IScopeContext[] { EclipseUtil.instanceScope(), EclipseUtil.defaultScope() }; }
@Override public boolean performOk() { final boolean rebuild = rebuild(); final boolean reReconcile = needsReconcile(); Job buildJob = new ApplyChangesAndBuildJob(Messages.ValidationPreferencePage_RebuildJobTitle, rebuild, reReconcile); IPreferencePageContainer container = getContainer(); if (container instanceof IWorkbenchPreferenceContainer) { ((IWorkbenchPreferenceContainer) container).registerUpdateJob(buildJob); } else { buildJob.schedule(); } return true; }
private Control createUI_60_HrZone(final Composite parent) { final Composite container = new Composite(parent, SWT.NONE); GridDataFactory.fillDefaults().grab(true, false).applyTo(container); GridLayoutFactory.swtDefaults().extendedMargins(5, 5, 10, 5).numColumns(1).applyTo(container); { final PreferenceLinkArea prefLink = new PreferenceLinkArea( container, SWT.NONE, PrefPagePeople.ID, Messages.Compute_HrZone_Link, (IWorkbenchPreferenceContainer) getContainer(), new PrefPagePeopleData(PrefPagePeople.PREF_DATA_SELECT_HR_ZONES, null)); GridDataFactory .fillDefaults()// .grab(true, false) .hint(DEFAULT_DESCRIPTION_WIDTH, SWT.DEFAULT) .applyTo(prefLink.getControl()); } return container; }
@Override protected Control createContents(Composite parent) { final Composite composite= new Composite(parent, SWT.NONE); composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); composite.setLayout(new GridLayout()); Link link= new Link(composite, SWT.WRAP); GridData data= new GridData(SWT.FILL, SWT.BEGINNING, true, false); data.widthHint= 300; link.setLayoutData(data); link.setText(PreferencesMessages.JavaEditorPropertyPage_SaveActionLink_Text); link.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { IWorkbenchPreferenceContainer container= (IWorkbenchPreferenceContainer)getContainer(); container.openPage(SaveParticipantPreferencePage.PROPERTY_PAGE_ID, null); } }); noDefaultAndApplyButton(); Dialog.applyDialogFont(composite); return composite; }
public ComplianceConfigurationBlock(IStatusChangeListener context, IProject project, IWorkbenchPreferenceContainer container) { super(context, project, getKeys(project != null), container); setDefaultCompilerComplianceValues(); fBlockEnableState= null; fComplianceFollowsEEControls= new ArrayList<Control>(); fComplianceControls= new ArrayList<Control>(); fComplianceChildControls= new ArrayList<Control>(); fComplianceStatus= new StatusInfo(); fRememberedUserCompliance= new String[] { // caution: order depends on IDX_* constants getValue(PREF_PB_ASSERT_AS_IDENTIFIER), getValue(PREF_PB_ENUM_AS_IDENTIFIER), getValue(PREF_SOURCE_COMPATIBILITY), getValue(PREF_CODEGEN_TARGET_PLATFORM), getValue(PREF_COMPLIANCE), getValue(PREF_CODEGEN_INLINE_JSR_BYTECODE), getValue(PREF_CODEGEN_METHOD_PARAMETERS_ATTR) }; }
public ProjectsWorkbookPage(ListDialogField<CPListElement> classPathList, IWorkbenchPreferenceContainer pageContainer) { fClassPathList= classPathList; fPageContainer= pageContainer; fSWTControl= null; String[] buttonLabels= new String[] { NewWizardMessages.ProjectsWorkbookPage_projects_add_button, null, NewWizardMessages.ProjectsWorkbookPage_projects_edit_button, NewWizardMessages.ProjectsWorkbookPage_projects_remove_button }; ProjectsAdapter adapter= new ProjectsAdapter(); fProjectsList= new TreeListDialogField<CPListElement>(adapter, buttonLabels, new CPListLabelProvider()); fProjectsList.setDialogFieldListener(adapter); fProjectsList.setLabelText(NewWizardMessages.ProjectsWorkbookPage_projects_label); fProjectsList.enableButton(IDX_REMOVE, false); fProjectsList.enableButton(IDX_EDIT, false); fProjectsList.setViewerComparator(new CPListElementSorter()); }
private void configurePreferenceLink(Link link, final IJavaProject javaProject, final String preferenceId, final String propertyId) { link.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { if (fContainer instanceof IWorkbenchPreferenceContainer) { IWorkbenchPreferenceContainer container= (IWorkbenchPreferenceContainer)fContainer; if (javaProject != null) { container.openPage(propertyId, null); } else { container.openPage(preferenceId, null); } } else { PreferencesUtil.createPreferenceDialogOn(fShell, preferenceId, null, null); } } }); }
public ComplianceConfigurationBlock(IStatusChangeListener context, IProject project, IWorkbenchPreferenceContainer container) { super(context, project, getKeys(project != null), container); setDefaultCompilerComplianceValues(); fBlockEnableState= null; fComplianceFollowsEEControls= new ArrayList<Control>(); fComplianceControls= new ArrayList<Control>(); fComplianceChildControls= new ArrayList<Control>(); fComplianceStatus= new StatusInfo(); fRememberedUserCompliance= new String[] { // caution: order depends on IDX_* constants getValue(PREF_PB_ASSERT_AS_IDENTIFIER), getValue(PREF_PB_ENUM_AS_IDENTIFIER), getValue(PREF_SOURCE_COMPATIBILITY), getValue(PREF_CODEGEN_TARGET_PLATFORM), getValue(PREF_COMPLIANCE), getValue(PREF_CODEGEN_INLINE_JSR_BYTECODE), }; }
private void createLinkArea( Composite parent ) { IPreferenceNode node = getPreferenceNode( WBROWSER_PAGE_ID ); if ( node != null ) { PreferenceLinkArea linkArea = new PreferenceLinkArea( parent, SWT.WRAP, WBROWSER_PAGE_ID, Messages.getString( "designer.preview.preference.browser.extbrowser.link" ), //$NON-NLS-1$ (IWorkbenchPreferenceContainer) getContainer( ), null ); GridData data = new GridData( GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL ); linkArea.getControl( ).setLayoutData( data ); } }
/** * This method has been copied from org.eclipse.xtext.builder.preferences.BuilderPreferencePage. */ private void scheduleCleanerJob(IPreferencePageContainer preferencePageContainer, String folderNameToClean) { DerivedResourceCleanerJob derivedResourceCleanerJob = cleanerProvider.get(); derivedResourceCleanerJob.setUser(true); derivedResourceCleanerJob.initialize(getProject(), folderNameToClean); if (preferencePageContainer != null) { IWorkbenchPreferenceContainer container = (IWorkbenchPreferenceContainer) getContainer(); container.registerUpdateJob(derivedResourceCleanerJob); } else { derivedResourceCleanerJob.schedule(); } }
/** * This method has been copied and adapted from org.eclipse.xtext.ui.preferences.OptionsConfigurationBlock. */ @Override protected boolean processChanges(IWorkbenchPreferenceContainer container) { boolean needsBuild = !getPreferenceChanges().isEmpty() | projectSpecificChanged; boolean doBuild = false; if (needsBuild) { int count = getRebuildCount(); if (count > rebuildCount) { needsBuild = false; rebuildCount = count; } } if (needsBuild) { String[] strings = getFullBuildDialogStrings(project == null); if (strings != null) { MessageDialog dialog = new MessageDialog(this.getShell(), strings[0], null, strings[1], MessageDialog.QUESTION, new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL }, 2); int res = dialog.open(); if (res == 0) { doBuild = true; } else if (res != 1) { return false; } } } if (container != null) { if (doBuild) { incrementRebuildCount(); container.registerUpdateJob(getBuildJob(getProject())); } } else { if (doBuild) { getBuildJob(getProject()).schedule(); } } return true; }
private void addRelatedLink(Composite parent, String pageId, String message) { PreferenceLinkArea contentTypeArea = new PreferenceLinkArea(parent, SWT.NONE, pageId, message, (IWorkbenchPreferenceContainer) getContainer(), null); GridData data = new GridData(GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL); contentTypeArea.getControl().setLayoutData(data); }
/** * create the Label Decoration/general page * @param parent * @return */ private Control createGeneralDecoratorPage(Composite parent) { Composite composite = new Composite(parent, SWT.NULL); GridLayout layout = new GridLayout(); composite.setLayout(layout); GridData data = new GridData(); data.horizontalAlignment = GridData.FILL; composite.setLayoutData(data); SWTUtils.createPreferenceLink((IWorkbenchPreferenceContainer) getContainer(), composite, "org.eclipse.ui.preferencePages.Decorators", Policy.bind("SVNDecoratorPreferencesPage.labelDecorationsLink")); //$NON-NLS-1$ //$NON-NLS-2$ showDirty = createCheckBox(composite, Policy.bind("SVNDecoratorPreferencesPage.computeDeep")); //$NON-NLS-1$ enableFontDecorators = createCheckBox(composite, Policy.bind("SVNDecoratorPreferencesPage.useFontDecorators")); //$NON-NLS-1$ SWTUtils.createPreferenceLink((IWorkbenchPreferenceContainer) getContainer(), composite, "org.eclipse.ui.preferencePages.ColorsAndFonts", Policy.bind("SVNDecoratorPreferencesPage.colorsAndFontsLink")); //$NON-NLS-1$ //$NON-NLS-2$ return composite; }
public AngularCLIConfigurationBlock(IStatusChangeListener context, IProject project, IWorkbenchPreferenceContainer container) { super(context, project, getKeys(), container); ngVersionJob = new NgVersionJob(); ngVersionJob.setNodeFile(getNodejsPath(project)); ngVersionJob.addJobChangeListener(new JobChangeAdapter() { @Override public void done(IJobChangeEvent event) { IStatus status = event.getResult(); if (!(status instanceof CLIStatus)) { return; } final CLIStatus s = (CLIStatus) status; Display.getDefault().asyncExec(new Runnable() { @Override public void run() { if (cliVersion.isDisposed()) { return; } if (!StringUtils.isEmpty(s.getVersion())) { cliVersion.setText(s.getVersion()); } else { cliPath.setText(""); cliVersion.setText(""); } fContext.statusChanged(status); } }); } }); blockEnableState = null; }
public OptionsConfigurationBlock(IStatusChangeListener context, IProject project, Key[] allKeys, IWorkbenchPreferenceContainer container) { fContext = context; fProject = project; fAllKeys = allKeys; fContainer = container; if (container == null) { fManager = new WorkingCopyManager(); } else { fManager = container.getWorkingCopyManager(); } if (fProject != null) { fLookupOrder = new IScopeContext[] { new ProjectScope(fProject), InstanceScope.INSTANCE, DefaultScope.INSTANCE }; } else { fLookupOrder = new IScopeContext[] { InstanceScope.INSTANCE, DefaultScope.INSTANCE }; } testIfOptionsComplete(allKeys); if (fProject == null || hasProjectSpecificOptions(fProject)) { fDisabledProjectSettings = null; } else { fDisabledProjectSettings = new IdentityHashMap(); for (int i = 0; i < allKeys.length; i++) { Key curr = allKeys[i]; fDisabledProjectSettings.put(curr, curr.getStoredValue(fLookupOrder, false, fManager)); } } settingsUpdated(); fCheckBoxes = new ArrayList(); fComboBoxes = new ArrayList(); fTextBoxes = new ArrayList(2); fLabels = new HashMap(); fExpandedComposites = new ArrayList(); fRebuildCount = getRebuildCount(); }
@Override public void createControl(Composite parent) { IWorkbenchPreferenceContainer container = (IWorkbenchPreferenceContainer) getContainer(); IPreferenceStore preferenceStore = preferenceStoreAccessImpl.getWritablePreferenceStore(getProject()); validatorConfigurationBlock.setProject(getProject()); validatorConfigurationBlock.setPreferenceStore(preferenceStore); validatorConfigurationBlock.setWorkbenchPreferenceContainer(container); validatorConfigurationBlock.setStatusChangeListener(getNewStatusChangedListener()); super.createControl(parent); }
public OptionsConfigurationBlock(IProject project, IPreferenceStore preferenceStore, IWorkbenchPreferenceContainer container) { this.project = project; this.keys = new String[] {}; this.setPreferenceStore(preferenceStore); this.workbenchPreferenceContainer = container; }
protected boolean processChanges(IWorkbenchPreferenceContainer container) { boolean needsBuild = !getPreferenceChanges().isEmpty(); boolean doBuild = false; if (needsBuild) { int count = getRebuildCount(); if (count > rebuildCount) { needsBuild = false; rebuildCount = count; } } if (needsBuild) { String[] strings = getFullBuildDialogStrings(project == null); if (strings != null) { MessageDialog dialog = new MessageDialog(shell, strings[0], null, strings[1], MessageDialog.QUESTION, new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL }, 2); int res = dialog.open(); if (res == 0) { doBuild = true; } else if (res != 1) { return false; } } } savePreferences(); if (container != null) { if (doBuild) { incrementRebuildCount(); container.registerUpdateJob(getBuildJob(getProject())); } } else { if (doBuild) { getBuildJob(getProject()).schedule(); } } captureOriginalSettings(keys); return true; }
@Override protected Control createContents(final Composite parent) { noDefaultAndApplyButton(); final Composite c = new Composite(parent, SWT.NONE); c.setLayout(new GridLayout(1, false)); final Link link = new Link(c, SWT.NONE); link.setText("Turn off current line highlighting <A>here</A>."); final FontData[] fontData = link.getFont().getFontData(); for (final FontData fd : fontData) { fd.setHeight(10); fd.setStyle(SWT.BOLD); } link.setFont(new Font(getShell().getDisplay(), fontData)); link.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(final SelectionEvent e) { final IWorkbenchPreferenceContainer container = (IWorkbenchPreferenceContainer) getContainer(); container.openPage("org.eclipse.ui.preferencePages.GeneralTextEditor", null); } }); folder = new TabFolder(c, SWT.NONE); folder.setLayoutData(new GridData(GridData.FILL_BOTH)); final TabItem ti = new TabItem(folder, SWT.NONE); ti.setText("Themes"); ti.setControl(createCategoryControl(folder)); folder.pack(); return c; }
public PropertyLinkArea(Composite parent, int style, final String pageId, IAdaptable element, String message, final IWorkbenchPreferenceContainer pageContainer) { this.element = element; pageLink = new Link(parent, style); IPreferenceNode node = getPreferenceNode(pageId); String text = null; if (node == null) { text = NLS.bind(WorkbenchMessages.PreferenceNode_NotFound, pageId); } else { text = NLS.bind(message, node.getLabelText()); } pageLink.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { pageContainer.openPage(pageId, null); } }); pageLink.setText(text); }
public final void createControl(Composite parent) { // create the configuration block here so the page works as both types IWorkbenchPreferenceContainer container = (IWorkbenchPreferenceContainer) getContainer(); block = createOptionsBlock(getNewStatusChangedListener(), getProject(), container); // calls createPreferenceContent(Composite) super.createControl(parent); String helpId = isProjectPreferencePage() ? getProjectHelpId() : getHelpId(); if (helpId != null) { PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), helpId); } }
public AbstractOptionsBlock(IStatusChangeListener context, IProject project, PreferenceKey[] allKeys, IWorkbenchPreferenceContainer container) { super(context, project, allKeys, container); this.bindManager = new ControlBindingManager(this, context); }
private void createTextEditorLink(Composite appearanceComposite) { // Link to general text editor prefs from Eclipse - they can set tabs/spaces/whitespace drawing, etc Link link = new Link(appearanceComposite, SWT.NONE); link.setText(Messages.EditorsPreferencePage_GeneralTextEditorPrefLink); link.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { ((IWorkbenchPreferenceContainer) getContainer()).openPage(GENERAL_TEXT_EDITOR_PREF_ID, null); } }); }
public TodoTaskConfigurationBlock(IStatusChangeListener context, IProject project, IWorkbenchPreferenceContainer container) { super(context, project, getKeys(), container); TaskTagAdapter adapter= new TaskTagAdapter(); String[] buttons= new String[] { PreferencesMessages.TodoTaskConfigurationBlock_markers_tasks_add_button, PreferencesMessages.TodoTaskConfigurationBlock_markers_tasks_edit_button, PreferencesMessages.TodoTaskConfigurationBlock_markers_tasks_remove_button, null, PreferencesMessages.TodoTaskConfigurationBlock_markers_tasks_setdefault_button, }; fTodoTasksList= new ListDialogField<TodoTask>(adapter, buttons, new TodoTaskLabelProvider()); fTodoTasksList.setDialogFieldListener(adapter); fTodoTasksList.setRemoveButtonIndex(IDX_REMOVE); String[] columnsHeaders= new String[] { PreferencesMessages.TodoTaskConfigurationBlock_markers_tasks_name_column, PreferencesMessages.TodoTaskConfigurationBlock_markers_tasks_priority_column, }; fTodoTasksList.setTableColumns(new ListDialogField.ColumnsDescription(columnsHeaders, true)); fTodoTasksList.setViewerComparator(new TodoTaskSorter()); fCaseSensitiveCheckBox= new SelectionButtonDialogField(SWT.CHECK); fCaseSensitiveCheckBox.setLabelText(PreferencesMessages.TodoTaskConfigurationBlock_casesensitive_label); fCaseSensitiveCheckBox.setDialogFieldListener(adapter); unpackTodoTasks(); if (fTodoTasksList.getSize() > 0) { fTodoTasksList.selectFirstElement(); } else { fTodoTasksList.enableButton(IDX_EDIT, false); fTodoTasksList.enableButton(IDX_DEFAULT, false); } fTaskTagsStatus= new StatusInfo(); }
@Override 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); }
@Override 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); } }
@Override public void createControl(Composite parent) { IWorkbenchPreferenceContainer container= (IWorkbenchPreferenceContainer) getContainer(); fConfigurationBlock= new CodeAssistAdvancedConfigurationBlock(getNewStatusChangedListener(), container); super.createControl(parent); PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), IJavaHelpContextIds.JAVA_EDITOR_PREFERENCE_PAGE); }
@Override 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); }
public ProblemSeveritiesConfigurationBlock(IStatusChangeListener context, IProject project, IWorkbenchPreferenceContainer container) { super(context, project, getKeys(), container); // Compatibility code for the merge of the two option PB_SIGNAL_PARAMETER: if (ENABLED.equals(getValue(PREF_PB_SIGNAL_PARAMETER_IN_ABSTRACT))) { setValue(PREF_PB_SIGNAL_PARAMETER_IN_OVERRIDING, ENABLED); } }
@Override 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); } }
@Override 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); } }
@Override public void createControl(Composite parent) { IWorkbenchPreferenceContainer container= (IWorkbenchPreferenceContainer) getContainer(); fConfigurationBlock= new CodeAssistFavoritesConfigurationBlock(getNewStatusChangedListener(), container); super.createControl(parent); PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), IJavaHelpContextIds.JAVA_EDITOR_PREFERENCE_PAGE); }
@Override protected boolean processChanges(IWorkbenchPreferenceContainer container) { for (Iterator<ModelElement> it= fModel.elements.iterator(); it.hasNext();) { ModelElement item= it.next(); item.update(); } return super.processChanges(container); }
@Override public void createControl(Composite parent) { IWorkbenchPreferenceContainer container= (IWorkbenchPreferenceContainer) getContainer(); fConfigurationBlock= new CodeAssistConfigurationBlock(getNewStatusChangedListener(), container); super.createControl(parent); PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), IJavaHelpContextIds.JAVA_EDITOR_PREFERENCE_PAGE); }
@Override 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); } }