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


Java IDocument.setDocumentPartitioner方法代码示例

本文整理汇总了Java中org.eclipse.jface.text.IDocument.setDocumentPartitioner方法的典型用法代码示例。如果您正苦于以下问题:Java IDocument.setDocumentPartitioner方法的具体用法?Java IDocument.setDocumentPartitioner怎么用?Java IDocument.setDocumentPartitioner使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.jface.text.IDocument的用法示例。


在下文中一共展示了IDocument.setDocumentPartitioner方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getDocument

import org.eclipse.jface.text.IDocument; //导入方法依赖的package包/类
@Override
public IDocument getDocument(Object element) {
	IDocument document = super.getDocument(element);
	if (document == null) {
		return null;
	}
	IDocumentPartitioner formerPartitioner = document.getDocumentPartitioner();
	if (formerPartitioner instanceof JenkinsPartitioner) {
		return document;
	}
	/* installation necessary */
	JenkinsPartitioner partitioner = JenkinsPartionerFactory.create();
	partitioner.connect(document,true);
	document.setDocumentPartitioner(partitioner);
	
	return document;
}
 
开发者ID:de-jcup,项目名称:eclipse-jenkins-editor,代码行数:18,代码来源:JenkinsTextFileDocumentProvider.java

示例2: getDocument

import org.eclipse.jface.text.IDocument; //导入方法依赖的package包/类
@Override
public IDocument getDocument(Object element) {
	IDocument document = super.getDocument(element);
	if (document == null) {
		return null;
	}
	IDocumentPartitioner formerPartitioner = document.getDocumentPartitioner();
	if (formerPartitioner instanceof BatchPartitioner) {
		return document;
	}
	/* installation necessary */
	IDocumentPartitioner partitioner = BatchPartionerFactory.create();
	partitioner.connect(document);
	document.setDocumentPartitioner(partitioner);
	
	return document;
}
 
开发者ID:de-jcup,项目名称:eclipse-batch-editor,代码行数:18,代码来源:BatchTextFileDocumentProvider.java

示例3: getDocument

import org.eclipse.jface.text.IDocument; //导入方法依赖的package包/类
@Override
public IDocument getDocument(Object element) {
	IDocument document = super.getDocument(element);
	if (document == null) {
		return null;
	}
	IDocumentPartitioner formerPartitioner = document.getDocumentPartitioner();
	if (formerPartitioner instanceof BashPartitioner) {
		return document;
	}
	/* installation necessary */
	IDocumentPartitioner partitioner = BashPartionerFactory.create();
	partitioner.connect(document);
	document.setDocumentPartitioner(partitioner);
	
	return document;
}
 
开发者ID:de-jcup,项目名称:eclipse-bash-editor,代码行数:18,代码来源:BashTextFileDocumentProvider.java

示例4: createDocument

import org.eclipse.jface.text.IDocument; //导入方法依赖的package包/类
@Override
protected IDocument createDocument(Object element) throws CoreException {
	IDocument document = super.createDocument(element);
	if (document != null) {
		/* installation necessary */
		JenkinsPartitioner partitioner = JenkinsPartionerFactory.create();

		partitioner.connect(document,true);
		document.setDocumentPartitioner(partitioner);
	}
	return document;
}
 
开发者ID:de-jcup,项目名称:eclipse-jenkins-editor,代码行数:13,代码来源:JenkinsFileDocumentProvider.java

示例5: createDocument

import org.eclipse.jface.text.IDocument; //导入方法依赖的package包/类
@Override
protected IDocument createDocument(Object element) throws CoreException {
	IDocument document = super.createDocument(element);
	if (document != null) {
		/* installation necessary */
		IDocumentPartitioner partitioner = BatchPartionerFactory.create();

		partitioner.connect(document);
		document.setDocumentPartitioner(partitioner);
	}
	return document;
}
 
开发者ID:de-jcup,项目名称:eclipse-batch-editor,代码行数:13,代码来源:BatchFileDocumentProvider.java

