Bug 179213 - New Plugin Project Wizard should allow Execution Environment selection
Summary: New Plugin Project Wizard should allow Execution Environment selection
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.4 M3   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday, contributed, noteworthy
Depends on:
Blocks: 150225
  Show dependency tree
 
Reported: 2007-03-25 20:12 EDT by Willian Mitsuda CLA
Modified: 2011-06-20 13:42 EDT (History)
2 users (show)

See Also:
caniszczyk: review+


Attachments
Patch (9.95 KB, patch)
2007-09-20 16:15 EDT, Nobody - feel free to take it CLA
no flags Details | Diff
mylyn/context/zip (2.09 KB, application/octet-stream)
2007-09-23 10:56 EDT, Chris Aniszczyk CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Willian Mitsuda CLA 2007-03-25 20:12:28 EDT
As part of bug#134257, it is now possible to select a Execution Environment when creating a Java Project.

The Plugin Project wizard should allow the same. BTW, it is curious that actually it is not possible to even select a JRE compliance on project creation.
Comment 1 Wassim Melhem CLA 2007-03-25 20:46:58 EDT
when we first introduced the notion of EE, PDE did have it in the project wizard.  People did not like it very much there, particularly since a plug-in may declare more than one EE, and the decision to do all that upfront was unnecessary.

Unlike a Java project, the PDE plug-in manifest editor dedicates an entire section to the EE.  

Why do you feel the need to make all those EE decisions upfront?
Comment 2 Willian Mitsuda CLA 2007-03-25 21:33:56 EDT
(In reply to comment #1)
> when we first introduced the notion of EE, PDE did have it in the project
> wizard.  People did not like it very much there, particularly since a plug-in
> may declare more than one EE, and the decision to do all that upfront was
> unnecessary.
> 

At least for me, I always had need to specify only 1 EE, usually Java 5.0 for my own bundles, and Java 1.4 or 1.3 when packaging third party jars.

> Unlike a Java project, the PDE plug-in manifest editor dedicates an entire
> section to the EE.  

OK, nothing wrong with it, although I think it could be more integrated with JDT itself, i.e., I don't need to remember to click the hidden "update classpath" link after changing EE. But I'll consider opening another bug for this ;-)

> 
> Why do you feel the need to make all those EE decisions upfront?
> 

Well, for the same reason you can specify plugins ID, version, name, etc. on wizard's second page, i.e., I believe that in most cases people want to specify these information on project creation and forget about it. The same can apply for EE, when usually it is decided only once and possibly rarely changed.
Comment 3 Chris Aniszczyk CLA 2007-09-12 12:44:14 EDT
It's all yours Gary.

For inspiration, look at the product editor's Launching section. We'd want to do something very similar. I'd imagine something like this:

Execution Environment: [J2SE-1.4] [Environments...]
<Label>                <combo>    <button>

If we wanted to get really fancy, we could go for a multi select combo box but I don't think we have an example of those anywhere. Although I swear I saw one of those somewhere in Eclipse, maybe it was in a dream.
Comment 4 Chris Aniszczyk CLA 2007-09-12 12:58:21 EDT
Ah, if you create a new Java Project, the working sets selection has that tricky combo box illusion of it being a multi-select ;) I wouldn't worry about that though.
Comment 5 Chris Aniszczyk CLA 2007-09-17 11:46:23 EDT
Hey Gary, were you able to make any headway on this? I'm looking to get this and bug 150225 in for M2 (which closes this week).
Comment 6 Nobody - feel free to take it CLA 2007-09-20 16:15:56 EDT
Created attachment 78890 [details]
Patch
Comment 7 Chris Aniszczyk CLA 2007-09-23 10:56:14 EDT
looks great Gary, thanks!
Comment 8 Chris Aniszczyk CLA 2007-09-23 10:56:22 EDT
Created attachment 79045 [details]
mylyn/context/zip
Comment 9 Chris Aniszczyk CLA 2007-09-23 10:57:35 EDT
thanks again!
Comment 10 Willian Mitsuda CLA 2007-10-17 13:06:42 EDT
I didn't take a look yet, but anyway, thanks Gary!