I am building a eclipse plugin with custom editor. I have implemented text hovering functionality in which user hover on some text then that text will be shown on tooltip like javadocs.
How can i change the tooltip background and foreground color programmatically?
If your ITextHover
class also implements ITextHoverExtension
you can provide the IInformationControlCreator
in the getHoverControlCreator()
method.
You can use a simple IInformationControlCreator
which just returns an instance of DefaultInformationControl
as the information control. DefaultInformationControl
has setForegroundColor
and setBackgroundColor
methods.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.