本文整理汇总了Java中org.eclipse.jface.preference.IPreferenceStore.setDefault方法的典型用法代码示例。如果您正苦于以下问题:Java IPreferenceStore.setDefault方法的具体用法?Java IPreferenceStore.setDefault怎么用?Java IPreferenceStore.setDefault使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.jface.preference.IPreferenceStore
的用法示例。
在下文中一共展示了IPreferenceStore.setDefault方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: intializeBuilderPreferences
import org.eclipse.jface.preference.IPreferenceStore; //导入方法依赖的package包/类
private void intializeBuilderPreferences(IPreferenceStore store) {
for (CompilerDescriptor compilerDescriptor : compositeGenerator.getCompilerDescriptors()) {
for (CompilerProperties prop : CompilerProperties.values()) {
if (prop.getType() == Boolean.class) {
store.setDefault(
prop.getKey(compilerDescriptor.getIdentifier()),
(Boolean) prop.getValueInCompilerDescriptor(compilerDescriptor,
compilerDescriptor.getIdentifier()));
} else {
store.setDefault(
prop.getKey(compilerDescriptor.getIdentifier()),
(String) prop.getValueInCompilerDescriptor(compilerDescriptor,
compilerDescriptor.getIdentifier()));
}
}
}
}
示例2: initializeDefaultPreferences
import org.eclipse.jface.preference.IPreferenceStore; //导入方法依赖的package包/类
public void initializeDefaultPreferences() {
IPreferenceStore store = Activator.getDefault().getPreferenceStore();
store.setDefault(PreferenceConstants.BDF_VERSION, "1");
store.setDefault(PreferenceConstants.URL_LIST,
"http://localhost:8080/bdf-test/bdf.popertiesLoderController.downXmlPropdesc.c");
store.setDefault(PreferenceConstants.HOST, "localhost");
store.setDefault(PreferenceConstants.PORT, "8080");
}
示例3: initializeDefaultPreferences
import org.eclipse.jface.preference.IPreferenceStore; //导入方法依赖的package包/类
@Override
public void initializeDefaultPreferences ()
{
final IPreferenceStore store = Activator.getDefault ().getPreferenceStore ();
store.setDefault ( PreferenceConstants.P_IMG_OK, makeURI ( "ok.png" ) );
store.setDefault ( PreferenceConstants.P_IMG_INACTIVE, makeURI ( "inactive.png" ) );
store.setDefault ( PreferenceConstants.P_DEFAULT_LAZY_ACTIVATTION, false );
}
示例4: initializeDefaultPreferences
import org.eclipse.jface.preference.IPreferenceStore; //导入方法依赖的package包/类
@Override
public void initializeDefaultPreferences ()
{
final IPreferenceStore store = Activator.getDefault ().getPreferenceStore ();
store.setDefault ( PreferenceConstants.BELL_ACTIVATED_KEY, true );
store.setDefault ( PreferenceConstants.NUMBER_OF_EVENTS_KEY, 0 );
store.setDefault ( PreferenceConstants.CUT_LIST_ALL_SECONDS_KEY, 10 * 60 );
}
示例5: initializeDefaults
import org.eclipse.jface.preference.IPreferenceStore; //导入方法依赖的package包/类
/**
* Sets the default values of the preferences.
*/
private void initializeDefaults() {
IPreferenceStore store = getPreferenceStore();
store.setDefault(P_STATISTICS, false);
store.setDefault(P_ENGINETRACELEVEL, "3");
store.setDefault(P_STUDIOTRACELEVEL, "3");
}
示例6: StatusQueueLaunchView
import org.eclipse.jface.preference.IPreferenceStore; //导入方法依赖的package包/类
public StatusQueueLaunchView() {
IPreferenceStore store = Activator.getDefault().getPreferenceStore();
store.setDefault(BUNDLE, "org.dawnsci.commandserver.SOMETHING");
store.setDefault(BEAN, "org.dawnsci.commandserver.SOMETHING.YourStatusBean");
store.setDefault(STATUS_QUEUE, "scisoft.SOMETHING.STATUS_QUEUE");
store.setDefault(STATUS_TOPIC, "scisoft.SOMETHING.STATUS_TOPIC");
store.setDefault(SUBMIT_QUEUE, "scisoft.SOMETHING.SUBMISSION_QUEUE");
store.setDefault(PART_NAME, "Queue Monitor");
}
示例7: initializeDefaultPreferences
import org.eclipse.jface.preference.IPreferenceStore; //导入方法依赖的package包/类
@Override
public void initializeDefaultPreferences() {
IPreferenceStore store = UroborosqlFormatterPlugin.getDefault().getPreferenceStore();
store.setDefault(USE_UPPERCASE, true);
store.setDefault(HAS_BACKWARD_COMPATIBILITY_DONE, false);
store.setDefault(CASE, CaseType.UPPER.name());
store.setDefault(RESERVED_CASE, CaseType.UPPER.name());
store.setDefault(RESERVED_WORDS, "");
store.setDefault(USE_BACKSLASH, false);
store.setDefault(COMMENT_SYNTAX_TYPE, CommentSyntaxType.Uroborosql.name());
}
开发者ID:future-architect,项目名称:eclipse-uroborosql-formatter,代码行数:12,代码来源:UroborosqlFormatterPreferenceInitializer.java
示例8: initializeDefaultPreferences
import org.eclipse.jface.preference.IPreferenceStore; //导入方法依赖的package包/类
public void initializeDefaultPreferences() {
IPreferenceStore store = Activator.getDefault().getPreferenceStore();
store.setDefault(PreferenceConstants.P_OPEN_SHARED_GRAPHML_FILE, false);
store.setDefault(PreferenceConstants.P_AUTO_RESIZING, true);
store.setDefault(PreferenceConstants.P_AUTO_NODE_DIMENSION_MARGE_WIDTH , 25);
store.setDefault(PreferenceConstants.P_AUTO_NODE_DIMENSION_MARGE_HEIGHT, 30);
store.setDefault(PreferenceConstants.P_NODE_DIMENSION_WIDTH ,100);
store.setDefault(PreferenceConstants.P_NODE_DIMENSION_HEIGHT ,100);
store.setDefault(PreferenceConstants.P_ROW_COUNT_FOR_VERTEX_TEXT_DESCRIPTION ,3);
store.setDefault(PreferenceConstants.P_ROW_COUNT_FOR_EDGE_TEXT_DESCRIPTION ,3);
store.setDefault(PreferenceConstants.P_ROW_COUNT_FOR_TEXT_REQUIREMENTS ,3);
store.setDefault(PreferenceConstants.P_MAX_ROW_IN_TOOLTIPS ,3);
store.setDefault(PreferenceConstants.P_SPACE_HEIGHT_MARGE_FOR_TREE_LAYOUT_ALGORITHM ,60);
store.setDefault(PreferenceConstants.P_SPACE_WIDTH_MARGE_FOR_TREE_LAYOUT_ALGORITHM,60);
}
示例9: initializeDefaultPreferences
import org.eclipse.jface.preference.IPreferenceStore; //导入方法依赖的package包/类
@Override
public void initializeDefaultPreferences() {
IPreferenceStore store = Activator.getDefault().getPreferenceStore();
store.setDefault(PREF.PGDUMP_EXE_PATH, "pg_dump"); //$NON-NLS-1$
store.setDefault(PREF.DB_STORE, "default\t\t\t\t\t0"); //$NON-NLS-1$
store.setDefault(PREF.PGDUMP_CUSTOM_PARAMS, ""); //$NON-NLS-1$
store.setDefault(PREF.FORCE_SHOW_CONSOLE, true);
store.setDefault(PG_EDIT_PREF.EDITOR_UPDATE_ACTION, PG_EDIT_PREF.NO_ACTION);
store.setDefault(DB_UPDATE_PREF.ALTER_COLUMN_STATEMENT, true);
store.setDefault(DB_UPDATE_PREF.DROP_COLUMN_STATEMENT, true);
store.setDefault(DB_UPDATE_PREF.DROP_TABLE_STATEMENT, true);
store.setDefault(DB_UPDATE_PREF.RESTART_WITH_STATEMENT, true);
store.setDefault(DB_UPDATE_PREF.SHOW_SCRIPT_OUTPUT_SEPARATELY, true);
store.setDefault(DB_UPDATE_PREF.USING_ON_OFF, true);
store.setDefault(DB_UPDATE_PREF.DELETE_SCRIPT_AFTER_CLOSE, MessageDialogWithToggle.PROMPT);
store.setDefault(DB_UPDATE_PREF.CREATE_SCRIPT_IN_PROJECT, MessageDialogWithToggle.ALWAYS);
store.setDefault(DB_UPDATE_PREF.MIGRATION_COMMAND, UIConsts.DDL_DEFAULT_CMD);
store.setDefault(PG_EDIT_PREF.PERSPECTIVE_CHANGING_STATUS, MessageDialogWithToggle.PROMPT);
store.setDefault(COMMIT_PREF.CONSIDER_DEPCY_IN_COMMIT, true);
store.setDefault(USAGE_REPORT_PREF.USAGEREPORT_ENABLED_ID, true);
store.setDefault(USAGE_REPORT_PREF.ASK_USER_USAGEREPORT_ID, true);
setSQLSyntaxColorDefaults(store);
}
示例10: init
import org.eclipse.jface.preference.IPreferenceStore; //导入方法依赖的package包/类
@Override
public void init(IWorkbench workbench) {
IPreferenceStore preferenceStore =PlatformUI.getPreferenceStore();
preferenceStore.setDefault(PreferenceConstants.LOCAL_PORT_NO, DEFAULT_LOCAL_PORT);
preferenceStore.setDefault(PreferenceConstants.REMOTE_PORT_NO, DEFAULT_REMOTE_PORT);
preferenceStore.setDefault(PreferenceConstants.USE_REMOTE_CONFIGURATION, DEFAULT_USE_REMOTE_CONFIGURATION_CHECK);
setPreferenceStore(preferenceStore);
}
示例11: init
import org.eclipse.jface.preference.IPreferenceStore; //导入方法依赖的package包/类
@Override
public void init(IWorkbench workbench) {
IPreferenceStore preferenceStore = Activator.getDefault().getPreferenceStore();
preferenceStore.setDefault(PreferenceConstants.VIEW_DATA_TEMP_FILEPATH, Utils.INSTANCE.getDataViewerDebugFilePath());
preferenceStore.setDefault(PreferenceConstants.DEFAULTPATH, DEFAULTPATH_VALUE);
preferenceStore.setDefault(PreferenceConstants.VIEW_DATA_FILE_SIZE, DEFAULT_VIEW_DATA_FILE_SIZE);
preferenceStore.setDefault(PreferenceConstants.VIEW_DATA_PAGE_SIZE, DEFAULT_VIEW_DATA_PAGE_SIZE);
preferenceStore.setDefault(PreferenceConstants.DELIMITER, DEFAULT_DELIMITER);
preferenceStore.setDefault(PreferenceConstants.QUOTE_CHARACTOR, DEFAULT_QUOTE_CHARACTOR);
preferenceStore.setDefault(PreferenceConstants.INCLUDE_HEADER, DEFAULT_INCLUDE_HEADER_CHECK);
preferenceStore.setDefault(PreferenceConstants.PURGE_DATA_FILES, DEFAULT_PURGE_DATA_FILES_CHECK);
setPreferenceStore(preferenceStore);
}
示例12: init
import org.eclipse.jface.preference.IPreferenceStore; //导入方法依赖的package包/类
@Override
public void init(IWorkbench workbench) {
IPreferenceStore preferenceStore = Activator.getDefault().getPreferenceStore();
preferenceStore.setDefault(ExecutionPreferenceConstants.EXECUTION_TRACKING, true);
preferenceStore.setDefault(ExecutionPreferenceConstants.TRACKING_LOG_PATH,
TrackingDisplayUtils.INSTANCE.getInstallationPath());
setPreferenceStore(preferenceStore);
}
示例13: initializeDefaultPreferences
import org.eclipse.jface.preference.IPreferenceStore; //导入方法依赖的package包/类
public void initializeDefaultPreferences() {
BatchEditorPreferences preferences = getPreferences();
IPreferenceStore store = preferences.getPreferenceStore();
/* Outline */
store.setDefault(P_LINK_OUTLINE_WITH_EDITOR.getId(), true);
/* ++++++++++++ */
/* + Brackets + */
/* ++++++++++++ */
/* bracket rendering configuration */
store.setDefault(P_EDITOR_MATCHING_BRACKETS_ENABLED.getId(), true); // per default matching is enabled, but without the two other special parts
store.setDefault(P_EDITOR_HIGHLIGHT_BRACKET_AT_CARET_LOCATION.getId(), false);
store.setDefault(P_EDITOR_ENCLOSING_BRACKETS.getId(), false);
store.setDefault(P_EDITOR_AUTO_CREATE_END_BRACKETSY.getId(), true);
/* bracket color */
preferences.setDefaultColor(P_EDITOR_MATCHING_BRACKETS_COLOR, GRAY_JAVA);
/* +++++++++++++++++++ */
/* + Code Assistence + */
/* +++++++++++++++++++ */
store.setDefault(P_CODE_ASSIST_ADD_KEYWORDS.getId(), true);
store.setDefault(P_CODE_ASSIST_ADD_SIMPLEWORDS.getId(), true);
/* +++++++++++++++++ */
/* + Editor Colors + */
/* +++++++++++++++++ */
preferences.setDefaultColor(COLOR_NORMAL_TEXT, BLACK);
preferences.setDefaultColor(COLOR_BATCH_INTERNAL_KEYWORD, KEYWORD_DEFAULT_PURPLE);
preferences.setDefaultColor(COLOR_GSTRING, ROYALBLUE);
preferences.setDefaultColor(COLOR_COMMENT, GREEN_JAVA);
preferences.setDefaultColor(COLOR_EXTERNAL_COMMAND, TASK_DEFAULT_RED);
preferences.setDefaultColor(COLOR_KNOWN_VARIABLES, DARK_GRAY);
preferences.setDefaultColor(COLOR_PARAMETERS, DARK_BLUE);
preferences.setDefaultColor(COLOR_ECHO_OUTPUT, GRAY);
}
示例14: initializeDefaultPreferences
import org.eclipse.jface.preference.IPreferenceStore; //导入方法依赖的package包/类
@Override
public void initializeDefaultPreferences ()
{
final IPreferenceStore store = Activator.getDefault ().getPreferenceStore ();
store.setDefault ( PreferenceConstants.P_DEFAULT_CHUNK_SIZE, 500 );
}
示例15: initializeDefaultPreferences
import org.eclipse.jface.preference.IPreferenceStore; //导入方法依赖的package包/类
@Override
public void initializeDefaultPreferences ()
{
final IPreferenceStore store = Activator.getDefault ().getPreferenceStore ();
store.setDefault ( PreferenceConstants.PREF_STYLE_GENERATOR_ID, "org.eclipse.scada.core.ui.styles.defaultStyleGenerator" ); //$NON-NLS-1$
}