1 11 12 package org.eclipse.ui.internal.editors.text; 13 14 15 import org.eclipse.swt.SWT; 16 import org.eclipse.swt.widgets.Composite; 17 import org.eclipse.swt.widgets.Control; 18 19 import org.eclipse.jface.preference.PreferencePage; 20 21 import org.eclipse.ui.editors.text.ITextEditorHelpContextIds; 22 23 import org.eclipse.ui.IWorkbench; 24 import org.eclipse.ui.IWorkbenchPreferencePage; 25 import org.eclipse.ui.PlatformUI; 26 27 28 29 30 37 public class LanguageEditorPreferencePage extends PreferencePage implements IWorkbenchPreferencePage { 38 39 40 41 42 public LanguageEditorPreferencePage() { 43 setDescription("Configure the preferences for individual languages on their respective page."); setPreferenceStore(EditorsPlugin.getDefault().getPreferenceStore()); 45 } 46 47 50 public void init(IWorkbench workbench) { 51 } 52 53 56 public void createControl(Composite parent) { 57 super.createControl(parent); 58 PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), ITextEditorHelpContextIds.TEXT_EDITOR_PREFERENCE_PAGE); 59 } 60 61 64 protected Control createContents(Composite parent) { 65 Composite composite= new Composite(parent, SWT.NONE); 66 67 return composite; 68 } 69 70 73 public boolean performOk() { 74 return true; 75 } 76 } 77 | Popular Tags |