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.AbstractPreferenceInitializerClass used to initialize default preference values.- Author:
- Christopher Mindus
 
- Field Summary- Fields - Modifier and Type - Field - Description - boolean- doCreateVSFieldsCreate VirtualSpace fields automatically.- boolean- doResolveVSFieldNameCollisionsResolve name collisions automatically for VirtualSpace fields.- boolean- doShowVSWizardAlways show wizard for creation of VS fields.- java.lang.String- hostThe iiziServer host name/address.- boolean- isLocalHostIndicates iiziServer runs on localhost.- static int- P_DESIGNER_GENERAL- static int- P_NAME_SPACE- static int- P_ROOT- int- portNumberThe iiziServer port number.- int- wsPort1The Web Socket start port.- int- wsPort2The Web Socket end port.
 - Constructor Summary- Constructors - Constructor - Description - Preference()Construction of the class.- Preference(int page)Constructs a new preference class with defaults for a page.
 - Method Summary- All Methods Static Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - static java.lang.Object- getDefaultPanelValue(java.lang.String name)Gets the default value for a panel preference.- PropCnr- getDesignerParameters()Gets the designer parameters property container.- static Preference- getInstance()Gets the instance.- java.lang.String- getStarredAdaptiveSettings()Gets the settings for the StarredAdaptive class.- void- initializeDefaultPreferences()Initializes the preferences store for all the terminal preferences.- void- saveToStore(int page)Saves a "page" to the store.
 
- Field Detail- P_ROOT- public static final int P_ROOT - See Also:
- Constant Field Values
 
 - P_DESIGNER_GENERAL- public static final int P_DESIGNER_GENERAL - See Also:
- Constant Field Values
 
 - P_NAME_SPACE- public static final int P_NAME_SPACE - See Also:
- Constant Field Values
 
 - isLocalHost- public boolean isLocalHost Indicates iiziServer runs on localhost.
 - host- public java.lang.String host The iiziServer host name/address.
 - portNumber- public int portNumber The iiziServer port number.
 - wsPort1- public int wsPort1 The Web Socket start port.
 - wsPort2- public int wsPort2 The Web Socket end port.
 - doShowVSWizard- public boolean doShowVSWizard Always show wizard for creation of VS fields.
 - doCreateVSFields- public boolean doCreateVSFields Create VirtualSpace fields automatically.
 - doResolveVSFieldNameCollisions- public boolean doResolveVSFieldNameCollisions Resolve name collisions automatically for VirtualSpace fields.
 
 - Method Detail- getInstance- public static Preference getInstance() Gets the instance.- Returns:
- The single instance of the preferences.
 
 - getDefaultPanelValue- public static java.lang.Object getDefaultPanelValue(java.lang.String name) Gets the default value for a panel preference.- Parameters:
- name- The value name.
- Returns:
- An object: Boolean, Integer or Long.
 
 - getDesignerParameters- public PropCnr 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:
- initializeDefaultPreferencesin class- org.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- public java.lang.String getStarredAdaptiveSettings() Gets the settings for the StarredAdaptive class.- Returns:
- The string for the "StarredAdaptive" class.