Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 12:09
Cata E. is currently offline Cata E.Friend
Messages: 2
Registered: August 2015
Junior Member
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: Thu Apr 25 22:34:33 GMT 2024

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

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

Back to the top