ワークスペース

ワークスペースの取得
ResourcesPlugin.getWorkspace();

プロジェクトの作成 / ファイルの作成
IProject projct = ResourcesPlugin.getWorkspace().getRoot().getProject("test");
try {
 if (!projct.exists()) {
  projct.create(null);
 }
 
 IFile file = projct.getFile("test.text");
 if (file.exists()) {
  file.create(new ByteArrayInputStream("test".getBytes()), true,
    null);
 }
} catch (CoreException e1) {
 e1.printStackTrace();
}








最終更新:2009年07月29日 10:19
ツールボックス

下から選んでください:

新しいページを作成する
ヘルプ / FAQ もご覧ください。