Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Enabling Handlers based on Perspective
Enabling Handlers based on Perspective [message #328338] Thu, 22 May 2008 01:43 Go to next message
Eclipse UserFriend
Originally posted by: da_jainer.yahoo.com

Since we cannot use "activePerspectiveId" or something similar in 3.3, do
we have a way of associating command handlers' "activeWhen" or
"enabledWhen" with a particular perspective.
I know we can do this with "visibleWhen" on commands using dummy actionset.
But is there a similar approach for handlers
Thanks
Devesh
Re: Enabling Handlers based on Perspective [message #328921 is a reply to message #328338] Fri, 06 June 2008 17:56 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Both activeWhen and enabledWhen also have access to the dummy actionSet
via a context.

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Previous Topic:How to listen to ActiveEditor changes and is IEditorActionDelegate deprecated?
Next Topic:org.eclipse.ui.commands defaultHandler isA?
Goto Forum:
  


Current Time: Sun Jul 07 05:31:34 GMT 2024

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

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

Back to the top