// 下階層用テンプレート
#topicpath
----
//ここにコンテンツを記述します。

*** org.eclipse.ui.editors.text.FileDocumentProvider の実装クラス [#f2f4b9e4]

-IDocument createDocument(Object element) throws CoreException を Override

この中で、IDocumentPartitionerの実装クラスを指定する
 protected IDocument createDocument(Object element) throws CoreException {
   logger.debug("createDocument(Object) - start");
   IDocument document = super.createDocument(element);
   if (document != null) {
     IDocumentPartitioner partitioner = new FastPartitioner(
         new HobePartitionScanner(),
         new String[] { HogePartitionScanner.COMMENT , HogePartitionScanner.Text});
     partitioner.connect(document);
     document.setDocumentPartitioner(partitioner);
   }

   logger.debug("createDocument(Object) - end");
   return document;
 }






----
この記事は
#vote(おもしろかった,そうでもない)

#comment
#topicpath


SIZE(10){現在のアクセス:&counter;}

トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS