[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: new java project's classpath defaults

The methods IJavaProject.getClasspath and IJavaProject.setClasspath allow
you to set the classpath of your java project directly.

The classpath is described with IClasspathEntry's. You can create these
with
IJavaProject.newSourceEntry, IJavaProject.newLibraryEntry and
IJavaProject.newProjectEntry 

If you are using the NewJavaProjectWizardPage in your new project wizard,
you can set the class path shown as default with
NewJavaProjectWizardPage.setDefaultClassPath.
Remark that it is possible to create IClassPath entries also from projects
that are not yet created. Extend 'setVisible' to initialize the defaults
using a JavaProject created from the project on the main page.

If there is more you need to do, please let me know

Martin

Ilya Rzoenberg wrote:

> What API should I use to change new java project's classpath defaults
> programmatically.