Package com.iizigo.term
Class PluginPreference
- java.lang.Object
- org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer
- com.iizigo.term.PluginPreference
- All Implemented Interfaces:
TerminalKeys
public class PluginPreference extends org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer implements TerminalKeys
Class used to initialize default preference values.- Author:
- Christopher Mindus
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AUTO_CREATE_VS_FIELDS
ID for auto-creation of VS fields.int
blinkSpeed
Blink speed in ms, 0 = no blink.int
clipboardParsing
Clipboard parsing: 0=field, 1=word, 2=none.boolean
connectOpen
How sessions are handled at open terminal.int
cursorHeight
Cursor height %.int
cursorHeightInsertMode
Cursor height % for insert mode.int
cxCharCapturePreview
Preview character size in X.int
cxCharRecordingPreview
Recording preview character size in X.int
cyCharCapturePreview
Preview character size in y.int
cyCharRecordingPreview
Recording preview character size in y.static int[]
defaultScreenColors
boolean
doAntiAlias
Anti-alias terminal font.boolean
doAspectFont
Keep aspect ratio for terminal font.boolean
doAutoFont
Auto-font size for terminal.boolean
doAutoReset
Keyboard auto-reset.boolean
doBoldFont
Bold terminal font.boolean
doBoxDrawing
Box drawing for 3270.boolean
doCapturePreviewAntiAlias
Anti-alias for capture preview.boolean
doClipboardPrompt
Prompt on each parse operation.boolean
doClipboardSaveSpacing
Save original field spacing.boolean
doHorizontalRuleCursor
Horizontal rule cursor.boolean
doKeys
Function keys hotspots.boolean
doLinks
Link hotspots.boolean
doMoveWrap
If moving a field enables screen-wrap.boolean
doOutlinePresentationSpace
Outline presentation space.boolean
doPasteTextWrapping
Paste text wrapping.boolean
doPCInsertMode
Keyboard PC-style insert mode.boolean
doPreviewConnect
Connect host upon preview show (only live sessions).boolean
doRecordingPreviewAntiAlias
Anti-alias for recording preview.boolean
doShowTooltipForUnconnectedSession
Show unconnected tooltip sessions.boolean
doShowTooltipRecordedScreens
Show "all" recording screens or just current.boolean
doSizeWrap
If sizing a field enables screen-wrap.boolean
doSmartInsert
Keyboard Smart Insert mode.boolean
doSoundAlarm
Sound alarm.boolean
doTypeAhead
Keyboard type-ahead.boolean
doVerticalRuleCursor
Vertical rule cursor.java.lang.String
fontName
Terminal font name.int
fontSize
Font size when non-auto-size in terminal.boolean
isExactRectangleContents
If a screen identification rectangle is of exact rectangle content type by default.static java.lang.Object[]
keyNamesTable
The key table with the names.java.lang.String
keysInitialText
Initial texts for function key hotspots.int
lineTypeRuleCursor
Line type: 0=solid, 1=dot, 2=dash, 3=double-dash, 4=triple-dash.java.lang.String
linksInitialText
Initial texts for links.int
maxTooltipRecordingScreenLines
Max count of recording screen lines for tooltips.int
maxTooltipRecordingScreensPerLine
Max count of recording screens for tooltips sideways.static int
P_PREVIEW
static int
P_SESSIONS
static int
P_TERM_EDIT
static int
P_TERM_FONT
static int
P_TERM_GENERAL
static int
P_TERM_HOTSPOTS
static int
P_TERM_KEYBOARD
static int
P_TERM_RECTANGLE_COLORS
static int
P_TERM_SCREEN_COLORS
boolean
reconnectAtRestart
Reconnect session at restart.int[]
rectangleColors
The table of colors (RGB value), with the descriptions as the "TERM_RECTANGLE_TYPES" static String array variable.static java.lang.String[]
SCREEN_COLOR_NAMES
The table of screen colors.int[]
screenColors
The screen colors, 0=background...boolean
showActiveScreenArea
If active screen area is shown.boolean
showHiddenText
If hidden text is shown.boolean
showHiddenTextEE
If hidden text is shown in Capture/Recording Editor.boolean
showHostFields
If host fields are shown.boolean
showHostFieldsEE
If host fields are shown in Capture/Recording Editor.boolean
showPopupWindows
If pop-up windows are shown.boolean
showPopupWindowsEE
If pop-up windows are shown in Capture/Recording Editor.boolean
showRectangleTooltip
If tool-tips are shown in all modes.boolean
showScreenFields
If screen fields are shown or not.boolean
showScreenIdentifications
If screen identifications are shown or not.static int
TERM_INDEX_DECORATION_COLOR
static int
TERM_INDEX_HOST_FIELD_DOTS_COLOR
static int
TERM_INDEX_ID_EXACT_RECTANGLE
static int
TERM_INDEX_ID_UNDEFINED
Color indexes.static int
TERM_INDEX_MARKED_FIELD_COLOR
static int
TERM_INDEX_NON_ACTIVE_WINDOW_COLOR
static int
TERM_INDEX_POPUP_WINDOW_COLOR
static java.lang.String[]
TERM_RECTANGLE_TYPES
The table of rectangle colors.Fields inherited from interface com.iizix.term.TerminalKeys
KEY_AlternateCursor, KEY_Attention, KEY_Backspace, KEY_BackwardWordTab, KEY_CapsLock, KEY_Clear, KEY_CmdKey, KEY_CursorDown, KEY_CursorDownFast, KEY_CursorLeft, KEY_CursorLeftFast, KEY_CursorRight, KEY_CursorRightFast, KEY_CursorSelect, KEY_CursorUp, KEY_CursorUpFast, KEY_Delete, KEY_DestructiveBackspace, KEY_Dup, KEY_End, KEY_Enter, KEY_EraseEOF, KEY_EraseInput, KEY_FieldExit, KEY_FieldMark, KEY_FieldMinus, KEY_FieldPlus, KEY_ForwardWordTab, KEY_Help, KEY_Home, KEY_Insert, KEY_InsertToggle, KEY_LeftTab, KEY_MinusSign, KEY_NewLine, KEY_PA1, KEY_PA2, KEY_PA3, KEY_PageDown, KEY_PageUp, KEY_PF1, KEY_PF10, KEY_PF11, KEY_PF12, KEY_PF13, KEY_PF14, KEY_PF15, KEY_PF16, KEY_PF17, KEY_PF18, KEY_PF19, KEY_PF2, KEY_PF20, KEY_PF21, KEY_PF22, KEY_PF23, KEY_PF24, KEY_PF3, KEY_PF4, KEY_PF5, KEY_PF6, KEY_PF7, KEY_PF8, KEY_PF9, KEY_PlusSign, KEY_Print, KEY_PrintPC, KEY_PrintPS, KEY_RecordBackspace, KEY_Reset, KEY_RightTab, KEY_Space, KEY_SystemRequest, KEY_Test, KEY_WordDelete
Constructor Summary
Constructors Constructor Description PluginPreference()
Construction of the class.PluginPreference(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 boolean
doAutoCreateVSFields()
Gets auto-creation of VS fields.static boolean
doShowScreenCursor()
Gets showing of screen cursor.static boolean
doShowScreenCursorEE()
Gets showing of screen cursor for captures.static boolean
doUpdateRectangle()
Gets update of screen rectangle contents.static PluginPreference
getInstance()
Gets the instance.TerminalSettings
getTerminalSettings()
Gets the terminal settings.void
initializeDefaultPreferences()
Initializes the preferences store for all the terminal preferences.void
saveToStore(int page)
Saves a "page" to the store.static void
setAutoCreateVSFields(boolean on)
Sets auto-creation of VS fields.static void
setMoveWrap(boolean on)
Sets wrap when moving.static void
setShowScreenCursor(boolean on)
Sets showing of screen cursor.static void
setShowScreenCursorEE(boolean on)
Sets showing of screen cursor for captures.static void
setSizeWrap(boolean on)
Sets wrap when sizing.static void
setUpdateRectangle(boolean on)
Sets update of screen rectangle contents.
Field Detail
AUTO_CREATE_VS_FIELDS
public static final java.lang.String AUTO_CREATE_VS_FIELDS
ID for auto-creation of VS fields.- See Also:
- Constant Field Values
P_TERM_GENERAL
public static final int P_TERM_GENERAL
- See Also:
- Constant Field Values
P_TERM_EDIT
public static final int P_TERM_EDIT
- See Also:
- Constant Field Values
P_TERM_FONT
public static final int P_TERM_FONT
- See Also:
- Constant Field Values
P_TERM_RECTANGLE_COLORS
public static final int P_TERM_RECTANGLE_COLORS
- See Also:
- Constant Field Values
P_TERM_SCREEN_COLORS
public static final int P_TERM_SCREEN_COLORS
- See Also:
- Constant Field Values
P_TERM_KEYBOARD
public static final int P_TERM_KEYBOARD
- See Also:
- Constant Field Values
P_TERM_HOTSPOTS
public static final int P_TERM_HOTSPOTS
- See Also:
- Constant Field Values
P_SESSIONS
public static final int P_SESSIONS
- See Also:
- Constant Field Values
P_PREVIEW
public static final int P_PREVIEW
- See Also:
- Constant Field Values
TERM_INDEX_ID_UNDEFINED
public static final int TERM_INDEX_ID_UNDEFINED
Color indexes.- See Also:
- Constant Field Values
TERM_INDEX_ID_EXACT_RECTANGLE
public static final int TERM_INDEX_ID_EXACT_RECTANGLE
- See Also:
- Constant Field Values
TERM_INDEX_MARKED_FIELD_COLOR
public static final int TERM_INDEX_MARKED_FIELD_COLOR
- See Also:
- Constant Field Values
TERM_INDEX_DECORATION_COLOR
public static final int TERM_INDEX_DECORATION_COLOR
- See Also:
- Constant Field Values
TERM_INDEX_NON_ACTIVE_WINDOW_COLOR
public static final int TERM_INDEX_NON_ACTIVE_WINDOW_COLOR
- See Also:
- Constant Field Values
TERM_INDEX_POPUP_WINDOW_COLOR
public static final int TERM_INDEX_POPUP_WINDOW_COLOR
- See Also:
- Constant Field Values
TERM_INDEX_HOST_FIELD_DOTS_COLOR
public static final int TERM_INDEX_HOST_FIELD_DOTS_COLOR
- See Also:
- Constant Field Values
TERM_RECTANGLE_TYPES
public static final java.lang.String[] TERM_RECTANGLE_TYPES
The table of rectangle colors.
SCREEN_COLOR_NAMES
public static final java.lang.String[] SCREEN_COLOR_NAMES
The table of screen colors.
defaultScreenColors
public static final int[] defaultScreenColors
keyNamesTable
public static final java.lang.Object[] keyNamesTable
The key table with the names.
showScreenIdentifications
public boolean showScreenIdentifications
If screen identifications are shown or not.
showScreenFields
public boolean showScreenFields
If screen fields are shown or not.
isExactRectangleContents
public boolean isExactRectangleContents
If a screen identification rectangle is of exact rectangle content type by default.
showHiddenText
public boolean showHiddenText
If hidden text is shown.
showHostFields
public boolean showHostFields
If host fields are shown.
doMoveWrap
public boolean doMoveWrap
If moving a field enables screen-wrap.
doSizeWrap
public boolean doSizeWrap
If sizing a field enables screen-wrap.
showPopupWindows
public boolean showPopupWindows
If pop-up windows are shown.
showActiveScreenArea
public boolean showActiveScreenArea
If active screen area is shown.
showRectangleTooltip
public boolean showRectangleTooltip
If tool-tips are shown in all modes.
showHiddenTextEE
public boolean showHiddenTextEE
If hidden text is shown in Capture/Recording Editor.
showHostFieldsEE
public boolean showHostFieldsEE
If host fields are shown in Capture/Recording Editor.
showPopupWindowsEE
public boolean showPopupWindowsEE
If pop-up windows are shown in Capture/Recording Editor.
doOutlinePresentationSpace
public boolean doOutlinePresentationSpace
Outline presentation space.
doBoxDrawing
public boolean doBoxDrawing
Box drawing for 3270.
doSoundAlarm
public boolean doSoundAlarm
Sound alarm.
blinkSpeed
public int blinkSpeed
Blink speed in ms, 0 = no blink.
cursorHeight
public int cursorHeight
Cursor height %.
cursorHeightInsertMode
public int cursorHeightInsertMode
Cursor height % for insert mode.
doVerticalRuleCursor
public boolean doVerticalRuleCursor
Vertical rule cursor.
doHorizontalRuleCursor
public boolean doHorizontalRuleCursor
Horizontal rule cursor.
lineTypeRuleCursor
public int lineTypeRuleCursor
Line type: 0=solid, 1=dot, 2=dash, 3=double-dash, 4=triple-dash.
clipboardParsing
public int clipboardParsing
Clipboard parsing: 0=field, 1=word, 2=none.
doClipboardPrompt
public boolean doClipboardPrompt
Prompt on each parse operation.
doClipboardSaveSpacing
public boolean doClipboardSaveSpacing
Save original field spacing.
doPasteTextWrapping
public boolean doPasteTextWrapping
Paste text wrapping.
doAutoReset
public boolean doAutoReset
Keyboard auto-reset.
doTypeAhead
public boolean doTypeAhead
Keyboard type-ahead.
doSmartInsert
public boolean doSmartInsert
Keyboard Smart Insert mode.
doPCInsertMode
public boolean doPCInsertMode
Keyboard PC-style insert mode.
fontName
public java.lang.String fontName
Terminal font name.
doAntiAlias
public boolean doAntiAlias
Anti-alias terminal font.
doBoldFont
public boolean doBoldFont
Bold terminal font.
doAutoFont
public boolean doAutoFont
Auto-font size for terminal.
doAspectFont
public boolean doAspectFont
Keep aspect ratio for terminal font.
fontSize
public int fontSize
Font size when non-auto-size in terminal.
doLinks
public boolean doLinks
Link hotspots.
linksInitialText
public java.lang.String linksInitialText
Initial texts for links.
doKeys
public boolean doKeys
Function keys hotspots.
keysInitialText
public java.lang.String keysInitialText
Initial texts for function key hotspots. The string is tab-delimited, and the entries corresponds to: PF#, Enter, Attention, Clear, Help, PA1, PA2, PA3, Page Up, Page Down.
rectangleColors
public int[] rectangleColors
The table of colors (RGB value), with the descriptions as the "TERM_RECTANGLE_TYPES" static String array variable.
screenColors
public int[] screenColors
The screen colors, 0=background... etc to index 15.
connectOpen
public boolean connectOpen
How sessions are handled at open terminal.
reconnectAtRestart
public boolean reconnectAtRestart
Reconnect session at restart.
cxCharCapturePreview
public int cxCharCapturePreview
Preview character size in X.
cyCharCapturePreview
public int cyCharCapturePreview
Preview character size in y.
doCapturePreviewAntiAlias
public boolean doCapturePreviewAntiAlias
Anti-alias for capture preview.
cxCharRecordingPreview
public int cxCharRecordingPreview
Recording preview character size in X.
cyCharRecordingPreview
public int cyCharRecordingPreview
Recording preview character size in y.
doRecordingPreviewAntiAlias
public boolean doRecordingPreviewAntiAlias
Anti-alias for recording preview.
doPreviewConnect
public boolean doPreviewConnect
Connect host upon preview show (only live sessions).
doShowTooltipForUnconnectedSession
public boolean doShowTooltipForUnconnectedSession
Show unconnected tooltip sessions.
doShowTooltipRecordedScreens
public boolean doShowTooltipRecordedScreens
Show "all" recording screens or just current.
maxTooltipRecordingScreensPerLine
public int maxTooltipRecordingScreensPerLine
Max count of recording screens for tooltips sideways.
maxTooltipRecordingScreenLines
public int maxTooltipRecordingScreenLines
Max count of recording screen lines for tooltips.
Method Detail
getInstance
public static PluginPreference getInstance()
Gets the instance.- Returns:
- The single instance of the preferences.
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.
getTerminalSettings
public TerminalSettings getTerminalSettings()
Gets the terminal settings.
setShowScreenCursor
public static void setShowScreenCursor(boolean on)
Sets showing of screen cursor.
doShowScreenCursor
public static boolean doShowScreenCursor()
Gets showing of screen cursor.
setShowScreenCursorEE
public static void setShowScreenCursorEE(boolean on)
Sets showing of screen cursor for captures.
doShowScreenCursorEE
public static boolean doShowScreenCursorEE()
Gets showing of screen cursor for captures.
setAutoCreateVSFields
public static void setAutoCreateVSFields(boolean on)
Sets auto-creation of VS fields.
doAutoCreateVSFields
public static boolean doAutoCreateVSFields()
Gets auto-creation of VS fields.
setUpdateRectangle
public static void setUpdateRectangle(boolean on)
Sets update of screen rectangle contents.
doUpdateRectangle
public static boolean doUpdateRectangle()
Gets update of screen rectangle contents.
setMoveWrap
public static void setMoveWrap(boolean on)
Sets wrap when moving.
setSizeWrap
public static void setSizeWrap(boolean on)
Sets wrap when sizing.