Community
Participate
Working Groups
N20050606-0010 Load the org.eclipse.ui.tests plugin and open the UI Test Standalone View Perspective 2. Notice that several of the views have a toolbar The toolbar is supposed to be hidden for standalone views with no title.
Created attachment 22589 [details] Screenshot of the bogus toolbars
If the view has toolbar contributions, they should be shown, just as with regular views. What was the behaviour in 3.0?
Although this may just be a miscommunication, I recall this being the intended behavior in the original design discussions. I'm starting to feel like the intended behavior for notitle views has become a moving target. Could we please spell it out somewhere?
Really, I'm not making this up. showTitle=false just means no titlebar, and no system buttons for close etc. If there are ISV toolbar or menu contributions, they should be shown. The intent is to expose the full view functionality, except for the titlebar.
I don't think the toolbar or view menu were ever a concern for the original driving use case (the preview pane in LWP). Matt?
In that case, where are they supposed to go and what should they look like?
I'd vote for something as close to the regular layout as possible E.g. in the default presentation, toolbar at top, right aligned, with view menu to the right of that, like it would flow if they were forced to wrap for a regular view.
Re comment #5, yes this is expected behavior and not an issue for the LWP use case. I agree with Nick's suggestiong in comment #7.
I'd like to consider this one for RC3.
there do not seem to be any users of this (Stand-alone + toolbar), deferring to 3.2
I just want to say that i'm trying to use this feature until i found this bug report, so please don't defer it any longer
Changing title to reflect the actual problem. Toolbars are shown (correctly) but are not positioned correctly.
The doc (and comments here) seem to say that toolbar and menu contributions will always be shown. Using Build id: N20060212-0010 on Mac OS X 10.4.4, I don't see view menus and toolbars with addStandaloneView() unless I set showTitle=true. I could not find the UI Test Standalone View Perspective 2 (looks like it was deleted?), so I tried a basic test. Create a new plug-in project using the template "RCP application with a view". It starts with no menus or toolbars, and uses addStandaloneView(showTitle=false). At the bottom of View.createPartControl(), I added an Action: getViewSite().getActionBars().getToolBarManager().add(new Action() { public void run() { System.out.println("action activated."); } }) ; No toolbar shows up. Then I changed showTitle to true -- and the action shows up on the toolbar, along with what looks like a title bar (see attachment). Given the documentation for IPageLayout and the comments here, I expected the toolbar to always be there, whether showTitle was true or false.
Created attachment 34896 [details] toolbar after setting showTitle=true
Is this still a problem in 3.3? PW
I performed the test described in comment 13 using 3.3 M2 (I20060922-0010) on Mac OS X 10.4.7 and Java 1.5.0. The behavior was the same as that described in comment 13. The action does not appear unless showTitle is set to true.
problem exist PW
I can confirm that the problem still exists as of Eclipse 3.4 M2
Boris and I both agree that if a view has declared menu and/or toolbar items that they should be available regardless of the state of the 'showTitle' flag. What this would amount to is to use the same layout we get when the title (tab) area is too small to contain the TB and menu chevron (i.e. they show up to the right of the 'message' if there's enough space and below it otherwise. Paul, can you confirm that this type of view still -uses- a CTabFolder?
Created attachment 107339 [details] image of toolbar in standalone project explorer I just wanted to confirm that this is still a problem. The attached screenshot shows the toolbar rendered on top of the view's content. In this case I'm running eclipse 3.4 and the view is the Common Navigator's project explorer ("org.eclipse.ui.navigator.ProjectExplorer"). Are there plans to fix this? In my use case the ideal solution would be to add a #showToolbar (the same as #showTitlebar) that would let me turn off the view's toolbar. However, I understand that is unlikely to be the accepted solution. The minimum solution for me is to at least render the toolbar in the proper location. If no one is planning to work on this then I could try to find time to look into it.
*** Bug 239359 has been marked as a duplicate of this bug. ***
I can confirm this bug exist in 3.4.0 Build id: I20080617-2000
This problem still exists in 3.5
Created attachment 179960 [details] Screenshot depicting the problem in question. My 'Progress' view's toolbar ends up being way over in the top left hand side by the 'Package Explorer'. <extension point="org.eclipse.ui.perspectiveExtensions"> <perspectiveExtension targetID="org.eclipse.jdt.ui.JavaPerspective"> <view standalone="true" showTitle="false" id="org.eclipse.ui.views.ProgressView" ratio="0.5" relationship="right" relative="org.eclipse.ui.views.ProblemView"> </view> </perspectiveExtension> </extension>
*** Bug 328009 has been marked as a duplicate of this bug. ***
*** Bug 337502 has been marked as a duplicate of this bug. ***
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.