fable.framework.toolboxpreferences
Class ConfigurationPreferencesPage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.preference.PreferencePage
org.eclipse.jface.preference.FieldEditorPreferencePage
fable.framework.toolboxpreferences.ConfigurationPreferencesPage
- 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 ConfigurationPreferencesPage
- extends org.eclipse.jface.preference.FieldEditorPreferencePage
- implements org.eclipse.ui.IWorkbenchPreferencePage
This class defines configuration preferences for fable's programs.
For instance, preference define perspective used for small or large screen.
A perspective defines the arrangement of workbench element. If screen size is
large, views are displayed on the same page, otherwise they are layered. In
preferences initializer (
fable.framework.toolboxpreferences.PreferencesInitializer.java
), default perspective option depends on screen size.
- Author:
- suchet
Field Summary |
static java.lang.String |
perspectiveLayout
|
static java.lang.String |
prefLargeScreen
This constant is used to define a preference for all fable perspective
for large screen. |
static java.lang.String |
prefSmallScreen
This constant is used to define a prefRadioGroupFieldEditorerence for all
fable perspective for small screen. |
Fields inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage |
FLAT, GRID |
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
ERROR, INFORMATION, NONE, WARNING |
Method Summary |
void |
init(org.eclipse.ui.IWorkbench workbench)
|
boolean |
performOk()
|
Methods inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage |
dispose, propertyChange, setVisible |
Methods inherited from class org.eclipse.jface.preference.PreferencePage |
applyData, computeSize, createControl, getContainer, getPreferenceStore, isValid, okToLeave, performCancel, performHelp, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString |
Methods inherited from class org.eclipse.jface.dialogs.DialogPage |
getControl, getDescription, getErrorMessage, getImage, getMessage, getMessageType, getShell, getTitle, setDescription, setImageDescriptor, setMessage |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.jface.preference.IPreferencePage |
computeSize, isValid, okToLeave, performCancel, setContainer, setSize |
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage |
createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible |
perspectiveLayout
public static final java.lang.String perspectiveLayout
- See Also:
- Constant Field Values
prefSmallScreen
public static final java.lang.String prefSmallScreen
- This constant is used to define a prefRadioGroupFieldEditorerence for all
fable perspective for small screen.
Screen size is defined in
fable.toolbox.internal.IVarKeys.SCREENHEIGHT
- See Also:
- Constant Field Values
prefLargeScreen
public static final java.lang.String prefLargeScreen
- This constant is used to define a preference for all fable perspective
for large screen.
Screen size is defined in
fable.toolbox.internal.IVarKeys.SCREENHEIGHT
- See Also:
- Constant Field Values
ConfigurationPreferencesPage
public ConfigurationPreferencesPage()
init
public void init(org.eclipse.ui.IWorkbench workbench)
- Specified by:
init
in interface org.eclipse.ui.IWorkbenchPreferencePage
performOk
public boolean performOk()
- Specified by:
performOk
in interface org.eclipse.jface.preference.IPreferencePage
- Overrides:
performOk
in class org.eclipse.jface.preference.FieldEditorPreferencePage