| Summary: | [Perspectives] IPageLayout layout.setFixed(true) does not fix the perspective | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Lars Vogel <Lars.Vogel> | ||||
| Component: | UI | Assignee: | Platform UI Triaged <platform-ui-triaged> | ||||
| Status: | CLOSED FIXED | QA Contact: | Paul Webster <pwebster> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | dany.eudes, jarek.przygodzki, Lars.Vogel, remy.suen, sharamac, tomasz.galazka | ||||
| Version: | 3.6.2 | ||||||
| Target Milestone: | 4.3 M6 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Different solution available with Eclipse 4, closing as fixed. What is that mysterious "different solution"? I have that same bug. In Eclipse 4 just don't include the org.eclipse.e4.ui.workbench.addons.swt plug-in in your product. But when I don't add org.eclipse.e4.ui.workbench.addons.swt in my application in place of min/standart/max buttons in views and editors I have gets some visual artefacts - blank fields. I don't needs min/max buttons but visual artefacts look bad. @Tomasz, I suggest you asked that in the Eclipse e4 forums and post also a screenshot. I have not seen this, but if that is the case I suspect this is a new bug. Ok. Thanks a lot for help. To early to celebrate. I remove addons.swt from my application but this don't fix this problem. Any other dependencies? @Tomasz removing this plug-in does not allow you to DnD and minimize and maximize your parts. See http://www.vogella.com/articles/EclipseRCP/article.html#modeladdons What else are you looking for? I mean this solution dosn't resolve fixed layout problem. Not sure what you mean but Eclipse 3.x API is not further development and Eclipse 4 RCP has addressed this issue. Now I understand what you mean. I'm not looking for block DnD, minimize and maximize parts. I want to create views of fixed size, so user could't resize this views. Also I want block width of views so it wouldn't resizing during resize of main application windows. When I develop my application under order Eclipse version its work when perspective was in fixed state, after migration to Eclipse Juno - this feature disappear. Probably I must open new topic. (In reply to comment #11) > Now I understand what you mean. > I'm not looking for block DnD, minimize and maximize parts. I want to > create views of fixed size, so user could't resize this views. Also I want > block width of views so it wouldn't resizing during resize of main > application windows. When I develop my application under order Eclipse > version its work when perspective was in fixed state, after migration to > Eclipse Juno - this feature disappear. > Probably I must open new topic. @Tomasz Galazka, I have a similar case to what you have explained in comment 11. Can you please let me know how were you able to fix the functionality? Did you need to raise separate defects in here? Created attachment 232941 [details]
Empty view above Actual View
On trying it with Kepler, I saw that my view was fixed but a re-sizeable empty view was coming just above my view. Itat view still has min/max button. Is this right? or am I doing something else which is wrong?
I was only able too block resize of views by user using: http://www.eclipse.org/forums/index.php/t/452652/ And I dont't have problem like you in comment 13. (In reply to comment #14) > I was only able too block resize of views by user using: > http://www.eclipse.org/forums/index.php/t/452652/ > And I dont't have problem like you in comment 13. Hi Tomasz Galazka, Since I am a newbie, I am not able to follow the suggestions on the link provided. Can you provide an example as to how I need to go about doing this. I would like to see by doing this am I able to remove the current issue I am facing as well. Shankar explain again what problem you want to fix. Thanks Tomasz Galazka. Using your reference I was able to hide the view/resize buttons of the cool-bar but my application's resize/maximize buttons still is enabled for the end-user to use. Earlier using setShellStyle with SWT.MIN, but that isn't working now. I was hoping this fix would take care of that as well. But unfortunately, that isn't getting resolved with this fix. I was hoping for some directions for this. "resize/maximize buttons still is enabled" - I have no solution for that. Share if you find anything. I had raised a separate question in stack over flow at http://stackoverflow.com/questions/17364420/eclipse-rcp-applicationworkbenchwindowadvisor-setshellstyleswt-min-not-wor. Does this mean that it is a issue or whether it is not meant to be used this way? It seems an issue. Here is the link. https://bugs.eclipse.org/bugs/show_bug.cgi?id=379396 |
According to the Javadoc of IPageLayout.setFixed(true): In a fixed layout, layout parts cannot be moved or zoomed, and the initial set of views cannot be closed. This does currently not work. To test: create a new RCP Applikation based on the "RCP Application with a view" example. Delete the perspetiveExtension extension point and cotribute the view via Perspective.java to the following. public void createInitialLayout(IPageLayout layout) { layout.addView("com.example.view.view", IPageLayout.LEFT, 0.95f, layout.getEditorArea()); layout.setEditorAreaVisible(true); layout.setFixed(true); } It seems that the position layout.setFixed(true) in createInitialLayout is important. The following works public void createInitialLayout(IPageLayout layout) { layout.setFixed(true); layout.addView("com.example.view.view", IPageLayout.LEFT, 0.95f, layout.getEditorArea()); layout.setEditorAreaVisible(true); } I suggest to either adjust the implementation or to mention this in the Javadoc.