Skip to main content

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 Friend
Messages: 3
Registered: March 2011
Junior Member
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 ?


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 Friend
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());
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.

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: Fri Jun 18 04:11:43 GMT 2021

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

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

Back to the top