當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。