[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [buckminster-dev] component binding
|
Hi Knut,
Knut Wannheden wrote:
When Buckminster materializes and binds my components it creates them
as new Eclipse projects in my Eclipse workspace. I don't have a
.project file for my component so Buckminster also goes ahead and
creates that. Although it doesn't add any natures to that .project
file. How would I get it to do that? I'd like to add the natures which
I've registered my cspec builder with.
Buckminster uses the following code to create an IProjectDescriptor:
(lines 178 to 180 in DefaultBinderService.java)
// Apparently this is not an Eclipse project (yet)
//
description =
workspace.newProjectDescription(projectBinding.getName());
some lines down you'll find the code:
if(!project.exists())
project.create(description, new SubProgressMonitor(monitor,
IProgressMonitor.UNKNOWN));
If you want logic that add natures (or make other changes to the
descriptor), it must do it in between those two places. Use the method
setNatureIds(String[]) on the descriptor.
Regards,
Thomas Hallgren