Skip to main content

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 12:48
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.

Previous Topic:TreeViewer can not delete the firstchild
Next Topic:[Databinding] missing SetChanged notification
Goto Forum:

Current Time: Sat Sep 22 18:32:35 GMT 2018

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

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

Back to the top