1 11 package org.eclipse.ui.internal.ide.dialogs; 12 13 import org.eclipse.jface.preference.IPreferenceStore; 14 import org.eclipse.swt.widgets.Composite; 15 import org.eclipse.swt.widgets.Control; 16 import org.eclipse.ui.IWorkbenchPreferencePage; 17 import org.eclipse.ui.PlatformUI; 18 import org.eclipse.ui.internal.IWorkbenchHelpContextIds; 19 import org.eclipse.ui.internal.dialogs.WorkbenchPreferencePage; 20 import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; 21 22 28 public class IDEWorkbenchPreferencePage extends WorkbenchPreferencePage 29 implements IWorkbenchPreferencePage { 30 31 36 protected Control createContents(Composite parent) { 37 38 PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, 39 IWorkbenchHelpContextIds.WORKBENCH_PREFERENCE_PAGE); 40 41 Composite composite = createComposite(parent); 42 43 createShowUserDialogPref(composite); 44 createStickyCyclePref(composite); 45 createHeapStatusPref(composite); 46 47 createOpenModeGroup(composite); 48 49 applyDialogFont(composite); 50 51 return composite; 52 } 53 54 58 protected IPreferenceStore getIDEPreferenceStore() { 59 return IDEWorkbenchPlugin.getDefault().getPreferenceStore(); 60 } 61 62 65 protected void performDefaults() { 66 super.performDefaults(); 67 } 68 69 72 public boolean performOk() { 73 return super.performOk(); 74 } 75 76 } 77 | Popular Tags |