本文整理匯總了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);
}
}
示例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");
}
示例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);
}
示例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$*/
}
示例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);
}
示例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();
}
示例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);
}