當前位置: 首頁>>代碼示例>>Java>>正文


Java EditorsUI.useQuickDiffPreferencePage方法代碼示例

本文整理匯總了Java中org.eclipse.ui.editors.text.EditorsUI.useQuickDiffPreferencePage方法的典型用法代碼示例。如果您正苦於以下問題:Java EditorsUI.useQuickDiffPreferencePage方法的具體用法?Java EditorsUI.useQuickDiffPreferencePage怎麽用?Java EditorsUI.useQuickDiffPreferencePage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.eclipse.ui.editors.text.EditorsUI的用法示例。


在下文中一共展示了EditorsUI.useQuickDiffPreferencePage方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: initializeDefaultPreferences

import org.eclipse.ui.editors.text.EditorsUI; //導入方法依賴的package包/類
@Override
public void initializeDefaultPreferences() {

	IPreferenceStore store = PreferenceConstants.getPreferenceStore();
	EditorsUI.useAnnotationsPreferencePage(store);
	EditorsUI.useQuickDiffPreferencePage(store);
	PreferenceConstants.initializeDefaultValues();

	// Override HTML Editor content assist sort to set at first the HTML
	// Angular proposal in the completion.
	IPreferenceStore htmlStore = HTMLUIPlugin.getDefault().getPreferenceStore();
	String htmlContentAssistSort = htmlStore
			.getDefaultString(HTMLUIPreferenceNames.CONTENT_ASSIST_DEFAULT_PAGE_SORT_ORDER);
	if (htmlContentAssistSort != null
			&& !htmlContentAssistSort.contains("ts.eclipse.ide.angular.ui.proposalCategory.htmlTags\0")) {
		htmlStore.setDefault(HTMLUIPreferenceNames.CONTENT_ASSIST_DEFAULT_PAGE_SORT_ORDER,
				"ts.eclipse.ide.angular.ui.proposalCategory.htmlTags\0" + htmlContentAssistSort);
	}
}
 
開發者ID:angelozerr,項目名稱:angular-eclipse,代碼行數:20,代碼來源:AngularUIPreferenceInitializer.java

示例2: initializeDefaultPreferences

import org.eclipse.ui.editors.text.EditorsUI; //導入方法依賴的package包/類
public void initializeDefaultPreferences() {
  IPreferenceStore store = JuliaEditorPlugin.getDefault().getPreferenceStore();
  EditorsUI.useAnnotationsPreferencePage(store);
  EditorsUI.useQuickDiffPreferencePage(store);
  PreferenceConstants.initializeDefaultValues(store);
  PreferenceConverter.setDefault(store, JuliaColourConstants.COMMENT, COMMENT_COLOUR);
  PreferenceConverter.setDefault(store, JuliaColourConstants.KEYWORD, KEYWORD_COLOUR);
  PreferenceConverter.setDefault(store, JuliaColourConstants.STRING, STRING_COLOUR);

  store.setDefault(JuliaColourConstants.COMMENT + PreferenceConstants.EDITOR_BOLD_SUFFIX, false);
  store
      .setDefault(JuliaColourConstants.COMMENT + PreferenceConstants.EDITOR_ITALIC_SUFFIX, false);

  store.setDefault(JuliaColourConstants.KEYWORD + PreferenceConstants.EDITOR_BOLD_SUFFIX, true);
  store
      .setDefault(JuliaColourConstants.KEYWORD + PreferenceConstants.EDITOR_ITALIC_SUFFIX, false);

  store.setDefault(PreferenceConstants.EDITOR_TAB_WIDTH, 4);
  store.setDefault(PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE, true);

  store.setDefault(CodeFormatterConstants.FORMATTER_TAB_CHAR, CodeFormatterConstants.TAB);
  store.setDefault(CodeFormatterConstants.FORMATTER_TAB_SIZE, "4");
  store.setDefault(CodeFormatterConstants.FORMATTER_INDENTATION_SIZE, "4");
}
 
