IFile または IPath から IDocument を取得することは可能ですか? 私はこれを試しました:
IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(hFilePath);
TextFileDocumentProvider provider = new TextFileDocumentProvider();
IDocument doc = provider.getDocument(file);
しかし、getDocument は null を返すようです。
ありがとう