1
/*******************************************************************************
2
* Copyright (c) 2006 IBM Corporation.
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
9
* IBM Corporation - Jeff Briggs, Henry Hughes, Ryan Morse
10
*******************************************************************************/
12
package org.eclipse.linuxtools.internal.systemtap.ui.ide.preferences;
14
import org.eclipse.jface.preference.*;
15
import org.eclipse.linuxtools.internal.systemtap.ui.ide.IDEPlugin;
16
import org.eclipse.linuxtools.internal.systemtap.ui.ide.Localization;
17
import org.eclipse.linuxtools.systemtap.ui.logging.LogManager;
18
import org.eclipse.ui.IWorkbenchPreferencePage;
19
import org.eclipse.ui.IWorkbench;
22
public class CodeAssistPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
23
public CodeAssistPreferencePage() {
25
LogManager.logDebug("Start CodeAssistPreferencePage:", this);
26
setPreferenceStore(IDEPlugin.getDefault().getPreferenceStore());
27
setDescription(Localization.getString("CodeAssistPreferencePage.CodeAssistPreferenceDescription"));
28
LogManager.logDebug("End CodeAssistPreferencePage:", this);
32
* Creates the field editors. Field editors are abstractions of
33
* the common GUI blocks needed to manipulate various types
34
* of preferences. Each field editor knows how to save and
37
public void createFieldEditors() {
38
LogManager.logDebug("Start createFieldEditors:", this);
40
new BooleanFieldEditor(
41
IDEPreferenceConstants.P_USE_CODE_ASSIST,
42
Localization.getString("CodeAssistPreferencePage.UseCodeAssist"),
43
getFieldEditorParent()));
44
addField(new RadioGroupFieldEditor(
45
IDEPreferenceConstants.P_COMPLETION,
46
Localization.getString("CodeAssistPreferencePage.HowCodeAdded"),
49
{Localization.getString("CodeAssistPreferencePage.Insert"), IDEPreferenceConstants.P_COMPLETION_INSERT },
50
{Localization.getString("CodeAssistPreferencePage.Overwrite"), IDEPreferenceConstants.P_COMPLETION_OVERWRITE }},
51
getFieldEditorParent()));
53
new IntegerFieldEditor(
54
IDEPreferenceConstants.P_ACTIVATION_DELAY,
55
Localization.getString("CodeAssistPreferencePage.ActivationDelay"),
56
getFieldEditorParent()));
58
new StringFieldEditor(
59
IDEPreferenceConstants.P_ACTIVATION_TRIGGER,
60
Localization.getString("CodeAssistPreferencePage.ActivationTrigger"),
61
getFieldEditorParent()));
62
LogManager.logDebug("End createFieldEditors", this);
65
public void init(IWorkbench workbench) {
66
LogManager.logInfo("Initializing", this);
69
public void dispose() {
70
LogManager.logInfo("Disposing", this);
b'\\ No newline at end of file'