What are the HintManager changes in 8.0?
Hi,
We have been using this voodoo magic in IDEA 7.0 to make some hints appear:
HintManager.getInstance().showEditorHint(lightweightHint, anEditor, point,
HintManager.HIDE_BY_ANY_KEY | HintManager.HIDE_BY_TEXT_CHANGE | HintManager.HIDE_BY_OTHER_HINT | HintManager.HIDE_BY_SCROLLING, -1, false);
The code above does not compile on Diana build.
What would be an equivalent replacement code for 8.0?
Cheers
Janusz
Please sign in to leave a comment.
Hello Janusz,
Cast the return value of HintManager.getInstance() to HintManagerImpl.
Note that HintManager is now in OpenAPI, and you can probably find a simpler
and more official API to do what you need (see showErrorHint() and showInformationHint()).
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
That helped. Thanks