KickJava   Java API By Example, From Geeks To Geeks.

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


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  * Quick Diff 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 QuickDiffPreferencePage 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.jface.preference.PreferencePage#createDescriptionLabel(org.eclipse.swt.widgets.Composite)
39      */

40     protected Label createDescriptionLabel(Composite parent) {
41         return null; // no description for new look
42
}
43
44     /*
45      * @see org.eclipse.ui.internal.editors.text.AbstractConfigurationBlockPreferencePage#setDescription()
46      */

47     protected void setDescription() {
48         String JavaDoc description= TextEditorMessages.QuickDiffConfigurationBlock_description;
49         setDescription(description);
50     }
51
52     /*
53      * @see org.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 QuickDiffConfigurationBlock(overlayPreferenceStore);
64     }
65 }
66
Popular Tags