[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] setGlobalActionHandler

A CopyAction, derived from Action, in the treeview is associated with the
Copy menu item in the global menu via setGlobalActionHandler.  It works
correctly  when the tree view is active.  But there are some minor
problems - only when mouse is clicked on the white space in the tree view,
copy menu is enabled.  When selecting an object in the tree view , copy menu
is disabled.   Not sure why?

How does the copyAction in the treeview control the enable/disable of copy
menu item in the global menu when the tree view is active?  Do I need to
define copyAction in plugin.xml and use enablement/selection?

Thanks,
Mike