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 で既存のプロジェクトのプロジェクト参照をプログラムで設定するにはどうすればよいですか? 新しいプロジェクトを作成するときの方法は知っていますが、プロジェクトが作成されると、参照を設定する方法がありません。
メソッドを使用してプロジェクトのオブジェクトIProjectDescriptionから を取得し、メソッドを呼び出します。方法もあります。IProjectgetDescription()setReferencedProjects(IProject [])getReferencedProjects()
IProjectDescription
IProject
getDescription()
setReferencedProjects(IProject [])
getReferencedProjects()
変更後setDescriptionは、再度電話をかける必要があります。IProject
setDescription