Java Code Examples for org.eclipse.jface.preference.IPreferenceStore#setDefault()
The following examples show how to use
org.eclipse.jface.preference.IPreferenceStore#setDefault() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TBDatabaseInitializer.java From tmxeditor8 with GNU General Public License v2.0 | 6 votes |
/** (non-Javadoc) * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences() */ @Override public void initializeDefaultPreferences() { // 设置术语库默认更新策略 IPreferenceStore store = Activator.getDefault().getPreferenceStore(); store.setDefault(TBPreferenceConstants.TB_UPDATE, TBPreferenceConstants.TB_REPEAT_OVERWRITE); // 初始化新建向导记住信息 store.setDefault(TBPreferenceConstants.TB_RM_DBTYPE, ""); store.setDefault(TBPreferenceConstants.TB_RM_INSTANCE, ""); store.setDefault(TBPreferenceConstants.TB_RM_SERVER, ""); store.setDefault(TBPreferenceConstants.TB_RM_PORT, ""); store.setDefault(TBPreferenceConstants.TB_RM_PATH, ""); store.setDefault(TBPreferenceConstants.TB_RM_USERNAME, ""); store.setDefault(TBPreferenceConstants.TB_CASE_SENSITIVE, true); PlatformUI.getPreferenceStore().setDefault(TBPreferenceConstants.TB_CASE_SENSITIVE,true); }
Example 2
Source File: TMDatabaseInitializer.java From tmxeditor8 with GNU General Public License v2.0 | 6 votes |
@Override public void initializeDefaultPreferences() { IPreferenceStore store = Activator.getDefault().getPreferenceStore(); store.setDefault(TMPreferenceConstants.CASE_SENSITIVE, false); store.setDefault(TMPreferenceConstants.IGNORE_MARK, true); if (CommonFunction.checkEdition("U")) { store.setDefault(TMPreferenceConstants.CONTEXT_MATCH, 1); } else { store.setDefault(TMPreferenceConstants.CONTEXT_MATCH, 0); } store.setDefault(TMPreferenceConstants.MAX_MATCH_NUMBER, 5); store.setDefault(TMPreferenceConstants.TAG_PENALTY, 2); //标记罚分 store.setDefault(TMPreferenceConstants.MIN_MATCH, "70"); store.setDefault(TMPreferenceConstants.MATCH_PERCENTAGE_SORT_WITH_EQUAL, TMPreferenceConstants.DEFAULT_DB_PRECEDENCE); store.setDefault(TMPreferenceConstants.TM_UPDATE, TMPreferenceConstants.TM_ALWAYS_ADD); // 初始化新建向导记住信息 store.setDefault(TMPreferenceConstants.TM_RM_DBTYPE, ""); store.setDefault(TMPreferenceConstants.TM_RM_INSTANCE, ""); store.setDefault(TMPreferenceConstants.TM_RM_SERVER, ""); store.setDefault(TMPreferenceConstants.TM_RM_PORT, ""); store.setDefault(TMPreferenceConstants.TM_RM_PATH, ""); store.setDefault(TMPreferenceConstants.TM_RM_USERNAME, ""); }
Example 3
Source File: CopyrightPreferenceInitializer.java From hybris-commerce-eclipse-plugin with Apache License 2.0 | 6 votes |
/** * {@inheritDoc} */ @Override public void initializeDefaultPreferences() { final IPreferenceStore store = Activator.getDefault().getPreferenceStore(); store.setDefault(CopyrightPreferenceConstants.COPYRIGHT_CONTENT, CopyrightPreferenceConstants.DEFAULT_COPYRIGHT_CONTENT); store.setDefault(CopyrightPreferenceConstants.COPYRIGHT_FIRST_LINE, CopyrightPreferenceConstants.DEFAULT_COPYRIGHT_FIRST_LINE); store.setDefault(CopyrightPreferenceConstants.COPYRIGHT_LINE_PREFIX, CopyrightPreferenceConstants.DEFAULT_COPYRIGHT_LINE_PREFIX); store.setDefault(CopyrightPreferenceConstants.COPYRIGHT_LAST_LINE, CopyrightPreferenceConstants.DEFAULT_COPYRIGHT_LAST_LINE); }
Example 4
Source File: UpdateCheckerPreferencePage.java From developer-studio with Apache License 2.0 | 5 votes |
public static void setPreferenceDefaults(IPreferenceStore preferenceStore) { preferenceStore.setDefault(PreferenceConstants.RELESE_SITE_URL, PreferenceInitializer.DEFAULT_RELEASE_SITE); preferenceStore.setDefault(PreferenceConstants.UPDATE_SITE_URL, PreferenceInitializer.DEFAULT_UPDATE_SITE); preferenceStore.setDefault(PreferenceConstants.UPDATE_RUNNING_CONFIGURATION, PreferenceConstants.STARTUP); preferenceStore.setDefault(PreferenceConstants.UPDATE_DATE_INTERVAL, PreferenceConstants.DEFAULT_SUNDAY); preferenceStore.setDefault(PreferenceConstants.UPDATE_TIME_INTERVAL, PreferenceConstants.DEFAULT_EIGHT_AM); preferenceStore.setDefault(PreferenceConstants.UPDATE_NOTIFICATION_CONFIGURATION, PreferenceConstants.NOTIFY_ME); preferenceStore.setDefault(PreferenceConstants.ENABLE_AUTOMATIC_UPDATES, true); }
Example 5
Source File: TSPreferenceInitializer.java From tmxeditor8 with GNU General Public License v2.0 | 5 votes |
@Override public void initializeDefaultPreferences() { // 设置 colors 首选项页的初始值 IPreferenceStore store = Activator.getDefault().getPreferenceStore(); PreferenceConverter.setDefault(store, IColorPreferenceConstant.TAG_FG_COLOR, new RGB(234, 234, 234)); PreferenceConverter.setDefault(store, IColorPreferenceConstant.TAG_BG_COLOR, new RGB(223, 112, 0)); PreferenceConverter.setDefault(store, IColorPreferenceConstant.WRONG_TAG_COLOR, new RGB(255, 0, 0)); PreferenceConverter.setDefault(store, IColorPreferenceConstant.DIFFERENCE_FG_COLOR, new RGB(255, 0, 0)); PreferenceConverter.setDefault(store, IColorPreferenceConstant.DIFFERENCE_BG_COLOR, new RGB(244, 244, 159)); PreferenceConverter.setDefault(store, IColorPreferenceConstant.PT_COLOR, new RGB(255, 0, 0)); PreferenceConverter.setDefault(store, IColorPreferenceConstant.QT_COLOR, new RGB(255, 204, 204)); PreferenceConverter.setDefault(store, IColorPreferenceConstant.MT_COLOR, new RGB(171, 217, 198)); PreferenceConverter.setDefault(store, IColorPreferenceConstant.TM_MATCH101_COLOR, new RGB(255, 255, 204)); PreferenceConverter.setDefault(store, IColorPreferenceConstant.TM_MATCH100_COLOR, new RGB(37, 168, 204)); PreferenceConverter.setDefault(store, IColorPreferenceConstant.TM_MATCH90_COLOR, new RGB(79, 185, 214)); PreferenceConverter.setDefault(store, IColorPreferenceConstant.TM_MATCH80_COLOR, new RGB(114, 199, 222)); PreferenceConverter.setDefault(store, IColorPreferenceConstant.TM_MATCH70_COLOR, new RGB(155, 215, 231)); PreferenceConverter.setDefault(store, IColorPreferenceConstant.TM_MATCH0_COLOR, new RGB(198, 240, 251)); PreferenceConverter.setDefault(store, IColorPreferenceConstant.HIGHLIGHTED_TERM_COLOR, new RGB(170, 255, 85)); // 设置 net.heartsome.cat.common.core 插件中的语言代码初始值 IPreferenceStore corePreferenceStore = new ScopedPreferenceStore(ConfigurationScope.INSTANCE, CoreActivator .getDefault().getBundle().getSymbolicName()); corePreferenceStore.setDefault(IPreferenceConstants.LANGUAGECODE, LocaleService.getLanguageConfigAsString()); // 设置选择路径对话框的初始值 PlatformUI.getPreferenceStore() .setDefault(IPreferenceConstants.LAST_DIRECTORY, System.getProperty("user.home")); ColorConfigLoader.init(); }
Example 6
Source File: ConfigurableIssueCodesPreferenceStoreInitializer.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
@Override public void initialize(IPreferenceStoreAccess preferenceStoreAccess) { IPreferenceStore preferenceStore = preferenceStoreAccess.getWritablePreferenceStore(); for (PreferenceKey prefKey : issueCodesProvider.getConfigurableIssueCodes().values()) { preferenceStore.setDefault(prefKey.getId(), prefKey.getDefaultValue()); } }
Example 7
Source File: ControlPreferenceInitializer.java From tracecompass with Eclipse Public License 2.0 | 5 votes |
@Override public void initializeDefaultPreferences() { final IPreferenceStore store = ControlPreferences.getInstance().getPreferenceStore(); //Set default User ID if none already stored in preferences store.setDefault(ControlPreferences.TRACE_CONTROL_TRACING_GROUP_PREF, ControlPreferences.TRACE_CONTROL_DEFAULT_TRACING_GROUP); store.setDefault(ControlPreferences.TRACE_CONTROL_LOG_APPEND_PREF, false); store.setDefault(ControlPreferences.TRACE_CONTROL_LOG_FILE_PATH_PREF, ControlPreferences.TRACE_CONTROL_DEFAULT_LOG_PATH); store.setDefault(ControlPreferences.TRACE_CONTROL_LOG_COMMANDS_PREF, false); store.setDefault(ControlPreferences.TRACE_CONTROL_VERBOSE_LEVEL_PREF, ControlPreferences.TRACE_CONTROL_VERBOSE_LEVEL_NONE); }
Example 8
Source File: PreferenceInitializer.java From uml2solidity with Eclipse Public License 1.0 | 5 votes |
public void initializeDefaultPreferences() { IPreferenceStore store = PreferenceConstants.getPreferenceStore(null); store.setDefault(PreferenceConstants.COMPILE_CONTRACTS, false); store.setDefault(PreferenceConstants.COMPILER_PROGRAMM, "/usr/bin/solc"); store.setDefault(PreferenceConstants.COMPILER_TARGET, "bin"); store.setDefault(PreferenceConstants.SOL_SRC_DIRECTORY, "sol-src/"); store.setDefault(PreferenceConstants.COMPILER_BIN, true); store.setDefault(PreferenceConstants.COMPILER_BIN_RUNTIME, false); store.setDefault(PreferenceConstants.COMPILER_ABI, true); store.setDefault(PreferenceConstants.COMPILER_INTERFACT, false); store.setDefault(PreferenceConstants.COMPILER_ASM, false); store.setDefault(PreferenceConstants.COMPILER_AST, false); store.setDefault(PreferenceConstants.COMPILER_ASM_JSON, false); store.setDefault(PreferenceConstants.COMPILER_AST_JSON, false); store.setDefault(PreferenceConstants.COMPILER_USERDOC, false); store.setDefault(PreferenceConstants.COMPILER_DEVDOC, false); store.setDefault(PreferenceConstants.COMPILER_OPTIMIZE, false); store.setDefault(PreferenceConstants.COMPILER_OPCODE, false); store.setDefault(PreferenceConstants.COMPILER_FORMAL, false); store.setDefault(PreferenceConstants.COMPILER_HASHES, false); store.setDefault(PreferenceConstants.ENABLE_GAS_OPTIMIZE, false); store.setDefault(PreferenceConstants.ESTIMATE_GAS_COSTS, false); store.setDefault(PreferenceConstants.COMBINED_JSON_OPTIONS, "abi,bin,metadata"); store.setDefault(PreferenceConstants.COMPILER_TARGET_COMBINE_ABI, "bin/combine.json"); store.setDefault(PreferenceConstants.SELECTED_COMPILER, "/usr/bin/solc"); }
Example 9
Source File: SwaggerPreferenceInitializer.java From KaiZen-OpenAPI-Editor with Eclipse Public License 1.0 | 5 votes |
@Override public void initializeDefaultPreferences() { IPreferenceStore store = Activator.getDefault().getPreferenceStore(); setColorPreferences(store); store.setDefault(VALIDATION_REF_SECURITY_DEFINITIONS_OBJECT, false); store.setDefault(VALIDATION_REF_SECURITY_SCHEME_OBJECT, false); store.setDefault(VALIDATION_REF_SECURITY_REQUIREMENTS_ARRAY, false); store.setDefault(VALIDATION_REF_SECURITY_REQUIREMENT_OBJECT, false); Set<PreferenceProvider> providers = ExtensionUtils.getPreferenceProviders(); providers.forEach(provider -> { provider.initializeDefaultPreferences(Version.SWAGGER, store); }); }
Example 10
Source File: PreferenceInitializer.java From tlaplus with MIT License | 5 votes |
/** * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences() */ public void initializeDefaultPreferences() { final IPreferenceStore store = PreferenceStoreHelper.getInstancePreferenceStore(); store.setDefault(IPreferenceConstants.I_PARSER_POPUP_ERRORS, true); // set to true by LL on 22 Sep 2009 // instance based properties store.setDefault(IPreferenceConstants.I_RESTORE_LAST_SPEC, true); store.setDefault(IPreferenceConstants.I_MIN_DISPLAYED_SIZE, GeneralPreferencePage.MIN_DISPLAYED_SIZE_DEFAULT); store.setDefault(IPreferenceConstants.I_PARSE_MODULE_ON_MODIFY, true); // store.setDefault(IPreferenceConstants.I_PARSE_FILES_ON_MODIFY, true); store.setDefault(IPreferenceConstants.I_PARSE_SPEC_ON_MODIFY, true); /* * Set default (and only) option for PlusCal translator. (Added by LL on 13 May 2016.) */ store.setDefault(IPreferenceConstants.PCAL_CAL_PARAMS, "-nocfg"); // set editor page preference defaults store.setDefault(EditorPreferencePage.EDITOR_RIGHT_MARGIN, EditorPreferencePage.EDITOR_RIGHT_MARGIN_DEFAULT); store.setDefault(EditorPreferencePage.CLEAR_DECLARATION_USE_MARKERS_ON_PARSE, EditorPreferencePage.CLEAR_DECLARATION_USE_MARKERS_ON_PARSE_DEFAULT); store.setDefault(EditorPreferencePage.EDITOR_ADD_MODIFICATION_HISTORY, EditorPreferencePage.EDITOR_ADD_MODIFICATION_HISTORY_DEFAULT); /* * Set default for Renumber Proof command option. */ store.setDefault(EditorPreferencePage.RENUMBER_KEY, EditorPreferencePage.ALL_NAMES); store.setDefault(EditorPreferencePage.SAVE_MODULE, true); store.setDefault(IPreferenceConstants.I_FOLDING_BLOCK_COMMENTS, false); store.setDefault(IPreferenceConstants.I_FOLDING_PCAL_ALGORITHM, false); store.setDefault(IPreferenceConstants.I_FOLDING_PCAL_TRANSLATED, false); }
Example 11
Source File: EncodingPreferenceInitializer.java From eclipse-encoding-plugin with Eclipse Public License 1.0 | 5 votes |
@Override public void initializeDefaultPreferences() { IPreferenceStore store = Activator.getDefault().getPreferenceStore(); store.setDefault(PreferenceKey.PREF_AUTODETECT_WARN, true); store.setDefault(PreferenceKey.PREF_DISABLE_DISCOURAGED_OPERATION, true); store.setDefault(PreferenceKey.PREF_DETECTOR, DetectorValue.JUNIVERSALCHARDET); }
Example 12
Source File: LogViewerPlugin.java From LogViewer with Eclipse Public License 2.0 | 5 votes |
private void loadDefaultPluginPreferences(IPreferenceStore store) { store.setDefault(ILogViewerConstants.PREF_BACKLOG,ILogViewerConstants.DEFAULT_BACKLOG); store.setDefault(ILogViewerConstants.PREF_BUFFER,ILogViewerConstants.DEFAULT_BUFFER_CAPACITY); store.setDefault(ILogViewerConstants.PREF_READWAIT,ILogViewerConstants.DEFAULT_READWAIT_SIZE); store.setDefault(ILogViewerConstants.PREF_ENCODING,System.getProperty("file.encoding")); store.setDefault(ILogViewerConstants.PREF_WORD_WRAP,ILogViewerConstants.DEAFULT_WORD_WRAP); store.setDefault(ILogViewerConstants.PREF_SHOW_WHEN_UPDATED,ILogViewerConstants.DEAFULT_SHOW_WHEN_UPDATED); store.setDefault(ILogViewerConstants.PREF_FILTER_EXTENSIONS,ILogViewerConstants.DEFAULT_FILTER_EXTENSIONS); store.setDefault(ILogViewerConstants.PREF_SHOW_TOP_OF_FILE,ILogViewerConstants.DEAFULT_SHOW_TOP_OF_FILE); PreferenceConverter.setDefault(store,ILogViewerConstants.PREF_CURSORLINE_COLOR,new RGB(192,192,192)); PreferenceConverter.setDefault(store,ILogViewerConstants.PREF_EDITOR_FONT_STYLE,JFaceResources.getDefaultFont().getFontData()); }
Example 13
Source File: OpenApi3PreferenceInitializer.java From KaiZen-OpenAPI-Editor with Eclipse Public License 1.0 | 5 votes |
@Override public void initializeDefaultPreferences() { IPreferenceStore store = Activator.getDefault().getPreferenceStore(); setColorPreferences(store); store.setDefault(ADVANCED_VALIDATION, true); Set<PreferenceProvider> providers = ExtensionUtils.getPreferenceProviders(); providers.forEach(provider -> { provider.initializeDefaultPreferences(Version.OPENAPI, store); }); }
Example 14
Source File: PreferenceInitializer.java From IndentGuide with MIT License | 5 votes |
public void initializeDefaultPreferences() { IPreferenceStore store = Activator.getDefault().getPreferenceStore(); store.setDefault(PreferenceConstants.ENABLED, true); store.setDefault(PreferenceConstants.LINE_ALPHA, 50); store.setDefault(PreferenceConstants.LINE_STYLE, SWT.LINE_SOLID); store.setDefault(PreferenceConstants.LINE_WIDTH, 1); store.setDefault(PreferenceConstants.LINE_SHIFT, 3); store.setDefault(PreferenceConstants.LINE_COLOR, "0,0,0"); //$NON-NLS-1$ store.setDefault(PreferenceConstants.DRAW_LEFT_END, true); //$NON-NLS-1$ store.setDefault(PreferenceConstants.DRAW_BLANK_LINE, false); //$NON-NLS-1$ store.setDefault(PreferenceConstants.SKIP_COMMENT_BLOCK, false); //$NON-NLS-1$ store.setDefault(PreferenceConstants.CONTENT_TYPES, IContentTypeManager.CT_TEXT); }
Example 15
Source File: AbstractProgramRunner.java From texlipse with Eclipse Public License 1.0 | 4 votes |
/** * */ public void initializeDefaults(IPreferenceStore pref, String path) { pref.setDefault(getCommandPreferenceName(), path); pref.setDefault(getArgumentsPreferenceName(), getDefaultArguments()); }
Example 16
Source File: QAInitializer.java From tmxeditor8 with GNU General Public License v2.0 | 4 votes |
@Override public void initializeDefaultPreferences() { IPreferenceStore preferenceStore = Activator.getDefault().getPreferenceStore(); //-------------------------------QAPage中的默认项-------------------- //将不包含上下文匹配的按钮设成默认选中状态 if (isUltimate) { preferenceStore.setDefault(QAConstant.QA_PREF_CONTEXT_NOTINCLUDE, true); } else { preferenceStore.setDefault(QAConstant.QA_PREF_CONTEXT_NOTINCLUDE, false); } preferenceStore.setDefault(QAConstant.QA_PREF_LOCKED_NOTINCLUDE, true); //将相同源文不同译文与相同译文不同源文下的忽略大小写与忽略标记全部勾选 preferenceStore.setDefault(QAConstant.QA_PREF_PARA_SAMESOURCE, true); preferenceStore.setDefault(QAConstant.QA_PREF_PARA_SRC_IGNORCECASE, true); preferenceStore.setDefault(QAConstant.QA_PREF_PARA_SRC_IGNORCETAG, true); preferenceStore.setDefault(QAConstant.QA_PREF_PARA_SAMETARGET, true); preferenceStore.setDefault(QAConstant.QA_PREF_PARA_TAR_IGNORCECASE, true); preferenceStore.setDefault(QAConstant.QA_PREF_PARA_TAR_IGNORCETAG, true); //设置目标文本段长度限制检查的默认值 preferenceStore.setDefault(QAConstant.QA_PREF_isCheckTgtMinLength, false); preferenceStore.setDefault(QAConstant.QA_PREF_isCheckTgtMaxLength, false); preferenceStore.setDefault(QAConstant.QA_PREF_tgtMinLength, "0"); preferenceStore.setDefault(QAConstant.QA_PREF_tgtMaxLength, "0"); //-------------------------------QAPage中的默认项-------------------- //默认情况下所有的品质检查项全部选中,因此先将每个检查项的标识符用","组装起来。(备注:由于现在只开发了五个检查项,因此这里只加了五个,以后每开发完成一个,就加到这里) String defaultItems = QAConstant.QA_TERM + "," + QAConstant.QA_PARAGRAPH + "," + QAConstant.QA_NUMBER + "," + QAConstant.QA_TAG + "," + QAConstant.QA_NONTRANSLATION + "," + QAConstant.QA_SPACEOFPARACHECK + "," + QAConstant.QA_PARACOMPLETENESS + "," + QAConstant.QA_SPELL; String autoDefaultItems = QAConstant.QA_TERM + "," + QAConstant.QA_NUMBER + "," + QAConstant.QA_TAG + "," + QAConstant.QA_SPELL; //默认情况下所有的品质检查项全部选中,因此先将每个检查项的标识符用","组装起来。 preferenceStore.setDefault(QAConstant.QA_PREF_BATCH_QAITEMS, defaultItems); preferenceStore.setDefault(QAConstant.QA_PREF_AUTO_QAITEMS, autoDefaultItems); //默认为入库时执行 preferenceStore.setDefault(QAConstant.QA_PREF_AUTO_QARUNTIME, QAConstant.QA_FIRST); // 设置默认错误级别 preferenceStore.setDefault(QAConstant.QA_PREF_term_TIPLEVEL, 1); preferenceStore.setDefault(QAConstant.QA_PREF_para_TIPLEVEL, 1); preferenceStore.setDefault(QAConstant.QA_PREF_number_TIPLEVEL, 0); preferenceStore.setDefault(QAConstant.QA_PREF_tag_TIPLEVEL, 0); preferenceStore.setDefault(QAConstant.QA_PREF_nonTrans_TIPLEVEL, 1); preferenceStore.setDefault(QAConstant.QA_PREF_spaceOfPara_TIPLEVEL, 1); preferenceStore.setDefault(QAConstant.QA_PREF_paraComplete_TIPLEVEL, 1); preferenceStore.setDefault(QAConstant.QA_PREF_tgtLengthLimit_TIPLEVEL, 0); preferenceStore.setDefault(QAConstant.QA_PREF_spell_TIPLEVEL, 1); //-------------------------------SpellPage 中的默认项-------------------- preferenceStore.setDefault(QAConstant.QA_PREF_isHunspell, true); preferenceStore.setDefault(QAConstant.QA_PREF_realTimeSpell, true); preferenceStore.setDefault(QAConstant.QA_PREF_ignoreNontrans, false); preferenceStore.setDefault(QAConstant.QA_PREF_ignoreDigitalFirst, false); preferenceStore.setDefault(QAConstant.QA_PREF_ignoreUpperCaseFirst, false); preferenceStore.setDefault(QAConstant.QA_PREF_ignoreAllUpperCase, true); //-------------------------------文件分析首选项值的初始化--------------- preferenceStore.setDefault(QAConstant.FA_PREF_ignoreCase, true); preferenceStore.setDefault(QAConstant.FA_PREF_ignoreTag, true); if (isUltimate) { preferenceStore.setDefault(QAConstant.FA_PREF_contextNum, 1); } else { preferenceStore.setDefault(QAConstant.FA_PREF_contextNum, 0); } preferenceStore.setDefault(QAConstant.FA_PREF_tagPenalty, 2); preferenceStore.setDefault(QAConstant.FA_PREF_interRepeate, true); preferenceStore.setDefault(QAConstant.FA_PREF_interMatch, false); // 等效系数的设置,初始化值,roebrt 2011-12-21 if (isUltimate) { preferenceStore.setDefault(QAConstant.FA_PREF_equivalent, "internalRepeat:0.50;external101:0.50;external100:0.50;95-99:0.60;85-94:0.70;75-84:0.80;50-74:0.90;"); }else { preferenceStore.setDefault(QAConstant.FA_PREF_equivalent, "internalRepeat:0.50;external100:0.50;95-99:0.60;85-94:0.70;75-84:0.80;50-74:0.90;"); } }
Example 17
Source File: PreferenceInitializer.java From cppcheclipse with Apache License 2.0 | 4 votes |
private static void initializeBinaryPathPreferencesDefault(IPreferenceStore store) { store.setDefault(IPreferenceConstants.P_AUTOMATIC_UPDATE_CHECK_INTERVAL, "weekly"); store.setDefault(IPreferenceConstants.P_USE_AUTOMATIC_UPDATE_CHECK, true); }
Example 18
Source File: XFindPanel.java From xds-ide with Eclipse Public License 1.0 | 4 votes |
public XFindPanel(final Composite parent, IEditorPart editorPart) { super(parent, SWT.NONE); statusLine = new StatusLine(editorPart.getEditorSite()); setVisible(false); if (editorPart != null) { target = (IFindReplaceTarget) editorPart.getAdapter(IFindReplaceTarget.class); isRegExSupported = (target instanceof IFindReplaceTargetExtension3); } final IPreferenceStore store = XFindPlugin.getDefault().getPreferenceStore(); if (!store.contains(XFIND_PANEL_PLACEMENT)) { store.setDefault(XFIND_PANEL_PLACEMENT, XFIND_PANEL_PLACEMENT_TOP); } if (store.getInt(XFIND_PANEL_PLACEMENT) == XFIND_PANEL_PLACEMENT_BOTTOM) { moveBelow(null); } else { moveAbove(null); } createContents(); loadHistory(store); store.addPropertyChangeListener(new IPropertyChangeListener() { @Override public void propertyChange(final PropertyChangeEvent event) { Display.getDefault().syncExec(new Runnable() { @Override public void run() { if (XFIND_PANEL_PLACEMENT.equals(event.getProperty())) { if (store.getInt(XFIND_PANEL_PLACEMENT) == XFIND_PANEL_PLACEMENT_BOTTOM) { moveBelow(null); } else { moveAbove(null); } parent.layout(); } } }); } }); parent.addDisposeListener(new DisposeListener() { @Override public void widgetDisposed(DisposeEvent e) { saveHistory(store); } }); }
Example 19
Source File: ColorPreferencesInitializer.java From depan with Apache License 2.0 | 4 votes |
private void setDefaultRGB(IPreferenceStore prefs, String key, Color color) { prefs.setDefault(key, Colors.getRgb(color)); }
Example 20
Source File: PreferenceInitializer.java From http4e with Apache License 2.0 | 4 votes |
public void initializeDefaultPreferences(){ IPreferenceStore store = HdPlugin.getDefault().getPreferenceStore(); store.setDefault(PreferenceConstants.P_PROXY_LIST, ""); // store.setDefault(PreferenceConstants.P_KEYSTORE_LIST, ""); }