Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » ActionFactory.DELETE not enabled ?
ActionFactory.DELETE not enabled ? [message #197077] Thu, 29 September 2005 12:58 Go to next message
drew frantz is currently offline drew frantzFriend
Messages: 340
Registered: July 2009
Senior Member
I have MultiPageEditorPart in which i add any number of
GraphicalEditorWithFlyoutPalette as pages to the multi-page editor. I
redirect a number of things from each GraphicalEditorWithFlyoutPalette to
the parent MultiPageEditorPart , but i cannot seem to figure out why the
Delete action is never enabled. I assume it has something to do with
selection, but have not figured out why.

any clues?
Re: ActionFactory.DELETE not enabled ? [message #197103 is a reply to message #197077] Thu, 29 September 2005 15:47 Go to previous message
hanys is currently offline hanysFriend
Messages: 188
Registered: July 2009
Senior Member
Try this, put to the GEF editor a following method (change how you need it):

protected KeyHandler getCommonKeyHandler(){
KeyHandler sharedKeyHandler = new KeyHandler();
sharedKeyHandler.put(
KeyStroke.getPressed(SWT.DEL, 127, 0),
getActionRegistry().getAction(GEFActionConstants.DELETE));
((DeleteAction)
getActionRegistry().getAction(GEFActionConstants.DELETE)).se tLazyEnablementCalculation(true);

return sharedKeyHandler;
}


Best Regards,
John Cage
Previous Topic:highlight on mouse rollover
Next Topic:double click action in GEF
Goto Forum:
  


Current Time: Thu Mar 28 21:17:06 GMT 2024

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

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

Back to the top