Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » How to load IBuildModel using only API?
How to load IBuildModel using only API? [message #606474] Tue, 17 August 2010 14:12 Go to next message
Kaloyan Raev is currently offline Kaloyan RaevFriend
Messages: 201
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
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?
Re: How to load IBuildModel using only API? [message #606476 is a reply to message #606474] Tue, 17 August 2010 15:30 Go to previous messageGo to next message
Curtis Windatt is currently offline Curtis WindattFriend
Messages: 166
Registered: July 2009
Senior Member
The build model wasn't properly designed as API. We just (3.7 M2) changed the api so that a build model can be obtained.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=308623
Re: How to load IBuildModel using only API? [message #606477 is a reply to message #606474] Tue, 17 August 2010 16:05 Go to previous message
Kaloyan Raev is currently offline Kaloyan RaevFriend
Messages: 201
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Thanks, Curtis!

Nice to see this has already been addressed.
Previous Topic:How to load IBuildModel using only API?
Next Topic:Fwd: Create workbench using feature-based product configuration
Goto Forum:
  


Current Time: Thu Apr 18 16:18:11 GMT 2024

Powered by FUDForum. Page generated in 0.02017 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top