本文整理匯總了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;
}