Skip to main content



      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 10:12 Go to next message
Eclipse UserFriend
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 11:30 Go to previous messageGo to next message
Eclipse UserFriend
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 12:05 Go to previous message
Eclipse UserFriend
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 Jul 10 06:18:22 EDT 2025

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

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

Back to the top