Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Text editor control decoration
Text editor control decoration [message #926106] Fri, 28 September 2012 09:58 Go to next message
dhruba kumar is currently offline dhruba kumarFriend
Messages: 51
Registered: September 2012
Member
Hi ,
In Section "Text editor control decoration" of documentation http://www.eclipse.org/nattable/documentation.php?page=editing it is mentioned that "You can get further access for customization by calling TextCellEditor.getDecorationProvider() e.g. to force the hover text to be shown immediately rather than on hover. The returned ControlDecorationProvider can also be reused in your own custom editors" .Can u please tell which are the methods of ControlDecorationProvider
are required to overide force the hover text to be shown immediately .
Re: Text editor control decoration [message #926497 is a reply to message #926106] Fri, 28 September 2012 18:16 Go to previous message
Justin Dolezy is currently offline Justin DolezyFriend
Messages: 68
Registered: July 2009
Member
Hi there,

The method you need is:

public void showErrorDecorationHover(String errorText)

If you have the source you'll see that this calls errorDecoration.showHoverText(errorText) on the ControlDecoration instance. It's handy to have a look at ControlDecoration's API also Smile

That should do the trick for you!

Regards,
Justin
Previous Topic:NatTable 0.9.0 Release
Next Topic:Division by Zero bug in AbstractTextPainter.modifyTextToDisplay(AbstractTextPainter.java:325)
Goto Forum:
  


Current Time: Wed Apr 24 23:12:55 GMT 2024

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

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

Back to the top