KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > ui > preferences > JavaEditorHoverPreferencePage


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.jdt.internal.ui.preferences;
13
14 import org.eclipse.swt.widgets.Composite;
15 import org.eclipse.swt.widgets.Label;
16
17 import org.eclipse.jdt.internal.ui.IJavaHelpContextIds;
18 import org.eclipse.jdt.internal.ui.JavaPlugin;
19
20
21
22 /**
23  * Quick Diff preference page.
24  * <p>
25  * Note: Must be public since it is referenced from plugin.xml
26  * </p>
27  *
28  * @since 3.0
29  */

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

35     protected String JavaDoc getHelpId() {
36         return IJavaHelpContextIds.JAVA_EDITOR_PREFERENCE_PAGE;
37     }
38
39     /*
40      * @see org.eclipse.ui.internal.editors.text.AbstractConfigurationBlockPreferencePage#setDescription()
41      */

42     protected void setDescription() {
43         String JavaDoc description= PreferencesMessages.JavaEditorPreferencePage_hoverTab_title;
44         setDescription(description);
45     }
46     
47     /*
48      * @see org.org.eclipse.ui.internal.editors.text.AbstractConfigurationBlockPreferencePage#setPreferenceStore()
49      */

50     protected void setPreferenceStore() {
51         setPreferenceStore(JavaPlugin.getDefault().getPreferenceStore());
52     }
53     
54     
55     protected Label createDescriptionLabel(Composite parent) {
56         return null; // no description for new look.
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 JavaEditorHoverConfigurationBlock(this, overlayPreferenceStore);
64     }
65 }
66
Popular Tags