|
|
Re: How to create a project in another Workspace programatically? [message #666258 is a reply to message #666140] |
Tue, 19 April 2011 16:08 |
Kivanc Muslu Messages: 153 Registered: November 2010 |
Senior Member |
|
|
Hi Kleig,
Sorry, but I have no chance so far. It seems that at the moment Eclipse can handle one workspace during a plug-in's life cycle. To jump to another workspace, it seems that you have to close and re-open the eclipse (i..e, run all plug-ins from the beginning again).
Maybe your question is possible though. You just need to have a generic code that checks the location of the workspace at the beginning of the plug-in, if it matches your workspace, then start importing the projects you want. If not, then close Eclipse, change its workspace location and reopen it (I am assuming these are possible since Eclipse itself does it, not that I know a way for doing it ).
You might want to explore those parts a little, maybe create another thread such as 'how to close Eclipse and open it with a new workspace programmatically' or something like that, so that people can help you (I am not sure if this thread is being watched or not).
Hope you can solve your problem, if you do please let me know (it can give me some insight).
Thanks,
|
|
|
Powered by
FUDForum. Page generated in 0.03217 seconds