Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これは単純かもしれませんが、Eclipse RCP アプリのカスタム プロジェクトの下にプログラムでファイルを作成するにはどうすればよいでしょうか?
さまざまな方法を試しましたが、たとえば、新しいファイル出力ストリームを介してファイルを作成しただけでは、ファイルは Eclipse リソースとして認識されません。
プロジェクトで IResource としてファイルを作成する簡単な方法はありますか?
例:
IFile file = project.getFile(new Path("path/of/your/file")); IFolder folder = project.getFolder(new Path("path/of/your/folder"));
その後、それらを作成できます。
file.create(InputStream stream, boolean force, IProgressMonitor monitor);