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 :
- extending
org.eclipse.jdt.internal.ui.wizards.javaprojectwizard
, add jar, class , custom nature @ creation. problem class "not api" , should not extending it. - 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...?
- 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
Post a Comment