本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}