ch.elexis.preferences
Class UserCasePreferences
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.preference.PreferencePage
org.eclipse.jface.preference.FieldEditorPreferencePage
ch.elexis.preferences.UserCasePreferences
- 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 UserCasePreferences
- extends org.eclipse.jface.preference.FieldEditorPreferencePage
- implements org.eclipse.ui.IWorkbenchPreferencePage
User specific settings: Case defaults
Field Summary |
static java.lang.String |
ID
|
static java.lang.String |
MENUSEPARATOR
|
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 |
Method Summary |
protected org.eclipse.swt.widgets.Control |
createContents(org.eclipse.swt.widgets.Composite parent)
|
protected void |
createFieldEditors()
|
static int |
getBillingSystemsMenuSeparatorPos(java.lang.String[] input)
|
void |
init(org.eclipse.ui.IWorkbench workbench)
|
protected void |
performDefaults()
|
boolean |
performOk()
|
static java.lang.String[] |
sortBillingSystems(java.lang.String[] input)
sort the input: start with sorting as specified in topItemsSorting found in the user prefs,
add a separator and then sort the rest alphabetically |
static java.lang.String[] |
sortBillingSystems(java.lang.String[] input,
java.util.LinkedList<java.lang.String> topItemsSorting)
sort the input: start with sorting as specified in parameter topItemsSorting, add a separator
if there are topitems and then sort the rest alphabetically |
static java.lang.String[] |
sortBillingSystems(java.lang.String[] input,
java.util.LinkedList<java.lang.String> topItemsSorting,
boolean alwaysShowSeparator)
sort the input: start with sorting as specified in parameter topItemsSorting, always add a
separator and then sort the rest alphabetically |
Methods inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage |
addField, adjustGridLayout, applyFont, checkState, dispose, getFieldEditorParent, initialize, 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, setContainer, setSize |
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage |
createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible |
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
MENUSEPARATOR
public static final java.lang.String MENUSEPARATOR
- See Also:
- Constant Field Values
UserCasePreferences
public UserCasePreferences()
createFieldEditors
protected void createFieldEditors()
- 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
performOk
public boolean performOk()
- Specified by:
performOk
in interface org.eclipse.jface.preference.IPreferencePage
- Overrides:
performOk
in class org.eclipse.jface.preference.FieldEditorPreferencePage
createContents
protected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
- Overrides:
createContents
in class org.eclipse.jface.preference.FieldEditorPreferencePage
getBillingSystemsMenuSeparatorPos
public static int getBillingSystemsMenuSeparatorPos(java.lang.String[] input)
sortBillingSystems
public static java.lang.String[] sortBillingSystems(java.lang.String[] input)
- sort the input: start with sorting as specified in topItemsSorting found in the user prefs,
add a separator and then sort the rest alphabetically
- Parameters:
input
- String[] of all billing systems, unsorted
- Returns:
- String[] the sorted list
sortBillingSystems
public static java.lang.String[] sortBillingSystems(java.lang.String[] input,
java.util.LinkedList<java.lang.String> topItemsSorting)
- sort the input: start with sorting as specified in parameter topItemsSorting, add a separator
if there are topitems and then sort the rest alphabetically
- Parameters:
input
- String[] of all billing systems, unsortedtopItemsSorting
- LinkedList Array of billing systems in the order they should appear in the
menu/combo
- Returns:
- String[] the sorted list
sortBillingSystems
public static java.lang.String[] sortBillingSystems(java.lang.String[] input,
java.util.LinkedList<java.lang.String> topItemsSorting,
boolean alwaysShowSeparator)
- sort the input: start with sorting as specified in parameter topItemsSorting, always add a
separator and then sort the rest alphabetically
- Parameters:
input
- String[] of all billing systems, unsortedtopItemsSorting
- LinkedList Array of billing systems in the order they should appear in the
menu/comboalwaysShowSeparator
- boolean should the separator also be shown when NO topItems are present
- Returns:
- String[] the sorted list
performDefaults
protected void performDefaults()
- Overrides:
performDefaults
in class org.eclipse.jface.preference.FieldEditorPreferencePage