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 SummaryFieldsModifier and TypeFieldDescription- static 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 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- booleanReconnect 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 int- static final int- static final int- static final intColor 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 SummaryConstructorsConstructorDescriptionConstruction of the class.- PluginPreference- (int page) Constructs a new preference class with defaults for a page.
- Method SummaryModifier and TypeMethodDescription- static 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.- 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_FIELDSID for auto-creation of VS fields.- See Also:
 
- P_TERM_GENERALpublic static final int P_TERM_GENERAL- See Also:
 
- P_TERM_EDITpublic static final int P_TERM_EDIT- See Also:
 
- P_TERM_FONTpublic static final int P_TERM_FONT- See Also:
 
- P_TERM_RECTANGLE_COLORSpublic static final int P_TERM_RECTANGLE_COLORS- See Also:
 
- P_TERM_SCREEN_COLORSpublic static final int P_TERM_SCREEN_COLORS- See Also:
 
- P_TERM_KEYBOARDpublic static final int P_TERM_KEYBOARD- See Also:
 
- P_TERM_HOTSPOTSpublic static final int P_TERM_HOTSPOTS- See Also:
 
- P_SESSIONSpublic static final int P_SESSIONS- See Also:
 
- P_PREVIEWpublic static final int P_PREVIEW- See Also:
 
- TERM_INDEX_ID_UNDEFINEDpublic static final int TERM_INDEX_ID_UNDEFINEDColor indexes.- See Also:
 
- TERM_INDEX_ID_EXACT_RECTANGLEpublic static final int TERM_INDEX_ID_EXACT_RECTANGLE- See Also:
 
- TERM_INDEX_MARKED_FIELD_COLORpublic static final int TERM_INDEX_MARKED_FIELD_COLOR- See Also:
 
- TERM_INDEX_DECORATION_COLORpublic static final int TERM_INDEX_DECORATION_COLOR- See Also:
 
- TERM_INDEX_NON_ACTIVE_WINDOW_COLORpublic static final int TERM_INDEX_NON_ACTIVE_WINDOW_COLOR- See Also:
 
- TERM_INDEX_POPUP_WINDOW_COLORpublic static final int TERM_INDEX_POPUP_WINDOW_COLOR- See Also:
 
- TERM_INDEX_HOST_FIELD_DOTS_COLORpublic static final int TERM_INDEX_HOST_FIELD_DOTS_COLOR- See Also:
 
