|Contributing drop down actions to a view [message #335651]
||Sat, 18 April 2009 23:57
Originally posted by: m.sched.gmx.at|
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.
http://www.musgit.com | http://marian.musgit.com
Hofstadter's law: "It always takes longer than you think,
even when you take account of Hofstadter's law".
Powered by FUDForum
. Page generated in 0.02677 seconds