本文整理汇总了Java中org.eclipse.jface.text.IDocumentExtension3.DEFAULT_PARTITIONING属性的典型用法代码示例。如果您正苦于以下问题:Java IDocumentExtension3.DEFAULT_PARTITIONING属性的具体用法?Java IDocumentExtension3.DEFAULT_PARTITIONING怎么用?Java IDocumentExtension3.DEFAULT_PARTITIONING使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.eclipse.jface.text.IDocumentExtension3
的用法示例。
在下文中一共展示了IDocumentExtension3.DEFAULT_PARTITIONING属性的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: configureSourceViewerDecorationSupport
@Override
protected void configureSourceViewerDecorationSupport(
SourceViewerDecorationSupport support) {
super.configureSourceViewerDecorationSupport(support);
char[] matchChars = { '<', '>' }; // which brackets to match
ICharacterPairMatcher matcher = new DefaultCharacterPairMatcher(
matchChars, IDocumentExtension3.DEFAULT_PARTITIONING);
support.setCharacterPairMatcher(matcher);
support.setMatchingCharacterPainterPreferenceKeys(
EDITOR_MATCHING_BRACKETS, EDITOR_MATCHING_BRACKETS_COLOR);
// Enable bracket highlighting in the preference store
IPreferenceStore store = getPreferenceStore();
store.setDefault(EDITOR_MATCHING_BRACKETS, true);
store.setDefault(EDITOR_MATCHING_BRACKETS_COLOR, "128,128,128");
}
示例2: configureSourceViewerDecorationSupport
@Override
protected void configureSourceViewerDecorationSupport(SourceViewerDecorationSupport support) {
super.configureSourceViewerDecorationSupport(support);
char[] matchChars = { '(', ')', '[', ']', '{', '}' }; // which brackets
// to match
matcher = new DefaultCharacterPairMatcher(matchChars, IDocumentExtension3.DEFAULT_PARTITIONING);
support.setCharacterPairMatcher(matcher);
support.setMatchingCharacterPainterPreferenceKeys(EDITOR_MATCHING_BRACKETS, EDITOR_MATCHING_BRACKETS_COLOR);
// Enable bracket highlighting in the preference store
IPreferenceStore store = getPreferenceStore();
store.setDefault(EDITOR_MATCHING_BRACKETS, true);
store.setDefault(EDITOR_MATCHING_BRACKETS_COLOR, "128,128,128");
}
示例3: configureSourceViewerDecorationSupport
@Override
protected void configureSourceViewerDecorationSupport (@Nullable SourceViewerDecorationSupport support) {
super.configureSourceViewerDecorationSupport(support);
IPreferenceStore store = getPreferenceStore();
char[] matchChars = {'(', ')', '[', ']', '{', '}'}; //which brackets to match
ICharacterPairMatcher matcher = new DefaultCharacterPairMatcher(matchChars ,
IDocumentExtension3.DEFAULT_PARTITIONING);
support.setCharacterPairMatcher(matcher);
support.setMatchingCharacterPainterPreferenceKeys(RustConstants.EDITOR_MATCHING_BRACKETS,RustConstants. EDITOR_MATCHING_BRACKETS_COLOR);
//Enable bracket highlighting in the preference store
store.setDefault(RustConstants.EDITOR_MATCHING_BRACKETS, true);
store.setDefault(RustConstants.EDITOR_MATCHING_BRACKETS_COLOR, RustConstants.DEFAULT_MATCHING_BRACKETS_COLOR);
}
示例4: BatchBracketsSupport
public BatchBracketsSupport() {
super(BRACKETS, IDocumentExtension3.DEFAULT_PARTITIONING, true);
}
示例5: BashBracketsSupport
public BashBracketsSupport() {
super(BRACKETS, IDocumentExtension3.DEFAULT_PARTITIONING, true);
}
示例6: GroovyBracketsSupport
public GroovyBracketsSupport() {
super(BRACKETS, IDocumentExtension3.DEFAULT_PARTITIONING, true);
}
示例7: getDocumentPartitioning
@Override
protected String getDocumentPartitioning()
{
return IDocumentExtension3.DEFAULT_PARTITIONING;
}
示例8: LangAutoEditStrategy
protected LangAutoEditStrategy(ILastKeyInfoProvider lastKeyInfoProvider,
ILangAutoEditsPreferencesAccess preferences) {
this(lastKeyInfoProvider, IDocumentExtension3.DEFAULT_PARTITIONING, IDocument.DEFAULT_CONTENT_TYPE,
preferences);
}
示例9: ContentAssistant
/**
* Creates a new code assistant. The code assistant is not automatically activated, overlays the completion
* proposals with context information list if necessary, and shows the context information above the location at
* which it was activated. If auto activation will be enabled, without further configuration steps, this code
* assistant is activated after a 500 milli-seconds delay. It uses the default partitioning.
*/
public ContentAssistant()
{
fPartitioning = IDocumentExtension3.DEFAULT_PARTITIONING;
}
示例10: CharacterPairMatcher
/**
* Creates a new character pair matcher that matches characters within the default partitioning. The specified list
* of characters must have the form <blockquote>{ <i>start</i>, <i>end</i>, <i>start</i>, <i>end</i>, ...,
* <i>start</i>, <i>end</i> }</blockquote> For instance:
*
* <pre>
* char[] chars = new char[] { '(', ')', '{', '}', '[', ']' };
* new SimpleCharacterPairMatcher(chars);
* </pre>
*
* @param chars
* a list of characters
*/
public CharacterPairMatcher(char[] chars)
{
this(chars, IDocumentExtension3.DEFAULT_PARTITIONING);
}
示例11: HackDefaultCharacterPairMatcher
/**
* Creates a new character pair matcher that matches characters
* within the default partitioning. The specified list of
* characters must have the form
* <blockquote>{ <i>start</i>, <i>end</i>, <i>start</i>, <i>end</i>, ..., <i>start</i>, <i>end</i> }</blockquote>
* For instance:
* <pre>
* char[] chars = new char[] {'(', ')', '{', '}', '[', ']'};
* new SimpleCharacterPairMatcher(chars);
* </pre>
*
* @param chars a list of characters
*/
public HackDefaultCharacterPairMatcher(char[] chars) {
this(chars, IDocumentExtension3.DEFAULT_PARTITIONING);
}