当前位置: 首页>>代码示例>>Java>>正文


Java IDocumentExtension3.DEFAULT_PARTITIONING属性代码示例

本文整理汇总了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");

}
 
开发者ID:ncleclipse,项目名称:ncl30-eclipse,代码行数:20,代码来源:NCLEditor.java

示例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");
}
 
开发者ID:Nodeclipse,项目名称:GradleEditor,代码行数:15,代码来源:GradleEditor.java

示例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);
}
 
开发者ID:peq,项目名称:rustyeclipse,代码行数:13,代码来源:RustEditor.java

示例4: BatchBracketsSupport

public BatchBracketsSupport() {
	super(BRACKETS, IDocumentExtension3.DEFAULT_PARTITIONING, true);
}
 
开发者ID:de-jcup,项目名称:eclipse-batch-editor,代码行数:3,代码来源:BatchBracketsSupport.java

示例5: BashBracketsSupport

public BashBracketsSupport() {
	super(BRACKETS, IDocumentExtension3.DEFAULT_PARTITIONING, true);
}
 
开发者ID:de-jcup,项目名称:eclipse-bash-editor,代码行数:3,代码来源:BashBracketsSupport.java

示例6: GroovyBracketsSupport

public GroovyBracketsSupport() {
	super(BRACKETS, IDocumentExtension3.DEFAULT_PARTITIONING, true);
}
 
开发者ID:de-jcup,项目名称:egradle,代码行数:3,代码来源:GroovyBracketsSupport.java

示例7: getDocumentPartitioning

@Override
protected String getDocumentPartitioning()
{
	return IDocumentExtension3.DEFAULT_PARTITIONING;
}
 
开发者ID:apicloudcom,项目名称:APICloud-Studio,代码行数:5,代码来源:CommonMergeViewer.java

示例8: LangAutoEditStrategy

protected LangAutoEditStrategy(ILastKeyInfoProvider lastKeyInfoProvider,
	ILangAutoEditsPreferencesAccess preferences) {
	this(lastKeyInfoProvider, IDocumentExtension3.DEFAULT_PARTITIONING, IDocument.DEFAULT_CONTENT_TYPE,
		preferences);
}
 
开发者ID:GoClipse,项目名称:goclipse,代码行数:5,代码来源:LangAutoEditStrategy.java

示例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;
}
 
开发者ID:apicloudcom,项目名称:APICloud-Studio,代码行数:10,代码来源:ContentAssistant.java

示例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);
}
 
开发者ID:apicloudcom,项目名称:APICloud-Studio,代码行数:17,代码来源:CharacterPairMatcher.java

示例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);
}
 
开发者ID:MulgaSoft,项目名称:e4macs,代码行数:16,代码来源:HackDefaultCharacterPairMatcher.java


注:本文中的org.eclipse.jface.text.IDocumentExtension3.DEFAULT_PARTITIONING属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。