Community
Participate
Working Groups
In some use cases, it makes sense to allow the user to resize an IViewPart only to a certain degree. Unfortunately, the current options are to either make an IViewPart fixed or not fixed. So I would like to propose the ability to set a minimum height and width restriction on an IViewPart. A maximum height and width restriction may also make sense. One possible implementation could be firing a resize event which can be intercepted and cancelled. Resize events are sometimes thrown in the workbench now, but they happen after the resize has already occurred, which makes it impossible to cancel the event. Another possibility could be to set the minimum size value on the IViewPart programmatically, or via the view's extension point. Perhaps minimum size values could be set as percentages of the overall workbench, or in absolute pixels. Also, a way to detect when an IViewPart is moved would be helpful. By "moved", I mean separated from or reunited with its peer parts in the page. This would also include when the part is docked in a different location within the workbench, relative to its peers. When a part is docked in a certain location, the layout or content of the part may need to change.
what about this suggestion ? Is there a solution ?
I believe a view can now implement ISizeProvider to provide hints that can effect re-sizing. PW
The PresentationAPI has been deprecated with the Eclipse 4.x release and it has been replaced with the CSS engine. I therefore close this bugs as WONTFIX. In case your bug report is still valid for the Eclipse 4.4 release, please open a new bug report for it.