Package com.iizigo
Class Preference
java.lang.Object
org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer
com.iizigo.Preference
public class Preference extends org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer
Class used to initialize default preference values.
- Author:
- Christopher Mindus
Field Summary
Modifier and TypeFieldDescriptionboolean
Create VirtualSpace fields automatically.boolean
Resolve name collisions automatically for VirtualSpace fields.boolean
Always show wizard for creation of VS fields.The iiziServer host name/address.boolean
Indicates iiziServer runs on localhost.static final int
static final int
static final int
int
The iiziServer port number.int
The Web Socket start port.int
The Web Socket end port.Constructor Summary
ConstructorDescriptionConstruction of the class.Preference
(int page) Constructs a new preference class with defaults for a page.Method Summary
Modifier and TypeMethodDescriptionstatic Object
getDefaultPanelValue
(String name) Gets the default value for a panel preference.Gets the designer parameters property container.static Preference
Gets the instance.Gets the settings for the StarredAdaptive class.void
Initializes the preferences store for all the terminal preferences.void
saveToStore
(int page) Saves a "page" to the store.
Field Details
P_ROOT
public static final int P_ROOT- See Also:
P_DESIGNER_GENERAL
public static final int P_DESIGNER_GENERAL- See Also:
P_NAME_SPACE
public static final int P_NAME_SPACE- See Also:
isLocalHost
public boolean isLocalHostIndicates iiziServer runs on localhost.host
The iiziServer host name/address.portNumber
public int portNumberThe iiziServer port number.wsPort1
public int wsPort1The Web Socket start port.wsPort2
public int wsPort2The Web Socket end port.doShowVSWizard
public boolean doShowVSWizardAlways show wizard for creation of VS fields.doCreateVSFields
public boolean doCreateVSFieldsCreate VirtualSpace fields automatically.doResolveVSFieldNameCollisions
public boolean doResolveVSFieldNameCollisionsResolve name collisions automatically for VirtualSpace fields.
Constructor Details
Preference
public Preference()Construction of the class.Preference
public Preference(int page) Constructs a new preference class with defaults for a page.
Method Details
getInstance
Gets the instance.- Returns:
- The single instance of the preferences.
getDefaultPanelValue
Gets the default value for a panel preference.- Parameters:
name
- The value name.- Returns:
- An object: Boolean, Integer or Long.
getDesignerParameters
Gets the designer parameters property container.- Returns:
- The property container with the designer properties.
initializeDefaultPreferences
public void initializeDefaultPreferences()Initializes the preferences store for all the terminal preferences.- Specified by:
initializeDefaultPreferences
in classorg.eclipse.core.runtime.preferences.AbstractPreferenceInitializer
- See Also:
AbstractPreferenceInitializer.initializeDefaultPreferences()
saveToStore
public void saveToStore(int page) Saves a "page" to the store.- Parameters:
page
- The page.
getStarredAdaptiveSettings
Gets the settings for the StarredAdaptive class.- Returns:
- The string for the "StarredAdaptive" class.