Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Notification for part maximization/minimization
Notification for part maximization/minimization [message #488836] Wed, 30 September 2009 12:58 Go to next message
Philip Mayer is currently offline Philip MayerFriend
Messages: 17
Registered: July 2009
Junior Member
Dear all,

I've been trying to be notified by the platform when a view is minimized
or maximized. I have failed to do this and searching through the group
suggests that it is impossible.

Is this really the case, i.e. there is no way to get this information?
So far I've tried all kinds of listeners and also replacing the global
MAXIMIZE action which did not work.

If there is any way to do this, please let me know. :)

Philip
Re: Notification for part maximization/minimization [message #488851 is a reply to message #488836] Wed, 30 September 2009 13:49 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

There's no way to do this ATM. You might be able to guess from part visible/hidden events, but I don't think so.

On an activate or a hidden event, you can ask the IWorkbenchPage for the state of the active part. If it is maximized then its state should return IWorkbenchPage.STATE_MAXIMIZED

Alternatively you an open an enhancement request to have the perspective events include a MAXIMIZE event. https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=UI

PW


Re: Notification for part maximization/minimization [message #488860 is a reply to message #488851] Wed, 30 September 2009 14:09 Go to previous message
Philip Mayer is currently offline Philip MayerFriend
Messages: 17
Registered: July 2009
Junior Member
Hi Paul,

Paul Webster wrote:
> There's no way to do this ATM. You might be able to guess from part
> visible/hidden events, but I don't think so.

Okay. Yes, I also think this is in general not the way to go.

> Alternatively you an open an enhancement request to have the perspective
> events include a MAXIMIZE event.
> https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=UI

I was also thinking about asking for a RESIZE event to be fired in the
case of maximizing or restoring a part, because after all that is what
(additionally) happens to the part contents. What do you think?

Philip
Previous Topic:How to install a plugin in the dropins folder?
Next Topic:Catch unhandled event loop exception
Goto Forum:
  


Current Time: Wed Apr 24 19:40:26 GMT 2024

Powered by FUDForum. Page generated in 0.02836 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top