Bug 189939 - [PresentationAPI] Ability to set minimum height/width restriction on IViewPart (or IWorkbenchPart?)
Summary: [PresentationAPI] Ability to set minimum height/width restriction on IViewPar...
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2.2   Edit
Hardware: PC Windows Vista
: P5 enhancement with 1 vote (vote)
Target Milestone: 4.4 M7   Edit
Assignee: Paul Webster CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2007-05-30 10:50 EDT by Lyndsey Padget CLA
Modified: 2014-05-02 04:48 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lyndsey Padget CLA 2007-05-30 10:50:49 EDT
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.
Comment 1 Missing name Mising name CLA 2009-09-09 09:38:03 EDT
what about this suggestion ?
Is there a solution ?
Comment 2 Paul Webster CLA 2009-09-09 09:51:47 EDT
I believe a view can now implement ISizeProvider to provide hints that can effect re-sizing.

PW
Comment 3 Lars Vogel CLA 2014-05-02 04:48:14 EDT
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.