Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Need help connecting Command Handler to my View
Need help connecting Command Handler to my View [message #327515] Wed, 23 April 2008 02:00 Go to next message
Eclipse UserFriend
I have been following the tutorial on at
http://www.ibm.com/developerworks/library/os-eclipse-3.3menu /index.html
and have created command, handler and menu contributions OK, but when the
handler execute method fires, how can I get hold of the view instance
where the original menu item is?
Re: Need help connecting Command Handler to my View [message #327533 is a reply to message #327515] Wed, 23 April 2008 13:45 Go to previous messageGo to next message
Eclipse UserFriend
HandlerUtil.getActivePart(event) should return the correct IViewPart if
the view was active.

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/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm
Re: Need help connecting Command Handler to my View [message #327538 is a reply to message #327533] Wed, 23 April 2008 19:21 Go to previous message
Eclipse UserFriend
Thanks again on this one. [ There are certainly a lot of little tricks &
tips needed to put the whole picture together :) ]
Previous Topic:startup.jar in org.eclipse.releng.eclipsebuilder
Next Topic:How to imply two-layers menu in contextmenu
Goto Forum:
  


Current Time: Fri Apr 18 20:23:58 EDT 2025

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

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

Back to the top