示例6: createDocument

import org.eclipse.jface.text.IDocument; //导入方法依赖的package包/类
protected IDocument createDocument(Object element) throws CoreException {
	IDocument document = super.createDocument(element);
	if (document != null) {
		IDocumentPartitioner partitioner =
			new FastPartitioner(
				new XMLPartitionScanner(),
				new String[] {
					XMLPartitionScanner.XML_TAG,
					XMLPartitionScanner.XML_COMMENT });
		partitioner.connect(document);
		document.setDocumentPartitioner(partitioner);
	}
	return document;
}
 
开发者ID:convertigo,项目名称:convertigo-eclipse,代码行数:15,代码来源:XMLDocumentProvider.java

示例7: createDocument

import org.eclipse.jface.text.IDocument; //导入方法依赖的package包/类
@Override
protected IDocument createDocument(Object element) throws CoreException {
	IDocument document = super.createDocument(element);
	if (document != null) {
		/* installation necessary */
		IDocumentPartitioner partitioner = BashPartionerFactory.create();

		partitioner.connect(document);
		document.setDocumentPartitioner(partitioner);
	}
	return document;
}
 
开发者ID:de-jcup,项目名称:eclipse-bash-editor,代码行数:13,代码来源:BashFileDocumentProvider.java

示例8: createDocument

import org.eclipse.jface.text.IDocument; //导入方法依赖的package包/类
@Override
protected IDocument createDocument(final Object element) throws CoreException {
  final IDocument document = super.createDocument(element);
  if (document != null) {
    final IDocumentPartitioner partitioner = new FastPartitioner(
        new RelationModelPartitionScanner(), RelationModelPartitionScanner.PARTITION_TYPES);
    partitioner.connect(document);
    document.setDocumentPartitioner(partitioner);
  }
  return document;
}
 
开发者ID:ModelWriter,项目名称:Tarski,代码行数:12,代码来源:RelationModelDocumentProvider.java

示例9: createDocument

import org.eclipse.jface.text.IDocument; //导入方法依赖的package包/类
@Override
protected IDocument createDocument(final Object element) throws CoreException {
  final IDocument document = super.createDocument(element);
  if (document != null) {
    final IDocumentPartitioner partitioner = new FastPartitioner(new ValidationPartitionScanner(),
        ValidationPartitionScanner.PARTITION_TYPES);
    partitioner.connect(document);
    document.setDocumentPartitioner(partitioner);
  }
  return document;
}
 
开发者ID:ModelWriter,项目名称:Tarski,代码行数:12,代码来源:ValidationDocumentProvider.java

示例10: createDocument

import org.eclipse.jface.text.IDocument; //导入方法依赖的package包/类
@Override
protected IDocument createDocument(final Object element) throws CoreException {
	final IDocument document = super.createDocument(element);
	if (document != null) {
		final IDocumentPartitioner partitioner = new FastPartitioner(new RelationModelPartitionScanner(),
				RelationModelPartitionScanner.PARTITION_TYPES);
		partitioner.connect(document);
		document.setDocumentPartitioner(partitioner);
	}
	return document;
}
 
开发者ID:ModelWriter,项目名称:Tarski,代码行数:12,代码来源:RelationModelDocumentProvider.java

示例11: createDocument

import org.eclipse.jface.text.IDocument; //导入方法依赖的package包/类
@Override
protected IDocument createDocument(final Object element) throws CoreException {
  final IDocument document = super.createDocument(element);
  if (document != null) {
    final IDocumentPartitioner partitioner = new FastPartitioner(new MetaModelPartitionScanner(),
        MetaModelPartitionScanner.PARTITION_TYPES);
    partitioner.connect(document);
    document.setDocumentPartitioner(partitioner);
  }
  return document;
}
 
开发者ID:ModelWriter,项目名称:Tarski,代码行数:12,代码来源:MetaModelDocumentProvider.java


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