Bug 410865 - Make extending Java project wizards straightforward
Summary: Make extending Java project wizards straightforward
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.3   Edit
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: api, helpwanted
Depends on:
Blocks:
 
Reported: 2013-06-14 18:23 EDT by Frederick Ross CLA
Modified: 2013-06-21 03:05 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frederick Ross CLA 2013-06-14 18:23:32 EDT
At the moment if you want to create a new Java project wizard, it's an exercise in reverse engineering and using internal APIs. The wizards and underlying infrastructure should be rewritten so it's easy to reuse pages, add more pages, and add behavior before, during, and after the project creation process.
Comment 1 Jay Arthanareeswaran CLA 2013-06-16 23:45:05 EDT
Moving to JDT/UI
Comment 2 Dani Megert CLA 2013-06-17 03:40:06 EDT
There's 'org.eclipse.jdt.ui.wizards.NewJavaProjectWizardPageOne' and 'org.eclipse.jdt.ui.wizards.NewJavaProjectWizardPageTwo'.  Please provide more details, if those don't work for you.
Comment 3 Frederick Ross CLA 2013-06-20 17:00:51 EDT
Okay, here's some specific things that should be done:

Move the logic of the wizard out of being executed by page two and into the wizard itself.

Make the logic understandable, with clear places to insert new behavior. At the very least document the current mess, since it is unreadable. Better would be to create a set of methods on the Java wizard that new wizards can override to insert behavior before or after particular points.

Document the whole process of building such a wizard.

Expose the necessary pieces as public in bundles so developers don't have to add annotations to ignore access warnings to their plug-ins.

That would constitute a good start.