Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352728 - [design] IFolderLayout#addView adds views in backward order
Summary: [design] IFolderLayout#addView adds views in backward order
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: Workbench (show other bugs)
Version: 1.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.5 M1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-21 07:51 EDT by Beate M CLA
Modified: 2011-08-12 06:20 EDT (History)
1 user (show)

See Also:


Attachments
correct order (RAP 1.3) (2.01 KB, image/gif)
2011-07-21 07:54 EDT, Beate M CLA
no flags Details
wrong order (RAP 1.4) (1.98 KB, image/gif)
2011-07-21 07:54 EDT, Beate M CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.