Inputs To Commands [message #533424] |
Thu, 13 May 2010 15:58  |
Eclipse User |
|
|
|
I have an application that displays information in a tree. I would like to add a command that allows me to override the delete key to delete a node from the tree. The command works in the sense that it now overrides the delete key and calls the execute method in the handler for the command. Right now it just throws a message saying that my handler has been called.
My question is how can I get the handler class to know about the ViewPart class that holds the tree to do the delete? I was thinking that I could have the handler class fire an event into the wiew, but I have no idea how to get the handler to know about the view. Is there a way for the ViewPart when it is creating itself to get a hold of the command and pass "this" to the handler so that the handler can add the view as a listener and then fire an event into the view? Is there any standard way of having a view and a handler for a command to communicate with each other?
Thanks,
Andy
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04951 seconds