「ワークスペース」の編集履歴(バックアップ)一覧はこちら
「ワークスペース」(2009/07/29 (水) 10:19:22) の最新版変更点
追加された行は緑色になります。
削除された行は赤色になります。
ワークスペースの取得
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();
}
----