Bug 306651 - Package Constructor Class
Summary: Package Constructor Class
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:
: 299342 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-21 18:03 EDT by Brenda Sadoway CLA
Modified: 2014-01-09 15:39 EST (History)
0 users

See Also:


Attachments
Package Constructor, Wizard and Tests (30.85 KB, text/plain)
2010-03-21 18:03 EDT, Brenda Sadoway CLA
no flags Details
mylyn/context/zip (4.51 KB, application/octet-stream)
2010-03-29 20:43 EDT, Wayne Beaton CLA
no flags Details
Brenda's patch with license headers added (6.03 KB, application/octet-stream)
2011-06-06 20:08 EDT, Wayne Beaton CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brenda Sadoway CLA 2010-03-21 18:03:20 EDT
Created attachment 162621 [details]
Package Constructor, Wizard and Tests

As was discussed in Bug 299342 ("New Java Package" option should automatically create a Java Project) and Bug 303427 (Can't specify a source folder in the Package Wizard), we should have a constructor for packages, similar to those for Java projects and Java classes.

This patch includes the package constructor and some basic tests for it; as well, it has the reworked package wizard.  There are still things to be improved (as with the project and class constructors), but it's a start.
Comment 1 Wayne Beaton CLA 2010-03-29 20:43:25 EDT
I like it.

There is a user interface guideline that states that wizards should not open in an error state. I see an opportunity to do something cool here...

We can open the wizard with "mypackage" as the default package if no other packages exist. But if other packages do exist, we can assume that the new one will be some variation of what's there. For example, if there are two packages "org.eclipse.stuff" and "org.eclipse.junk", then we can probably assume that the next package will be named something that starts with "org.eclipse.". Perhaps we could suggest something like "org.eclipse.newpackage". We could even highlight the "newpackage" part by default... Just some thoughts. After we apply this patch, perhaps we can open a new bug to address this opportunity.

Since the patch is >250LOC, I have to open a CQ to allow the IP team to have a look at it before we can apply it. I will open the CQ presently.
Comment 2 Wayne Beaton CLA 2010-03-29 20:43:28 EDT
Created attachment 163350 [details]
mylyn/context/zip
Comment 3 Wayne Beaton CLA 2010-03-29 20:46:27 EDT
Brenda, can you make a statement on this bug to indicate that you wrote 100% of the code contained in the patch? The IP Team is going to ask...
Comment 4 Brenda Sadoway CLA 2010-03-30 23:10:59 EDT
I wrote 100% of the code in this patch.
Comment 5 Wayne Beaton CLA 2011-06-06 20:08:46 EDT
Created attachment 197471 [details]
Brenda's patch with license headers added

I've added license headers in anticipation of providing these files to the IP team for their review.
Comment 6 Wayne Beaton CLA 2011-06-06 20:09:00 EDT
Are you still around Brenda? Sorry for the delay in getting to this patch, but I would like to accept it.

Can you please explicitly assert the following?

1.  He/She confirms they authored 100% of the content they are submitting
2.  He/She confirms they have the rights to contribute the content to Eclipse
3.  He/She confirms the content is being submitted under the project license in this case EPL

You've already done #1, I just need a word from you indicating that #2 and #3 are also true.
Comment 7 Wayne Beaton CLA 2011-06-06 20:12:19 EDT
*** Bug 299342 has been marked as a duplicate of this bug. ***
Comment 8 Wayne Beaton CLA 2011-06-06 20:14:45 EDT
Note that when we apply this patch, we can (and should) remove NewLitePackageWizardPage.
Comment 9 Brenda Sadoway CLA 2011-06-06 20:32:59 EDT
(In reply to comment #6)
> Are you still around Brenda? Sorry for the delay in getting to this patch, but
> I would like to accept it.
> 
> Can you please explicitly assert the following?
> 
> 1.  He/She confirms they authored 100% of the content they are submitting
> 2.  He/She confirms they have the rights to contribute the content to Eclipse
> 3.  He/She confirms the content is being submitted under the project license in
> this case EPL
> 
> You've already done #1, I just need a word from you indicating that #2 and #3
> are also true.

No problem.

2. I confirm that I have the rights to contribute the content to Eclipse.
3. I confirm that the content is being submitted under the project license.

-Brenda
Comment 10 Wayne Beaton CLA 2011-06-06 22:42:30 EDT
Thanks Brenda.

I have created CQ 5269 to request IP review (sorry, only accessible by committers).

https://dev.eclipse.org/ipzilla/show_bug.cgi?id=5269