Best way to extend eclipse Java project wizard? -


i writing eclipse plug-in , need provide functionality let user create custom project basically plain old java project jar dependency , sample class in source folder.

it should have custom nature (this tag project / change icon stands out visually).

the user must able choose @ least name of project , location, , preferably java execution environment because must 8+.

my understanding way create custom org.eclipse.ui.newwizards extension point. have considered following solutions :

  1. extending org.eclipse.jdt.internal.ui.wizards.javaprojectwizard, add jar, class , custom nature @ creation. problem class "not api" , should not extending it.
  2. create basic wizard project name , location (and maybe java environment combo box), and add java project settings myself (java nature, source , output locations...). preferred option, i'm wondering how simple ? if add java nature, guess associated preferences project appear automatically...?
  3. project doesn't have special behavior, example wizard might do.

what best solution in opinion?

as mention should not use javaprojectwizard internal class , may changed without notices.

you can use org.eclipse.ui.wizards.newresource.basicnewprojectresourcewizard create project. not let change wizard pages can override performfinish additional operations need.

adding java nature project indeed make various java preference pages available.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -