Bug 303427 - Can't specify a source folder in the Package Wizard
Summary: Can't specify a source folder in the Package Wizard
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: IDE4EDU (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-21 02:37 EST by Brenda Sadoway CLA
Modified: 2014-01-09 15:39 EST (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 Brenda Sadoway CLA 2010-02-21 02:37:52 EST
It isn't possible to specify a source folder/location in the Package Wizard, which leads to a problem specifically when no source folder is selected prior to opening the wizard: "Source folder name is empty".  The user has no option to select a source folder, so they must exit the wizard, click on a location and open it again.
Comment 1 Wayne Beaton CLA 2010-03-03 08:17:06 EST
This is a result of our reuse of the package wizard from JDT. I've been thinking a lot (probably too much) about this and am of the mind that the package wizard isn't all that necessary. We can specify a new package in the class wizard. Isn't that enough. In fact, I can't remember the last time I used the JDT package wizard...
Comment 2 Brenda Sadoway CLA 2010-03-13 15:17:25 EST
Hmm I see.  That may be true, but from the point of view of someone learning to program in Java, I'm not sure that the logical sequence of steps would be the same.  If I were just being introduced to packages and how they relate to the rest of the project hierarchically, I would be inclined to make my project, put my package inside it, and then put a class in the package.  It wouldn't make as much sense to use the Java Class Wizard to make a new package at the same time.  

On top of that, it isn't immediately obvious that in the Class Wizard, typing in your own package name will create a new package.  The dropdown menu format implies that you must select an already existing one from the list.  Perhaps it wouldn't take much to discover that you can type in the package field, but I don't think we should rely on the user knowing to do this, particularly when they are new to using Eclipse and programming in Java.
Comment 3 Wayne Beaton CLA 2010-03-16 11:38:37 EDT
So what's the solution? Should we put some hover help on the CCombobox?
Comment 4 Brenda Sadoway CLA 2010-03-17 14:08:42 EDT
I'm still of the mind that if we're going to allow new packages to be created, we should keep the package wizard.  If we put a tooltip on the CCombobox, I would like to see it done in addition to keeping the package wizard.  If they're making a class, they can find out there's a faster way to make a package.  But until then, the ability to make a package should be made clear right from the start, next to the New Project and New Class options.

That's just my opinion anyway.  Does anyone else have thoughts?
Comment 5 Dwight Deugo CLA 2010-03-17 14:15:20 EDT
I agree with you Brenda. I think it should be dead obvious, so  next to the New Project and New Class options is a good idea.
Comment 6 Wayne Beaton CLA 2010-03-17 15:03:52 EDT
If we're going to keep the new package wizard, then it's going to have to be rebuilt along the same lines as what we did with the new class and new project wizards. I believe that this problem is caused by hacking the JDT wizard.
Comment 7 Brenda Sadoway CLA 2010-03-30 23:19:54 EDT
I believe this bug can be closed because Bug 306651 deals with the issue of a package constructor, which in turn fixes the problem stated in this bug.