Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » creating a plugin project progamatically(creating a plugin project progamatically using Wizard)
creating a plugin project progamatically [message #660416] Fri, 18 March 2011 11:09 Go to next message
BK  is currently offline BK
Messages: 3
Registered: March 2011
Junior Member
Hi
We have an eclipse plugin project where allow the user to perform modelling with our application. As part of the modelling we generate some xml files specific to our application.
We need to save these xmls in the application repository and later allow business users to connect to the application and re-create the eclipse plug project dynamically with the application xmls.

We do not want to save the project workspce in application repository or some source control.

1) Could you please provide some pointers on how to create an empty eclipse project in the background ?

We extend org.eclipse.jface.wizard.Wizard when we create the project in first place but how do we create this dynamically in the background ?

Thanks.
BK

Re: creating a plugin project progamatically [message #660717 is a reply to message #660416] Mon, 21 March 2011 11:30 Go to previous message
BK  is currently offline BK
Messages: 3
Registered: March 2011
Junior Member
Got it working with the below code snippet.

IWorkspace workspace = ResourcesPlugin.getWorkspace();
IProject project = workspace.getRoot().getProject(pwDesignerProj.getPwProjectNa me());
project.create(null);
project.open(null);
IProjectDescription desc = project.getDescription();
desc.setNatureIds(new String[] {" org.eclipse.stp.bpmn.validation.BatchValidationBuildAbleNatu re "} );
project.setDescription(desc, new NullProgressMonitor());

Now the question is on how to set values in the org.eclipse.core.resources.prefs file in the .settings directory.

Any pointers would be appreciated.

Thanks
BK
Previous Topic:How to add actions to the text hover popup in a TextEditor
Next Topic:Navigator's Item Background Color
Goto Forum:
  


Current Time: Sun Sep 21 08:08:58 GMT 2014

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

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