Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » global action ...
global action ... [message #334902] Mon, 09 March 2009 16:27 Go to next message
Carmelo  is currently offline Carmelo Friend
Messages: 224
Registered: July 2009
Senior Member
Hi all,
really sorry to keep asking the same question but I'm really getting mad
trying to understand what to do ...

I have got 7 different views using the same delete command ...

I have got key binding correctly working and the views work on its own
context ...

the problem is ... I would really love to see the delete menu item in the
edit menu to turn enabled when the command delete (that I already see in my
popup menu is active)...

what shall I do ... is it possible???

I know that I can define an action inside the view and make it global via

actionBars.setGlobalActionHandler(
ActionFactory.DELETE.getId(), myAction);

but I have used the command framework just to be sure that I could define
ONCE the command and see it appearing in each view automatically.

Thanks in advance
Kar
Re: global action ... [message #334906 is a reply to message #334902] Mon, 09 March 2009 17:45 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

What version? In 3.4 activating your delete handler for
org.ecilpse.ui.edit.delete for your view will allow it to track the view
handler enabled state.

We stopped using ActionFactory.DELETE in 3.4

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/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Re: global action ... [message #334918 is a reply to message #334906] Tue, 10 March 2009 09:46 Go to previous message
Carmelo  is currently offline Carmelo Friend
Messages: 224
Registered: July 2009
Senior Member
sorry still using 3.3

"Paul Webster" <pwebster@ca.ibm.com> wrote in message
news:gp3kkk$26v$1@build.eclipse.org...
> What version? In 3.4 activating your delete handler for
> org.ecilpse.ui.edit.delete for your view will allow it to track the view
> handler enabled state.
>
> We stopped using ActionFactory.DELETE in 3.4
>
> 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/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm
Previous Topic:Common Navigator Framework content extensions....
Next Topic:Modifying the tabbed properties view of the project explorer
Goto Forum:
  


Current Time: Thu Apr 25 01:49:51 GMT 2024

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

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

Back to the top