edu.wpi.ebob.preferences
Class OBPreferencePage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.preference.PreferencePage
          extended by org.eclipse.jface.preference.FieldEditorPreferencePage
              extended by edu.wpi.ebob.preferences.OBPreferencePage
All Implemented Interfaces:
java.util.EventListener, org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.preference.IPreferencePage, org.eclipse.jface.util.IPropertyChangeListener, org.eclipse.ui.IWorkbenchPreferencePage

public class OBPreferencePage
extends org.eclipse.jface.preference.FieldEditorPreferencePage
implements org.eclipse.ui.IWorkbenchPreferencePage

This class represents the preference page for the Object Bench that is contributed to the Preferences dialog.

This page is used to modify preferences only. They are stored in the preference store that belongs to the main plug-in class. That way, preferences can be accessed directly via the preference store.


Field Summary
static java.lang.String P_BG_COLOR
          The property for the background color to be displayed in instances.
static java.lang.String P_BG_COLOR_SELECTED
          The property for the background color to be displayed in selected instances.
static java.lang.String P_CONFIRM_INITIALIZE
          The property for whether the system should ask for confirmation before initializing the Object Bench.
static java.lang.String P_CONFIRM_REMOVE
          The property for whether the system should ask for confirmation before removing a selected instance.
static java.lang.String P_FG_COLOR
          The property for the text color to be displayed in instances.
static java.lang.String P_FONT
          The property for the font used in instances.
static java.lang.String P_FQ_CLASS_NAMES
          The property for whether the object bench views should use full-qualified.
 
Fields inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage
FLAT, GRID, MARGIN_HEIGHT, MARGIN_WIDTH, VERTICAL_SPACING
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
OBPreferencePage()
           
 
Method Summary
 void createFieldEditors()
          Creates the field editors.
 void init(org.eclipse.ui.IWorkbench workbench)
           
 
Methods inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage
addField, adjustGridLayout, applyFont, checkState, createContents, dispose, getFieldEditorParent, initialize, performDefaults, performOk, propertyChange, setVisible
 
Methods inherited from class org.eclipse.jface.preference.PreferencePage
applyData, applyDialogFont, computeSize, contributeButtons, createControl, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, okToLeave, performApply, performCancel, performHelp, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButton
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.preference.IPreferencePage
computeSize, isValid, okToLeave, performCancel, performOk, setContainer, setSize
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible
 

Field Detail

P_FONT

public static final java.lang.String P_FONT
The property for the font used in instances. The default for this is whatever the default is on a particular operating system- no changes are made by this plug-in.

See Also:
Constant Field Values

P_FQ_CLASS_NAMES

public static final java.lang.String P_FQ_CLASS_NAMES
The property for whether the object bench views should use full-qualified. The default is false.

See Also:
Constant Field Values

P_CONFIRM_REMOVE

public static final java.lang.String P_CONFIRM_REMOVE
The property for whether the system should ask for confirmation before removing a selected instance. The default is true.

See Also:
Constant Field Values

P_FG_COLOR

public static final java.lang.String P_FG_COLOR
The property for the text color to be displayed in instances. The default is black (or whatever the OS decides).

See Also:
Constant Field Values

P_BG_COLOR

public static final java.lang.String P_BG_COLOR
The property for the background color to be displayed in instances. The default is 129,121,229.

See Also:
Constant Field Values

P_BG_COLOR_SELECTED

public static final java.lang.String P_BG_COLOR_SELECTED
The property for the background color to be displayed in selected instances. The default is 121,182,229.

See Also:
Constant Field Values

P_CONFIRM_INITIALIZE

public static final java.lang.String P_CONFIRM_INITIALIZE
The property for whether the system should ask for confirmation before initializing the Object Bench. The default is true.

See Also:
Constant Field Values
Constructor Detail

OBPreferencePage

public OBPreferencePage()
Method Detail

createFieldEditors

public void createFieldEditors()
Creates the field editors. Field editors are abstractions of the common GUI blocks needed to manipulate various types of preferences. Each field editor knows how to save and restore itself.

Specified by:
createFieldEditors in class org.eclipse.jface.preference.FieldEditorPreferencePage

init

public void init(org.eclipse.ui.IWorkbench workbench)
Specified by:
init in interface org.eclipse.ui.IWorkbenchPreferencePage