ch.elexis.preferences
Class UserSettings2
java.lang.Object
FieldEditorPreferencePage
ch.elexis.preferences.UserSettings2
public class UserSettings2
- extends FieldEditorPreferencePage
Method Summary |
void |
init(IWorkbench workbench)
|
boolean |
performOk()
|
static void |
saveExpandedState(java.lang.String field,
boolean state)
save the state of an expandable composite |
static void |
setExpandedState(ExpandableComposite ec,
java.lang.String field)
Set the state of an expandable Composite to the previously saved state. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REMEMBER_LAST_STATE
public static final java.lang.String REMEMBER_LAST_STATE
ALWAYS_CLOSED
public static final java.lang.String ALWAYS_CLOSED
ALWAYS_OPEN
public static final java.lang.String ALWAYS_OPEN
EXPANDABLE_COMPOSITES_BASE
public static final java.lang.String EXPANDABLE_COMPOSITES_BASE
- See Also:
- Constant Field Values
EXPANDABLE_COMPOSITES
public static final java.lang.String EXPANDABLE_COMPOSITES
- See Also:
- Constant Field Values
STATES
public static final java.lang.String STATES
- See Also:
- Constant Field Values
OPEN
public static final java.lang.String OPEN
- See Also:
- Constant Field Values
CLOSED
public static final java.lang.String CLOSED
- See Also:
- Constant Field Values
REMEMBER_STATE
public static final java.lang.String REMEMBER_STATE
- See Also:
- Constant Field Values
UserSettings2
public UserSettings2()
init
public void init(IWorkbench workbench)
performOk
public boolean performOk()
saveExpandedState
public static void saveExpandedState(java.lang.String field,
boolean state)
- save the state of an expandable composite
- Parameters:
field
- name of the composite (any unique string, preferably derived from view name)state
- the state to save
setExpandedState
public static void setExpandedState(ExpandableComposite ec,
java.lang.String field)
- Set the state of an expandable Composite to the previously saved state.
- Parameters:
ec
- the expandable Composite to expand or collapsefield
- the unique name
Copyright 2005-2011 by Gerry Weirich, Elexis