- TERM_RECTANGLE_TYPESThe table of rectangle colors.
- SCREEN_COLOR_NAMESThe table of screen colors.
- defaultScreenColorspublic static final int[] defaultScreenColors
- keyNamesTableThe key table with the names.
- showScreenIdentificationspublic boolean showScreenIdentificationsIf screen identifications are shown or not.
- showScreenFieldspublic boolean showScreenFieldsIf screen fields are shown or not.
- isExactRectangleContentspublic boolean isExactRectangleContentsIf a screen identification rectangle is of exact rectangle content type by default.
- showHiddenTextpublic boolean showHiddenTextIf hidden text is shown.
- showHostFieldspublic boolean showHostFieldsIf host fields are shown.
- doMoveWrappublic boolean doMoveWrapIf moving a field enables screen-wrap.
- doSizeWrappublic boolean doSizeWrapIf sizing a field enables screen-wrap.
- showPopupWindowspublic boolean showPopupWindowsIf pop-up windows are shown.
- showActiveScreenAreapublic boolean showActiveScreenAreaIf active screen area is shown.
- showRectangleTooltippublic boolean showRectangleTooltipIf tool-tips are shown in all modes.
- showHiddenTextEEpublic boolean showHiddenTextEEIf hidden text is shown in Capture/Recording Editor.
- showHostFieldsEEpublic boolean showHostFieldsEEIf host fields are shown in Capture/Recording Editor.
- showPopupWindowsEEpublic boolean showPopupWindowsEEIf pop-up windows are shown in Capture/Recording Editor.
- doOutlinePresentationSpacepublic boolean doOutlinePresentationSpaceOutline presentation space.
- doBoxDrawingpublic boolean doBoxDrawingBox drawing for 3270.
- doSoundAlarmpublic boolean doSoundAlarmSound alarm.
- blinkSpeedpublic int blinkSpeedBlink speed in ms, 0 = no blink.
- cursorHeightpublic int cursorHeightCursor height %.
- cursorHeightInsertModepublic int cursorHeightInsertModeCursor height % for insert mode.
- doVerticalRuleCursorpublic boolean doVerticalRuleCursorVertical rule cursor.
- doHorizontalRuleCursorpublic boolean doHorizontalRuleCursorHorizontal rule cursor.
- lineTypeRuleCursorpublic int lineTypeRuleCursorLine type: 0=solid, 1=dot, 2=dash, 3=double-dash, 4=triple-dash.
- clipboardParsingpublic int clipboardParsingClipboard parsing: 0=field, 1=word, 2=none.
- doClipboardPromptpublic boolean doClipboardPromptPrompt on each parse operation.
- doClipboardSaveSpacingpublic boolean doClipboardSaveSpacingSave original field spacing.
- doPasteTextWrappingpublic boolean doPasteTextWrappingPaste text wrapping.
- doAutoResetpublic boolean doAutoResetKeyboard auto-reset.
- doTypeAheadpublic boolean doTypeAheadKeyboard type-ahead.
- doSmartInsertpublic boolean doSmartInsertKeyboard Smart Insert mode.
- doPCInsertModepublic boolean doPCInsertModeKeyboard PC-style insert mode.
- fontNameTerminal font name.
- doAntiAliaspublic boolean doAntiAliasAnti-alias terminal font.
- doBoldFontpublic boolean doBoldFontBold terminal font.
- doAutoFontpublic boolean doAutoFontAuto-font size for terminal.
- doAspectFontpublic boolean doAspectFontKeep aspect ratio for terminal font.
- fontSizepublic int fontSizeFont size when non-auto-size in terminal.
- doLinkspublic boolean doLinksLink hotspots.
- linksInitialTextInitial texts for links.
- doKeyspublic boolean doKeysFunction keys hotspots.
- keysInitialTextInitial 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.
- rectangleColorspublic int[] rectangleColorsThe table of colors (RGB value), with the descriptions as the "TERM_RECTANGLE_TYPES" static String array variable.
- screenColorspublic int[] screenColorsThe screen colors, 0=background... etc to index 15.
- connectOpenpublic boolean connectOpenHow sessions are handled at open terminal.
- reconnectAtRestartpublic boolean reconnectAtRestartReconnect session at restart.
- cxCharCapturePreviewpublic int cxCharCapturePreviewPreview character size in X.
- cyCharCapturePreviewpublic int cyCharCapturePreviewPreview character size in y.
- doCapturePreviewAntiAliaspublic boolean doCapturePreviewAntiAliasAnti-alias for capture preview.
- cxCharRecordingPreviewpublic int cxCharRecordingPreviewRecording preview character size in X.
- cyCharRecordingPreviewpublic int cyCharRecordingPreviewRecording preview character size in y.
- doRecordingPreviewAntiAliaspublic boolean doRecordingPreviewAntiAliasAnti-alias for recording preview.
- doPreviewConnectpublic boolean doPreviewConnectConnect host upon preview show (only live sessions).
- doShowTooltipForUnconnectedSessionpublic boolean doShowTooltipForUnconnectedSessionShow unconnected tooltip sessions.
- doShowTooltipRecordedScreenspublic boolean doShowTooltipRecordedScreensShow "all" recording screens or just current.
- maxTooltipRecordingScreensPerLinepublic int maxTooltipRecordingScreensPerLineMax count of recording screens for tooltips sideways.
- maxTooltipRecordingScreenLinespublic int maxTooltipRecordingScreenLinesMax count of recording screen lines for tooltips.
 
- Constructor Details- PluginPreferencepublic PluginPreference()Construction of the class.
- PluginPreferencepublic PluginPreference- (int page) Constructs a new preference class with defaults for a page.
 
- Method Details- getInstanceGets the instance.- Returns:
- The single instance of the preferences.
 
- initializeDefaultPreferencespublic 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()
 
 
- saveToStorepublic void saveToStore- (int page) Saves a "page" to the store.
- getTerminalSettingsGets the terminal settings.
- setShowScreenCursorpublic static void setShowScreenCursor- (boolean on) Sets showing of screen cursor.
- doShowScreenCursorpublic static boolean doShowScreenCursor()Gets showing of screen cursor.
- setShowScreenCursorEEpublic static void setShowScreenCursorEE- (boolean on) Sets showing of screen cursor for captures.
- doShowScreenCursorEEpublic static boolean doShowScreenCursorEE()Gets showing of screen cursor for captures.
- setAutoCreateVSFieldspublic static void setAutoCreateVSFields- (boolean on) Sets auto-creation of VS fields.
- doAutoCreateVSFieldspublic static boolean doAutoCreateVSFields()Gets auto-creation of VS fields.
- setUpdateRectanglepublic static void setUpdateRectangle- (boolean on) Sets update of screen rectangle contents.
- doUpdateRectanglepublic static boolean doUpdateRectangle()Gets update of screen rectangle contents.
- setMoveWrappublic static void setMoveWrap- (boolean on) Sets wrap when moving.
- setSizeWrappublic static void setSizeWrap- (boolean on) Sets wrap when sizing.