- Open API. TextField with completion: use UIHelper.createTypedTextField()
How to obtain a reference to a UIHelper instance?Tom
OK, I've got it (by taking a detailled look at openapi.jar): PeerFactory.getInstance().getUIHelper().Tom
OK, next problem: UIHelper.createTypedTextField() only returns a JComponent. How to set the text, how to get it? How to detect, whether the content is valid?Tom
Sorry Thomas,it looks like API is not usable. We'll fix it ASAP. Meanwhile you may assume it returns com.intellij.ui.EditorTextField which isn't from published API but thankfully not scrambled. It has getText()/setText() methods.-
Maxim Shafirovhttp://www.jetbrains.com"Develop with pleasure!"
OK, next problem: UIHelper.createTypedTextField() only returns aJComponent. How to set the text, how to get it? How to detect, whetherthe content is valid?Tom
I really need an opportunity to embed idea text component with completion and java highlighting in my plugin for editing java code. I downloaded openapi src 4.5.4 and didn't find UIHelper with such function there. Where can I find it ? How to get such text field from plugin ?
You need EAP build 3296 or higher.Tom
I posted two questions some time ago here :http://www.intellij.org/twiki/bin/view/Main/PluginDevelopmentHowTo00005Could you please take a look at it and tell me if it's possible now with EAP or not ?Thanks!
Please sign in to leave a comment.