KickJava   Java API By Example, From Geeks To Geeks.

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


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
15 import org.eclipse.swt.widgets.Composite;
16 import org.eclipse.swt.widgets.Label;
17
18 import org.eclipse.ui.editors.text.EditorsUI;
19 import org.eclipse.ui.editors.text.ITextEditorHelpContextIds;
20
21 /**
22  * The page for setting the editor options.
23  *
24  * @since 3.2
25  */

26 public final class LinkedModePreferencePage extends AbstractConfigurationBlockPreferencePage {
27     
28     /*
29      * @see org.eclipse.ui.internal.editors.text.AbstractConfigureationBlockPreferencePage#getHelpId()
30      */

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

38     protected void setDescription() {
39         String JavaDoc description= TextEditorMessages.LinkedModeConfigurationBlock_linking_title;
40         setDescription(description);
41     }
42     
43     /*
44      * @see org.org.eclipse.ui.internal.editors.text.AbstractConfigurationBlockPreferencePage#setPreferenceStore()
45      */

46     protected void setPreferenceStore() {
47         setPreferenceStore(EditorsUI.getPreferenceStore());
48     }
49     
50     
51     protected Label createDescriptionLabel(Composite parent) {
52         return null; // no description for new look.
53
}
54
55     /*
56      * @see org.eclipse.ui.internal.editors.text.AbstractConfigureationBlockPreferencePage#createConfigurationBlock(org.eclipse.ui.internal.editors.text.OverlayPreferenceStore)
57      */

58     protected IPreferenceConfigurationBlock createConfigurationBlock(OverlayPreferenceStore overlayPreferenceStore) {
59         return new LinkedModeConfigurationBlock(overlayPreferenceStore);
60     }
61 }
62
Popular Tags