Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Delete key does not work in TreeViewer
Delete key does not work in TreeViewer [message #1105891] Tue, 10 September 2013 12:00
Sabari M is currently offline Sabari MFriend
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:Eclipse Console Caret Position
Next Topic:Console Caret Position
Goto Forum:
  


Current Time: Thu Apr 25 04:49:11 GMT 2024

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

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

Back to the top