Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352765 - Allow user to input a "base package" in new project wizard
Summary: Allow user to input a "base package" in new project wizard
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Huang Ji Yong CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-21 10:31 EDT by Tony Chen CLA
Modified: 2017-02-23 14:17 EST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tony Chen CLA 2011-07-21 10:31:12 EDT
When create a new EGL project, user can specified a base package name in the wizard: org.mycompany.myfirstapp

Wizard will create below source directory structure after project creation:
   EGL Source
     org.mycompany.myfirstapp.server // configured for Java gen
     org.mycompany.myfirstapp.client // configured for JavaScript gen
     org.mycompany.myfirstapp.common // configured for both Java and JavaScript

Because advanced users might consider this useless hand-holding, we should either make this easy to bypass.
Comment 1 Will Smythe CLA 2011-07-25 13:02:19 EDT
I think this is another example where we want to "get this right" in 0.7, and not change it up again in 1.0. As I said in the longer version of this discussion (via email), I think being able to develop a complete app in a single project is very powerful - and also very logical. You remove a lot of the complexity for new developers if developers don't immediately have to worry about configuring build paths, etc. The way we did "RUI" projects in CE was great because it did this. I understand we can't do exactly what we did in CE since we need to port from the RBD 8 model, but as stated in my note, I think configuring a project with Java and JavaScript build descriptors (or whatever the term now is) out-of-the-box should be our plan for 0.7. This somewhat requires that we do something like is being suggested here with "default", suggested packages. This is what Google App Engine does (since they support client/server development in the same project).
Comment 2 Will Smythe CLA 2011-08-11 07:39:42 EDT
See Bug 354426. Theresa and I discussed, and agreed the Base Package field belongs on the first page of the wizard, so that it is available regardless of the project type selected. For "Web client xx" projects, we should create the packages described below (client, server, common). For Basic projects, we should decide what default package(s) to create if any. We may just want to create whatever base package the user specifies. So, if the developer specifies "org.mycompany.order" and selects the "Basic" project template, a package "org.mycompany.order" would get created.

Other comments:
1) We should remember the value on Finish and automatically populate the field the next time the developer starts the new project wizard.

2) The base package field should get validated (as the user types) like any EGL Package field (see EGL New Part wizard, for example).
Comment 3 Will Smythe CLA 2011-08-11 07:46:23 EDT
Bug 354426 (project templates / basic project) depends on this, so this bug should also be targeted for i12.
Comment 4 Theresa Ramsey CLA 2011-08-11 15:32:49 EDT
I assume the base package field would be empty and not required.  We can provide a hint in the field (that disappears when the user clicks the field) or as text (example: org.mycompany.myapp)
Comment 5 Huang Ji Yong CLA 2011-08-19 05:18:08 EDT
The patch is included in bug 354426
Comment 6 Tony Chen CLA 2011-10-28 03:01:44 EDT
Verified