Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Contributing drop down actions to a view
Contributing drop down actions to a view [message #335651] Sat, 18 April 2009 23:57 Go to next message
Eclipse UserFriend
Originally posted by:


I'm using the org.eclipse.ui.viewActions extension point to add a custom
action to the console (org.eclipse.ui.console.ConsoleView). This works fine
as long as my action is a simple push action, but now I want to change it to
a dropdown action (like the console selection actions). The menu must be
generated by my code when it is opened.

Since "Display Selected Console" and "Open Console" do this, I'm assuming
it's possible, but I can't figure out how. The style attribute of viewer
contribution actions only accepts "push", "radio" or "toggle" values.

I've been toying around with "org.eclipse.ui.actionSets", but that seems to
apply to the workbench's own toolbars only, not that of a specific view.

Any pointers?


-- |

Hofstadter's law: "It always takes longer than you think,
even when you take account of Hofstadter's law".
Re: Contributing drop down actions to a view [message #335662 is a reply to message #335651] Mon, 20 April 2009 14:38 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

The buttons that already work as you want are contributed
programmatically be the view ... as you've seen you can't add them using

You can using org.eclipse.ui.menus (and commands and handlers) See some
of the examples in


Paul Webster e.platform.doc.isv/guide/workbench.htm

Previous Topic:Bug in saving file with same name as other open modified files
Next Topic:debugging menu contributions
Goto Forum:

Current Time: Wed May 23 01:22:35 GMT 2018

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

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

Back to the top