|
|
Re: Maximize/Restore events [message #857197 is a reply to message #855936] |
Thu, 26 April 2012 10:31 |
|
Hi srilatha yatham,
I had a similar issue a few days ago : www.eclipse.org/forums/index.php/t/333941/
Which event do you actually capture?
Is it:
public void perspectiveChanged(IWorkbenchPage page,
IPerspectiveDescriptor perspective,
IWorkbenchPartReference partRef, String changeId);
of the IPerspectiveListener4?
I used your hint with the perspective listener, but unfortunately it fires the event before the perspective is maximized and therefore I have to wait for a second and then can restore another view than the maximized one.
Does anyone know an event which is fired after a IWorkbenchpart is maximized?
Regards,
Simon
|
|
|
Re: Maximize/Restore events [message #864863 is a reply to message #857197] |
Mon, 30 April 2012 05:45 |
srilatha yatham Messages: 4 Registered: April 2012 |
Junior Member |
|
|
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 05:46] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04584 seconds