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
FieldsModifier and TypeFieldDescriptionstatic final StringID for auto-creation of VS fields.intBlink speed in ms, 0 = no blink.intClipboard parsing: 0=field, 1=word, 2=none.booleanHow sessions are handled at open terminal.intCursor height %.intCursor height % for insert mode.intPreview character size in X.intRecording preview character size in X.intPreview character size in y.intRecording preview character size in y.static final int[]booleanAnti-alias terminal font.booleanKeep aspect ratio for terminal font.booleanAuto-font size for terminal.booleanKeyboard auto-reset.booleanBold terminal font.booleanBox drawing for 3270.booleanAnti-alias for capture preview.booleanPrompt on each parse operation.booleanSave original field spacing.booleanHorizontal rule cursor.booleanFunction keys hotspots.booleanLink hotspots.booleanIf moving a field enables screen-wrap.booleanOutline presentation space.booleanPaste text wrapping.booleanKeyboard PC-style insert mode.booleanConnect host upon preview show (only live sessions).booleanAnti-alias for recording preview.booleanShow unconnected tooltip sessions.booleanShow "all" recording screens or just current.booleanIf sizing a field enables screen-wrap.booleanKeyboard Smart Insert mode.booleanSound alarm.booleanKeyboard type-ahead.booleanVertical rule cursor.Terminal font name.intFont size when non-auto-size in terminal.booleanIf 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.intLine type: 0=solid, 1=dot, 2=dash, 3=double-dash, 4=triple-dash.Initial texts for links.intMax count of recording screen lines for tooltips.intMax count of recording screens for tooltips sideways.static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intbooleanReconnect 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...booleanIf active screen area is shown.booleanIf hidden text is shown.booleanIf hidden text is shown in Capture/Recording Editor.booleanIf host fields are shown.booleanIf host fields are shown in Capture/Recording Editor.booleanIf pop-up windows are shown.booleanIf pop-up windows are shown in Capture/Recording Editor.booleanIf tool-tips are shown in all modes.booleanIf screen fields are shown or not.booleanIf screen identifications are shown or not.static final intstatic final intstatic final intstatic final intColor indexes.static final intstatic final intstatic final intstatic 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_WordDeleteConstructor Summary
ConstructorsConstructorDescriptionConstruction of the class.PluginPreference(int page) Constructs a new preference class with defaults for a page.Method Summary
Modifier and TypeMethodDescriptionstatic booleanGets auto-creation of VS fields.static booleanGets showing of screen cursor.static booleanGets showing of screen cursor for captures.static booleanGets update of screen rectangle contents.static PluginPreferenceGets the instance.Gets the terminal settings.voidInitializes the preferences store for all the terminal preferences.voidsaveToStore(int page) Saves a "page" to the store.static voidsetAutoCreateVSFields(boolean on) Sets auto-creation of VS fields.static voidsetMoveWrap(boolean on) Sets wrap when moving.static voidsetShowScreenCursor(boolean on) Sets showing of screen cursor.static voidsetShowScreenCursorEE(boolean on) Sets showing of screen cursor for captures.static voidsetSizeWrap(boolean on) Sets wrap when sizing.static voidsetUpdateRectangle(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:
initializeDefaultPreferencesin classorg.eclipse.core.runtime.preferences.AbstractPreferenceInitializer- See Also:
AbstractPreferenceInitializer.initializeDefaultPreferences()
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.