Maximize/Restore events [message #854613] |
Tue, 24 April 2012 01:11  |
Eclipse User |
|
|
|
Hi,
I am new to Eclipse RCP development. I have 2 problems.
1. I have an application, which has 4 views that are displayed in 4 quadrants. I need to provide maximized view for all the 4 views. I don't know how to capture the maximize/restore event for views, for the shell the event listeners are working fine. But i need to capture the events for views. Please let me know a way to capture the event.
2. I set closeable="false" for all the views, but it is providing close(X) for all the views.
Thanks
Srilatha
|
|
|
|
|
Re: Maximize/Restore events [message #864863 is a reply to message #857197] |
Mon, 30 April 2012 01:45  |
Eclipse User |
|
|
|
Hi Simon,
Yes i am using the perspectiveChanged() for tracking events. I am using GridLayout for my views, my problem was when i maximize the view content is not getting maximized. So for setting the heightHint and widthHint of GridData, i need to capture the maximize and minimize events. If i maximize/minimize the view, the perspectiveChanged is fired and the no. of viewReferences vary accordingly. So with the use of no. of ViewReferences and one toggling flag i am able to capture those events. But for showing the content maximized or restored, i am hiding and showing views. This is weird, but i have no other go. If you could suggest me some other kind of solution, it would be helpful for me.
Thanks in Advance
Srilatha.
[Updated on: Mon, 30 April 2012 01:46] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04733 seconds