Package com.iizigo.term
Class PluginPreference
java.lang.Object
org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer
com.iizigo.term.PluginPreference
- All Implemented Interfaces:
TerminalKeys
Class used to initialize default preference values.
- Author:
- Christopher Mindus
Field Summary
Modifier and TypeFieldDescriptionstatic final String
ID for auto-creation of VS fields.int
Blink speed in ms, 0 = no blink.int
Clipboard parsing: 0=field, 1=word, 2=none.boolean
How sessions are handled at open terminal.int
Cursor height %.int
Cursor height % for insert mode.int
Preview character size in X.int
Recording preview character size in X.int
Preview character size in y.int
Recording preview character size in y.static final int[]
boolean
Anti-alias terminal font.boolean
Keep aspect ratio for terminal font.boolean
Auto-font size for terminal.boolean
Keyboard auto-reset.boolean
Bold terminal font.boolean
Box drawing for 3270.boolean
Anti-alias for capture preview.boolean
Prompt on each parse operation.boolean
Save original field spacing.boolean
Horizontal rule cursor.boolean
Function keys hotspots.boolean
Link hotspots.boolean
If moving a field enables screen-wrap.boolean
Outline presentation space.boolean
Paste text wrapping.boolean
Keyboard PC-style insert mode.boolean
Connect host upon preview show (only live sessions).boolean
Anti-alias for recording preview.boolean
Show unconnected tooltip sessions.boolean
Show "all" recording screens or just current.boolean
If sizing a field enables screen-wrap.boolean
Keyboard Smart Insert mode.boolean
Sound alarm.boolean
Keyboard type-ahead.boolean
Vertical rule cursor.Terminal font name.int
Font size when non-auto-size in terminal.boolean
If a screen identification rectangle is of exact rectangle content type by default.static final Object[]
The key table with the names.Initial texts for function key hotspots.int
Line type: 0=solid, 1=dot, 2=dash, 3=double-dash, 4=triple-dash.Initial texts for links.int
Max count of recording screen lines for tooltips.int
Max count of recording screens for tooltips sideways.static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
boolean
Reconnect session at restart.int[]
The table of colors (RGB value), with the descriptions as the "TERM_RECTANGLE_TYPES" static String array variable.static final String[]
The table of screen colors.int[]
The screen colors, 0=background...boolean
If active screen area is shown.boolean
If hidden text is shown.boolean
If hidden text is shown in Capture/Recording Editor.boolean
If host fields are shown.boolean
If host fields are shown in Capture/Recording Editor.boolean
If pop-up windows are shown.boolean
If pop-up windows are shown in Capture/Recording Editor.boolean
If tool-tips are shown in all modes.boolean
If screen fields are shown or not.boolean
If screen identifications are shown or not.static final int
static final int
static final int
static final int
Color indexes.static final int
static final int
static final int
static final String[]
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
ConstructorDescriptionConstruction of the class.PluginPreference
(int page) Constructs a new preference class with defaults for a page.Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Gets auto-creation of VS fields.static boolean
Gets showing of screen cursor.static boolean
Gets showing of screen cursor for captures.static boolean
Gets update of screen rectangle contents.static PluginPreference
Gets the instance.Gets the terminal settings.void
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 Details
AUTO_CREATE_VS_FIELDS
ID for auto-creation of VS fields.- See Also:
P_TERM_GENERAL
public static final int P_TERM_GENERAL- See Also:
P_TERM_EDIT
public static final int P_TERM_EDIT- See Also:
P_TERM_FONT
public static final int P_TERM_FONT- See Also:
P_TERM_RECTANGLE_COLORS
public static final int P_TERM_RECTANGLE_COLORS- See Also:
P_TERM_SCREEN_COLORS
public static final int P_TERM_SCREEN_COLORS- See Also:
P_TERM_KEYBOARD
public static final int P_TERM_KEYBOARD- See Also:
P_TERM_HOTSPOTS
public static final int P_TERM_HOTSPOTS- See Also:
P_SESSIONS
public static final int P_SESSIONS- See Also:
P_PREVIEW
public static final int P_PREVIEW- See Also:
TERM_INDEX_ID_UNDEFINED
public static final int TERM_INDEX_ID_UNDEFINEDColor indexes.- See Also:
TERM_INDEX_ID_EXACT_RECTANGLE
public static final int TERM_INDEX_ID_EXACT_RECTANGLE- See Also:
TERM_INDEX_MARKED_FIELD_COLOR
public static final int TERM_INDEX_MARKED_FIELD_COLOR- See Also:
TERM_INDEX_DECORATION_COLOR
public static final int TERM_INDEX_DECORATION_COLOR- See Also:
TERM_INDEX_NON_ACTIVE_WINDOW_COLOR
public static final int TERM_INDEX_NON_ACTIVE_WINDOW_COLOR- See Also:
TERM_INDEX_POPUP_WINDOW_COLOR
public static final int TERM_INDEX_POPUP_WINDOW_COLOR- See Also:
TERM_INDEX_HOST_FIELD_DOTS_COLOR
public static final int TERM_INDEX_HOST_FIELD_DOTS_COLOR- See Also:
TERM_RECTANGLE_TYPES
The table of rectangle colors.SCREEN_COLOR_NAMES
The table of screen colors.defaultScreenColors
public static final int[] defaultScreenColorskeyNamesTable
The key table with the names.showScreenIdentifications
public boolean showScreenIdentificationsIf screen identifications are shown or not.showScreenFields
public boolean showScreenFieldsIf screen fields are shown or not.isExactRectangleContents
public boolean isExactRectangleContentsIf a screen identification rectangle is of exact rectangle content type by default.showHiddenText
public boolean showHiddenTextIf hidden text is shown.showHostFields
public boolean showHostFieldsIf host fields are shown.doMoveWrap
public boolean doMoveWrapIf moving a field enables screen-wrap.doSizeWrap
public boolean doSizeWrapIf sizing a field enables screen-wrap.showPopupWindows
public boolean showPopupWindowsIf pop-up windows are shown.showActiveScreenArea
public boolean showActiveScreenAreaIf active screen area is shown.showRectangleTooltip
public boolean showRectangleTooltipIf tool-tips are shown in all modes.showHiddenTextEE
public boolean showHiddenTextEEIf hidden text is shown in Capture/Recording Editor.showHostFieldsEE
public boolean showHostFieldsEEIf host fields are shown in Capture/Recording Editor.showPopupWindowsEE
public boolean showPopupWindowsEEIf pop-up windows are shown in Capture/Recording Editor.doOutlinePresentationSpace
public boolean doOutlinePresentationSpaceOutline presentation space.doBoxDrawing
public boolean doBoxDrawingBox drawing for 3270.doSoundAlarm
public boolean doSoundAlarmSound alarm.blinkSpeed
public int blinkSpeedBlink speed in ms, 0 = no blink.cursorHeight
public int cursorHeightCursor height %.cursorHeightInsertMode
public int cursorHeightInsertModeCursor height % for insert mode.doVerticalRuleCursor
public boolean doVerticalRuleCursorVertical rule cursor.doHorizontalRuleCursor
public boolean doHorizontalRuleCursorHorizontal rule cursor.lineTypeRuleCursor
public int lineTypeRuleCursorLine type: 0=solid, 1=dot, 2=dash, 3=double-dash, 4=triple-dash.clipboardParsing
public int clipboardParsingClipboard parsing: 0=field, 1=word, 2=none.doClipboardPrompt
public boolean doClipboardPromptPrompt on each parse operation.doClipboardSaveSpacing
public boolean doClipboardSaveSpacingSave original field spacing.doPasteTextWrapping
public boolean doPasteTextWrappingPaste text wrapping.doAutoReset
public boolean doAutoResetKeyboard auto-reset.doTypeAhead
public boolean doTypeAheadKeyboard type-ahead.doSmartInsert
public boolean doSmartInsertKeyboard Smart Insert mode.doPCInsertMode
public boolean doPCInsertModeKeyboard PC-style insert mode.fontName
Terminal font name.doAntiAlias
public boolean doAntiAliasAnti-alias terminal font.doBoldFont
public boolean doBoldFontBold terminal font.doAutoFont
public boolean doAutoFontAuto-font size for terminal.doAspectFont
public boolean doAspectFontKeep aspect ratio for terminal font.fontSize
public int fontSizeFont size when non-auto-size in terminal.doLinks
public boolean doLinksLink hotspots.linksInitialText
Initial texts for links.doKeys
public boolean doKeysFunction keys hotspots.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[] rectangleColorsThe table of colors (RGB value), with the descriptions as the "TERM_RECTANGLE_TYPES" static String array variable.screenColors
public int[] screenColorsThe screen colors, 0=background... etc to index 15.connectOpen
public boolean connectOpenHow sessions are handled at open terminal.reconnectAtRestart
public boolean reconnectAtRestartReconnect session at restart.cxCharCapturePreview
public int cxCharCapturePreviewPreview character size in X.cyCharCapturePreview
public int cyCharCapturePreviewPreview character size in y.doCapturePreviewAntiAlias
public boolean doCapturePreviewAntiAliasAnti-alias for capture preview.cxCharRecordingPreview
public int cxCharRecordingPreviewRecording preview character size in X.cyCharRecordingPreview
public int cyCharRecordingPreviewRecording preview character size in y.doRecordingPreviewAntiAlias
public boolean doRecordingPreviewAntiAliasAnti-alias for recording preview.doPreviewConnect
public boolean doPreviewConnectConnect host upon preview show (only live sessions).doShowTooltipForUnconnectedSession
public boolean doShowTooltipForUnconnectedSessionShow unconnected tooltip sessions.doShowTooltipRecordedScreens
public boolean doShowTooltipRecordedScreensShow "all" recording screens or just current.maxTooltipRecordingScreensPerLine
public int maxTooltipRecordingScreensPerLineMax count of recording screens for tooltips sideways.maxTooltipRecordingScreenLines
public int maxTooltipRecordingScreenLinesMax count of recording screen lines for tooltips.
Constructor Details
PluginPreference
public PluginPreference()Construction of the class.PluginPreference
public PluginPreference(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.
initializeDefaultPreferences
public void initializeDefaultPreferences()Initializes the preferences store for all the terminal preferences.- Specified by:
initializeDefaultPreferences
in classAbstractPreferenceInitializer
- See Also:
saveToStore
public void saveToStore(int page) Saves a "page" to the store.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.