Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Enable handler when text is selected
Enable handler when text is selected [message #1708810] Mon, 21 September 2015 08:09
Eclipse UserFriend
Hello! I have a handler that extends abstract handler and I need to enable it in more cases. One of the cases is when I am in edit mode and a text is selected.
I want to do this programmatically.
I overrided public boolean isEnabled() but the problem is this only gets called when I make a mouse click. So it doesn't execute when I select the whole text. (only at first click)

So it always is false because the first click in edit mode doesn't have a text selected. I need to be able to make a check for the handler when a text is selected, how could i accomplish this?
Previous Topic:Saving Modified Files Programmatically in eclipse without using editor
Next Topic:Charts in the web
Goto Forum:
  


Current Time: Sat Jul 12 16:25:02 EDT 2025

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

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

Back to the top