Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-ui-dev] runWithEvent support for contributed drop down actions


I would like to take advantage of the new support in IAction for the runWithEvent(Event) method.  I want to do this so I can access the state mask of the action, and determine if a key like Shift or Ctrl was held down when the action was invoked.  The problem is that since my action is a contributed drop action on the toolbar, my overridden version of runWithEvent is never called.  The action contribution item's action is a WWinPluginPulldown, and this class does not override runWithEvent, but just uses the default supplied by Action, which just calls run().  The run() method defined by PluginPulldown creates the delegate and calls run(IAction) on it.  Thus, the runWithEvent() I've defined in the delegate gets ignored.  I realize this support is new and subject to change, but couldn't WWinPluginPulldown override runWithEvent to call runWithEvent on the delegate, passing in the event?

Thanks,
Joe

Back to the top