Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Delete key does not work in TreeViewer
Delete key does not work in TreeViewer [message #1108171] Fri, 13 September 2013 08:48
Sabari M is currently offline Sabari M
Messages: 3
Registered: June 2013
Junior Member
I have a tree viewer in my eclipse rcp application in which I have multiple nodes and sub nodes. When I try to delete a child node using the key 'Delete' in keyboard, nothing happens but it works fine if I right click the required node and then delete it.

I tried to debug this issue and found that the following code in HandlerServiceImpl.executeHandler(ParameterizedCommand command, IEclipseContext staticContext) is causing the issue.

Object rc = ContextInjectionFactory.invoke(handler, CanExecute.class, executionContext,
staticContext, Boolean.TRUE);
staticContext.set(CAN_EXECUTE, rc);

if (Boolean.FALSE.equals(rc))
return null;

Object rc is being assigned the boolean value 'false' and hence it is returning null which prevents the action class from being called. I'm using Eclipse 4.2.2 and recently migrated my application from Eclipse 3.6.x to 4.2.2. This was working fine before the upgrade.

Any help would be greatly appreciated.


Regards,
Sabari
Previous Topic:how to get tableitem by obj in tableviewer
Next Topic:[Databinding] missing SetChanged notification
Goto Forum:
  


Current Time: Thu Aug 21 00:23:57 EDT 2014

Powered by FUDForum. Page generated in 0.02470 seconds