Bug 33347 - [Linked Resources] Advanced button comes before options added by subclasses
Summary: [Linked Resources] Advanced button comes before options added by subclasses
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: 2.1.1   Edit
Assignee: Knut Radloff CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-26 15:24 EST by Nick Edgar CLA
Modified: 2003-06-04 13:08 EDT (History)
1 user (show)

See Also:


Attachments
CreateLinkedResourceGroup.java (13.69 KB, text/plain)
2003-05-05 15:59 EDT, Knut Radloff CLA
no flags Details
WizardNewFileCreationPage.java (16.84 KB, text/plain)
2003-05-05 16:00 EDT, Knut Radloff CLA
no flags Details
WizardNewFolderMainPage.java (15.46 KB, text/plain)
2003-05-05 16:00 EDT, Knut Radloff CLA
no flags Details
screenshot of GEF example wizard (51.75 KB, image/pjpeg)
2003-05-09 18:28 EDT, Knut Radloff CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Edgar CLA 2003-02-26 15:24:31 EST
build I20030221

- Run the Readme example's new Readme File wizard
- the "Advanced >>" button appears before additional options added by this 
subclass (e.g. "Automatic sample section generation", "Open file for editing 
when done")
- click Advanced
- the linking UI appearas after the additional options

The Advanced button and linking UI should appear after all other options.
Comment 1 Nick Edgar CLA 2003-03-11 15:43:07 EST
Defer
Comment 2 Knut Radloff CLA 2003-04-28 16:28:58 EDT
A bad side effect is that when I collapse the Advanced section it is not always 
hidden.
For example in WSAD when I click Advanced in the New GEF Example wizard and 
then click again to hide the expanded Advanced section parts of the Advanced 
section are still visible. 
Also, the first page of the GEF example wizard is initially sized too tall. It 
appears that the (invisible) Advanced section is included in the page 
measurement. See also bug 37028.

Should consider a fix for the Advanced section cheese for 2.1.1
Comment 3 Knut Radloff CLA 2003-04-30 11:53:37 EDT
I think it may be easier to make sure the advanced section expands below the 
advanced button and leave the group below the file name field.
We have no control over the page creation process. We create our page widgets 
in createControl which is part of IDialogPage. Subclasses do the same and this 
is the only place for us to do it. There is no later place where we could 
create the advanced group.
From a user point of view it may actually be better to make sure the advanced 
section always is below the file name field. Otherwise the dialog flow changes 
based on what widgets subclasses insert between the file name field and the 
advanced section.
Comment 4 Nick Edgar CLA 2003-05-02 12:33:30 EDT
The behaviour described in comment #2 does sound bogus.
Please investigate the fix proposed in comment #3 for 2.1.1 so we can evaluate 
the risk.
Comment 5 Knut Radloff CLA 2003-05-05 15:59:44 EDT
Created attachment 4787 [details]
CreateLinkedResourceGroup.java

Patch maintains settings when widgets are disposed and recreated
Comment 6 Knut Radloff CLA 2003-05-05 16:00:06 EDT
Created attachment 4788 [details]
WizardNewFileCreationPage.java
Comment 7 Knut Radloff CLA 2003-05-05 16:00:24 EDT
Created attachment 4789 [details]
WizardNewFolderMainPage.java
Comment 8 Knut Radloff CLA 2003-05-05 16:08:23 EDT
The attached three files implement the proposed fix. The linked resource 
composite now shares a parent with the Advanced button. The linked resource 
composite is disposed when the advanced section is collapsed and recreated 
whenever the Advanced section is expanded. This fixes the cheese problem I 
observed in the WSAD GEF example creation wizard.
The fix is fairly low risk. I believe we should release it for 2.1.1. Nick?
Comment 9 Knut Radloff CLA 2003-05-05 17:42:14 EDT
Something weird is going on with Bugzilla attachments.
The attached files duplicate the class. You will have to edit them when you 
import them. 
I notified the webmaster.
Comment 10 Lynne Kues CLA 2003-05-05 17:48:10 EDT
Agree with Knut that the risk is low.  The proposed changes are localized and 
minor.
Comment 11 Nick Edgar CLA 2003-05-09 11:18:10 EDT
Tod, could you please review the changes as well?
Comment 12 Tod Creasey CLA 2003-05-09 11:41:55 EDT
This still creates the added content underneath the advanced button though so 
is this really any better than what we have right now? I still get the readme 
stuff under the advanced button.

Having said that I think the only solution is to make the control for these 
pages the area above the Advanced button and I am concerned about a subtle 
implications this might have.

I don't know that this is worth putting into 2.1.1 as it is not much of an 
improvement.
Comment 13 Knut Radloff CLA 2003-05-09 18:25:20 EDT
The real problem is that the advanced section widgets are separated from the 
button when a subclass ads to the page. Like I wrote in comment #3, I would 
argue that the Advanced section should always appear at the same place, 
regardless of what subclasses add to the wizard page.
Also, if we don't fix this WSAD and possibly other apps will have cheese. See 
the attached screen shot. The time span until 3.0 is too long to wait with a 
fix.
Comment 14 Knut Radloff CLA 2003-05-09 18:28:20 EDT
Created attachment 4841 [details]
screenshot of GEF example wizard

Note that the Advanced section is collapsed, yet part of it is visible.
The fix addresses this by actually destroying the advanced widgets instead of
just hiding them and putting them in one composite together with the advanced
button.
Comment 15 Knut Radloff CLA 2003-05-21 14:17:53 EDT
Made minor layout changes to the attached files and released in HEAD and 
2_1_maintenance.
Comment 16 Knut Radloff CLA 2003-06-04 13:08:15 EDT
Verified fixed in 2_1_maintenance build 20030602