開發者ID:JuliaComputing,項目名稱:JuliaDT,代碼行數:25,代碼來源:JuliaEditorPreferencesInitializer.java

示例3: initializeDefaultPreferences

import org.eclipse.ui.editors.text.EditorsUI; //導入方法依賴的package包/類
@Override
public void initializeDefaultPreferences() {
	IPreferenceStore store = PreferenceConstants.getPreferenceStore();

	EditorsUI.useAnnotationsPreferencePage(store);
	EditorsUI.useQuickDiffPreferencePage(store);
	PreferenceConstants.initializeDefaultValues(store);
}
 
開發者ID:trylimits,項目名稱:Eclipse-Postfix-Code-Completion,代碼行數:9,代碼來源:JavaUIPreferenceInitializer.java

示例4: initializeDefaultPreferences

import org.eclipse.ui.editors.text.EditorsUI; //導入方法依賴的package包/類
public void initializeDefaultPreferences() {
	IPreferenceStore store = PreferenceConstants.getPreferenceStore();
	EditorsUI.useAnnotationsPreferencePage(store);
	EditorsUI.useQuickDiffPreferencePage(store);
	PreferenceConstants.initializeDefaultValues();

/*	IPreferenceStore dltkStore = DLTKUIPlugin.getDefault()
			.getPreferenceStore();
	dltkStore.setDefault(
			org.eclipse.dltk.ui.PreferenceConstants.CODEASSIST_SORTER,
			"org.eclipse.php.ui.AlphabeticSorter"); //$NON-NLS-1$*/
}
 
開發者ID:angelozerr,項目名稱:eclipse-wtp-freemarker,代碼行數:13,代碼來源:FMUIPreferenceInitializer.java

示例5: initializeDefaultPreferences

import org.eclipse.ui.editors.text.EditorsUI; //導入方法依賴的package包/類
@Override
public void initializeDefaultPreferences() {
  IPreferenceStore store = GnUiPlugin.getDefault().getPreferenceStore();

  EditorsUI.useAnnotationsPreferencePage(store);
  EditorsUI.useQuickDiffPreferencePage(store);

  GnPreferenceConstants.initializeDefaultValues(store);
  SemanticHighlightingUtils.initializeDefaultValues(store,
      new GnSemanticUpdateWorker().getSemanticHighlightings());
  store.setDefault(GnPreferenceConstants.FORMATTER_ID, Util.EMPTY_STRING);
}
 
開發者ID:chromium,項目名稱:eclipse-gn,代碼行數:13,代碼來源:GnUiPreferenceInitializer.java

示例6: initializeDefaultPreferences

import org.eclipse.ui.editors.text.EditorsUI; //導入方法依賴的package包/類
@Override
public void initializeDefaultPreferences() {

	IPreferenceStore store = PreferenceConstants.getPreferenceStore();
	EditorsUI.useAnnotationsPreferencePage(store);
	EditorsUI.useQuickDiffPreferencePage(store);
	PreferenceConstants.initializeDefaultValues();
}
 
開發者ID:angelozerr,項目名稱:angularjs-eclipse,代碼行數:9,代碼來源:AngularUIPreferenceInitializer.java

示例7: initializeDefaultPreferences

import org.eclipse.ui.editors.text.EditorsUI; //導入方法依賴的package包/類
public void initializeDefaultPreferences() {
  final IPreferenceStore store = JuliaUIPlugin.getDefault().getPreferenceStore();
  EditorsUI.useAnnotationsPreferencePage(store);
  EditorsUI.useQuickDiffPreferencePage(store);
}
 
開發者ID:JuliaComputing,項目名稱:JuliaDT,代碼行數:6,代碼來源:JuliaUIPreferenceInitializer.java


注:本文中的org.eclipse.ui.editors.text.EditorsUI.useQuickDiffPreferencePage方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。