Automatically adding JRE System Library in new IJavaProjects [message #156763] |
Sun, 25 April 2004 07:58 |
Eclipse User |
|
|
|
Originally posted by: stoyle0905.hotmail.com
Hi.
I have a plugin which generates new IJavaProjects for output files. I would
very much like to add the "JRE System Library" classpath container (defined
by JDT) to my new project, but I am having serious problems finding out how
to do so.
I have managed to import the jars from the JRE, but they turn up in the
workbenk as individual jars and not as a single container entry as I would
like to. This is only a "cosmetic" problem since, it obviously works. I
would just very much like the newly generated IJavaProject to look exactly
like it would if it were created by hand through the JavaProjectWizard
(org.eclipse.jdt.internal.ui.wizards.JavaProjectWizard).
I've tried almost everything I can think of with JavaCore, but nothing gives
the results I would like. Shouldn't there be a convenience method for
getting these libraries which obviously is important in JDT?
Anyways. Help would is very much appreciated.
Kind regards
Alf Kristian St
|
|
|
Powered by
FUDForum. Page generated in 0.02516 seconds