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

Bug 352728

Summary: [design] IFolderLayout#addView adds views in backward order
Product: [RT] RAP Reporter: Beate M <beate.muellerleile>
Component: WorkbenchAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: holger.staudacher
Version: 1.4   
Target Milestone: 1.5 M1   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
correct order (RAP 1.3)
none
wrong order (RAP 1.4) none

Description Beate M CLA 2011-07-21 07:51:34 EDT
Build Identifier: RAP 1.4

The following code in the perspective in RAP 1.3 added the views in correct order:

createFolder.addView(View1.ID);
createFolder.addView(View2.ID);
createFolder.addView(View3.ID);

After switching to RAP 1.4 (without changing the perspective class) they are ordered backwards.

It happens only in the business or fancy design example.
When starting with the rap standard design the view order is correct.

Reproducible: Always

Steps to Reproduce:
1. use business or fancy design example
2. create a perspective with more than one view in one folder
3. views are ordered backwards
Comment 1 Beate M CLA 2011-07-21 07:54:14 EDT
Created attachment 200080 [details]
correct order (RAP 1.3)
Comment 2 Beate M CLA 2011-07-21 07:54:52 EDT
Created attachment 200081 [details]
wrong order (RAP 1.4)
Comment 3 Ivan Furnadjiev CLA 2011-08-12 06:20:17 EDT
The problem was in ViewStackPresentation#moveToTabBarEnd which moved the button to beginning of the tab bar if lastInvisibleButton is null. Changes are in CVS HEAD.