Trying to execute the disabled command [message #524221] |
Wed, 31 March 2010 08:34 |
saurav sarkar Messages: 428 Registered: July 2009 |
Senior Member |
|
|
Hi All,
I am using keyboard shortcuts in my appliocation.
I am providing handlers for the paste action.
For some reason the paste does not work initially but after doing some other operations it works.
I enabled the tracing in the debug config and found the command is not enabled and hence the NotEnabledException.
I am creating the action in my code.
Then assigning the action handler to the action bar of the UI and then regirstering the action with the KeyBindingService.
I know KeyBindingService way is not the preffered way to go ahead.But that code i can not change much.
Below is the error i am getting in the console
COMMANDS >>> execute >>> not enabled: id=org.eclipse.ui.edit.paste; exception=org.eclipse.core.commands.NotEnabledException: Trying to execute the disabled command org.eclipse.ui.edit.paste
Any help would be hugely appreciated.
Thanks and Regards,
Saurav
My Blog http://codifyit.blogspot.com/
Follow me: http://twitter.com/sauravs
[Updated on: Wed, 31 March 2010 08:35] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03584 seconds