Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 128927

Summary: [FastView] Problem occurs when "weclome" view be put into "Fast View" bar
Product: [Eclipse Project] Platform Reporter: James Gan <ganzhi>
Component: UIAssignee: Eric Moffatt <emoffatt>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipse, fuse, Mike_Wilson, pwebster
Version: 3.2Flags: eclipse: review+
pwebster: review+
Target Milestone: 3.3 RC2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Partial fix for this defect
none
Cleaner patch using the new 'getViewReference' method in Perspective none

Description James Gan CLA 2006-02-21 22:01:42 EST
Whenever I put the "Welcome" view into "Fast View" bar, Eclipse will report an error information "Could not restore workbench layout" when it restarts. And "Welcome" view will automatically popuped from "Fast View" after restarting.
Comment 1 Eric Moffatt CLA 2006-02-27 10:24:44 EST
Over to me...;-).
Comment 2 Mike Wilson CLA 2007-05-08 11:30:37 EDT
Does this still happen? Please mark as fixed or update milestone appropriately.
Comment 3 Eric Moffatt CLA 2007-05-08 13:55:17 EDT
Yes, this is still an issue (thanks for the pickup. I'll mark this for RC1 and take a look (but, IMO, this is not a 'stop ship' defect since the workflow is most uncommon).
Comment 4 Eric Moffatt CLA 2007-05-08 14:24:23 EDT
BTW, just checked and thos behavior has been there since 3.1...
Comment 5 Eric Moffatt CLA 2007-05-10 10:57:13 EDT
Created attachment 66688 [details]
Partial fix for this defect


This patch will stop the 'could not create...' failure dialog from coming up and correctly instantiates the intro view as either a FastView or in its minimized stack (which had the same issue).

However, the Welcome shows up as the active view on a restart (caused by 'createView' assuming that the newly created view should always be activated.
We could claim that this is a feature...;-).
Comment 6 Eric Moffatt CLA 2007-05-14 14:21:44 EDT
*** Bug 63385 has been marked as a duplicate of this bug. ***
Comment 7 Eric Moffatt CLA 2007-05-18 09:43:14 EDT
Moving to RC2...
Comment 8 Eric Moffatt CLA 2007-05-23 10:34:45 EDT
Created attachment 68344 [details]
Cleaner patch using the new 'getViewReference' method in Perspective


You'll need the version of Perspective from HEAD to apply this patch successfully (since I reference a new method).
Comment 9 Eric Moffatt CLA 2007-05-23 10:49:36 EDT
Note that this patch still has the Intro view coming up (as a fast view) on a restart...this is the result of the WorkbenchIntroManager#createIntro method calling 'workbenchPage.showView(IIntroConstants.INTRO_VIEW_ID)' as part of the restore handling if the Intro was 'visible' on shutdown.

I've tried the 'obvious' fix of testing to see if the view is a fast view before calling showview but that ended up with the wrong icon and an empty intro view.

I think we should accept the patch (if acceptable...;-) and open a 3.4 defect against the remaining oddity.
Comment 10 Eric Moffatt CLA 2007-05-23 10:51:03 EDT
Kim, could you take a look at this one (any hints on how not to get the FV to open)?
Comment 11 Eric Moffatt CLA 2007-05-23 10:51:41 EDT
Paul, eyes #2 again?
Comment 12 Kim Horne CLA 2007-05-23 11:57:26 EDT
I'm happy with the lack of exception for 3.3.  I'm not sure how to go the full 9 yards on this one...
Comment 13 Eric Moffatt CLA 2007-05-23 12:54:02 EDT
Committed in >20070523.
Comment 14 Eric Moffatt CLA 2007-05-24 11:55:52 EDT
Verified in I20070524-0010.