KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > editors > text > AnnotationsPreferencePage


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.ui.internal.editors.text;
13
14 import org.eclipse.swt.widgets.Composite;
15 import org.eclipse.swt.widgets.Label;
16
17 import org.eclipse.ui.editors.text.ITextEditorHelpContextIds;
18
19
20 /**
21  * Annotations preference page.
22  * <p>
23  * Note: Must be public since it is referenced from plugin.xml
24  * </p>
25  *
26  * @since 3.0
27  */

28 public class AnnotationsPreferencePage extends AbstractConfigurationBlockPreferencePage {
29
30     /*
31      * @see org.eclipse.ui.internal.editors.text.AbstractConfigureationBlockPreferencePage#getHelpId()
32      */

33     protected String JavaDoc getHelpId() {
34         return ITextEditorHelpContextIds.TEXT_EDITOR_PREFERENCE_PAGE;
35     }
36
37     /*
38      * @see org.eclipse.ui.internal.editors.text.AbstractConfigurationBlockPreferencePage#setDescription()
39      */

40     protected void setDescription() {
41         String JavaDoc description= TextEditorMessages.AnnotationsConfigurationBlock_description;
42         setDescription(description);
43     }
44
45     /*
46      * @see org.eclipse.jface.preference.PreferencePage#createDescriptionLabel(org.eclipse.swt.widgets.Composite)
47      */

48     protected Label createDescriptionLabel(Composite parent) {
49         return null;
50     }
51
52     /*
53      * @see org.eclipse.ui.internal.editors.text.AbstractConfigurationBlockPreferencePage#setPreferenceStore()
54      */

55     protected void setPreferenceStore() {
56         setPreferenceStore(EditorsPlugin.getDefault().getPreferenceStore());
57     }
58
59     /*
60      * @see org.eclipse.ui.internal.editors.text.AbstractConfigureationBlockPreferencePage#createConfigurationBlock(org.eclipse.ui.internal.editors.text.OverlayPreferenceStore)
61      */

62     protected IPreferenceConfigurationBlock createConfigurationBlock(OverlayPreferenceStore overlayPreferenceStore) {
63         return new AnnotationsConfigurationBlock(overlayPreferenceStore);
64     }
65 }
66
Popular Tags