This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 381585 - Part switcher in PartStack shows only name of i18n bundle
Summary: Part switcher in PartStack shows only name of i18n bundle
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.2.2   Edit
Assignee: Paul Webster CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-04 11:02 EDT by Michael Jaeger CLA
Modified: 2013-04-04 11:36 EDT (History)
5 users (show)

See Also:


Attachments
Screenshot showing the problem (13.25 KB, image/png)
2012-06-04 11:07 EDT, Michael Jaeger CLA
no flags Details
Sample Project for reproducing the problem (19.39 KB, application/x-zip-compressed)
2012-11-02 08:51 EDT, Michael Jaeger CLA
no flags Details
Test project - all tabs are visible (76.73 KB, image/jpeg)
2012-11-06 09:08 EST, Michael Jaeger CLA
no flags Details
Test project - one tab visible, rest via selector (attention: titles are not shown) (18.07 KB, image/jpeg)
2012-11-06 09:13 EST, Michael Jaeger CLA
no flags Details
Example project for Eclipse 4.2.1 (19.73 KB, application/x-zip-compressed)
2012-11-06 09:15 EST, Michael Jaeger CLA
no flags Details
View from windows 7 (40.46 KB, image/png)
2012-11-06 13:15 EST, Wim Jongman CLA
no flags Details
Fix (44.20 KB, image/png)
2012-11-06 14:49 EST, Wim Jongman CLA
no flags Details
Patch (1.67 KB, patch)
2012-11-06 14:50 EST, Wim Jongman CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Jaeger CLA 2012-06-04 11:02:57 EDT
Build Identifier: I20120524-2100

I am developing an application with a part stack which holds multiple parts.  Each part's label is externalized, e.g.:

%partDetails.label

where the file bundle.properties holds:

partDetails.label = Detailed Information

Now everything is displayed fine when the PartStack shows all Parts in tabs.  When I define via CSS that only one Part is shown, a problem occurs:

single: true;

The problem is, that now the dropdown-list for the different parts does not show the names of the parts available (e.g. "Detailed Information"), but the name of the properties (e.g. "%partDetails.label").

Reproducible: Always
Comment 1 Michael Jaeger CLA 2012-06-04 11:07:08 EDT
Created attachment 216774 [details]
Screenshot showing the problem
Comment 2 Michael Jaeger CLA 2012-06-15 11:46:23 EDT
This bug persists in current E4.2RC4 build.
Comment 3 Michael Jaeger CLA 2012-06-18 02:37:53 EDT
BTW, this works fine with Eclipse 4.1.
Comment 4 Brian de Alwis CLA 2012-10-26 10:55:29 EDT
I'm unable to reproduce with 4.2.1.  Could you please verify with the latest maintenance build or attach a sample project?
Comment 5 Michael Jaeger CLA 2012-11-02 08:51:41 EDT
Created attachment 223101 [details]
Sample Project for reproducing the problem

The problem still persists in 4.2.1.  I tried to create a sample project, however I was not able to get this to run on 4.2.1.  I created it with 4.1M6 using the wizard for e4 applciations (which I could not find in 4.2.1 using the RAP/RCP version).  Then I tried to run it on 4.2.1 -- without success.  I attached the project directories.  Probably you will get this to run or point me to the caus of the problem.
Comment 6 Michael Jaeger CLA 2012-11-02 08:51:56 EDT
The problem still persists in 4.2.1.  I tried to create a sample project, however I was not able to get this to run on 4.2.1.  I created it with 4.1M6 using the wizard for e4 applciations (which I could not find in 4.2.1 using the RAP/RCP version).  Then I tried to run it on 4.2.1 -- without success.  I attached the project directories.  Probably you will get this to run or point me to the caus of the problem.
Comment 7 Michael Jaeger CLA 2012-11-06 09:08:56 EST
Created attachment 223238 [details]
Test project - all tabs are visible
Comment 8 Michael Jaeger CLA 2012-11-06 09:13:46 EST
Created attachment 223239 [details]
Test project - one tab visible, rest via selector (attention: titles are not shown)
Comment 9 Michael Jaeger CLA 2012-11-06 09:15:09 EST
Created attachment 223240 [details]
Example project for Eclipse 4.2.1
Comment 10 Michael Jaeger CLA 2012-11-06 09:18:25 EST
I added an improved project which runs on e4 4.2.1 which shows the mentioned problem (attachment "Example project for Eclipse 4.2.1").  When you display the application window in regular width, all tab titles are shown properly (Screenshot: "Test project - all tabs are visible").  However, if you reduce the width of the application window until a selector is shown for the tabs, then only the i18n-variable names are shown (not the translations as with the regular width) (Screenshot: "Test project - one tab visible, rest via selector (attention: titles are not shown)").  I hope, this helps.
Comment 11 Wim Jongman CLA 2012-11-06 12:57:39 EST
(In reply to comment #10)

This behaves differently on windows. If I try your test project I cannot reduce the size enough to start seeing a selector.
Comment 12 Wim Jongman CLA 2012-11-06 13:14:45 EST
(In reply to comment #11)

Correction. For some reason, a chance with a possibility close to zero, I already had a project named test and that got in the way. I added -clearpersistedstate to the arguments and now I see the same. Attaching a screen shot from windows.
Comment 13 Wim Jongman CLA 2012-11-06 13:15:48 EST
Created attachment 223264 [details]
View from windows 7
Comment 14 Wim Jongman CLA 2012-11-06 13:48:32 EST
Found it. Preparing a patch.
Comment 15 Wim Jongman CLA 2012-11-06 14:49:32 EST
Created attachment 223269 [details]
Fix

Found it (in a split package)
Comment 16 Wim Jongman CLA 2012-11-06 14:50:39 EST
Created attachment 223270 [details]
Patch

Patch
Comment 18 Michael Jaeger CLA 2012-11-07 06:32:30 EST
Thanks to all of you guys!
Comment 19 Paul Webster CLA 2013-01-17 13:46:21 EST
In M20130116-1800

PW