public class WorkspaceProperties extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FILENAME
The file name for the state location file of the workspace properties.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
flush()
Flushes the preferences for the workspace to disk, e.g.
|
static WorkspaceProperties |
getInstance()
Gets the single instance of this class.
|
static PropCnr |
getPropertyContainer(Class<?> clazz)
Gets a property container for a class or class name.
|
static void |
registerDialogBounds(Class<?> clazz,
Shell shell)
Places the not yet visible dialog box according to a previous position saved
using saveDialogBounds.
|
static void |
registerDialogBounds(String clazz,
Shell shell)
Places the not yet visible dialog box according to a previous position saved
using saveDialogBounds.
|
static void |
restoreDialogBounds(Class<?> clazz,
Shell shell)
Places the not yet visible dialog box according to a previous position saved
using saveDialogBounds.
|
static void |
restoreDialogBounds(String clazz,
Shell shell)
Places the not yet visible dialog box according to a previous position saved
using saveDialogBounds.
|
static void |
saveDialogBounds(Class<?> clazz,
Shell shell)
Saves the dialog bounds, or just the position if the dialog is not resizable.
|
static void |
saveDialogBounds(String clazz,
Shell shell)
Saves the dialog bounds, or just the position if the dialog is not resizable.
|
public static final String FILENAME
public static WorkspaceProperties getInstance()
public static boolean flush()
public static PropCnr getPropertyContainer(Class<?> clazz)
clazz
- The class.public static void registerDialogBounds(Class<?> clazz, Shell shell)
This function registers a listener with the shell and saves the position when dialog box is closed.
clazz
- The class of the dialog box.shell
- The dialog box shell.public static void registerDialogBounds(String clazz, Shell shell)
This function registers a listener with the shell and saves the position when dialog box is closed.
clazz
- The class name of the dialog box.shell
- The dialog box shell.public static void restoreDialogBounds(Class<?> clazz, Shell shell)
clazz
- The class of the dialog box.shell
- The dialog box shell.public static void restoreDialogBounds(String clazz, Shell shell)
clazz
- The class name of the dialog box.shell
- The dialog box shell.public static void saveDialogBounds(Class<?> clazz, Shell shell)
clazz
- The class of the dialog box.shell
- The dialog box shell.public static void saveDialogBounds(String clazz, Shell shell)
clazz
- The class name of the dialog box.shell
- The dialog box shell.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.