How to load IBuildModel using only API? [message #606474] |
Tue, 17 August 2010 10:12  |
Eclipse User |
|
|
|
I want to modify the build.properties content of a bundle project using the IBuildModel API.
Currently, what works for me is like this:
WorkspaceBuildModel buildModel = new WorkspaceBuildModel(PDEProject.getBuildProperties(fProject)) ;
buildModel.load();
// do model changes here
buildModel.save();
But I am not happy with the above because this approach uses internal classes like WorkspaceBuildModel and PDEProject.
Alternatively, I tried to retrieve reference to IBuildModel using the following snippet:
IBuildModel buildModel = PluginRegistry.findModel(fProject).getBuildModel();
But using this way I always get null for buildModel.
What am I doing wrong?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06683 seconds