E
eser
Hi!
I developed an eclipse plugin who creates projects of "perl nature"
with a particular path: I must modify the perl build path but I don't
know what I have to do... My code now is:
IWorkspace work=ResourcesPlugin.getWorkspace();
IWorkspaceRoot workRoot=ResourcesPlugin.getWorkspace().getRoot();
IProject newProject=workRoot.getProject(name);
IProjectDescription
newProjectDescription=work.newProjectDescription(name);
String[] natureId=new String[1];
natureId[0]="org.epic.perleditor.perlnature"; //PERL NATURE
newProjectDescription.setNatureIds(natureId);
...............
//Here I think is the place where I have to modify the perl path of
the project the plugin is goig to create
.........................
newProject.create(newProjectDescription,null); //creazione progetto
Can you give me an idea or a little piece of source code to resolve
this problem???
I browse a lot in the web but I didn't find any idea to continue...
Thanks very much!
Daniele.
I developed an eclipse plugin who creates projects of "perl nature"
with a particular path: I must modify the perl build path but I don't
know what I have to do... My code now is:
IWorkspace work=ResourcesPlugin.getWorkspace();
IWorkspaceRoot workRoot=ResourcesPlugin.getWorkspace().getRoot();
IProject newProject=workRoot.getProject(name);
IProjectDescription
newProjectDescription=work.newProjectDescription(name);
String[] natureId=new String[1];
natureId[0]="org.epic.perleditor.perlnature"; //PERL NATURE
newProjectDescription.setNatureIds(natureId);
...............
//Here I think is the place where I have to modify the perl path of
the project the plugin is goig to create
.........................
newProject.create(newProjectDescription,null); //creazione progetto
Can you give me an idea or a little piece of source code to resolve
this problem???
I browse a lot in the web but I didn't find any idea to continue...
Thanks very much!
Daniele.