8 comments
Comment actions Permalink

- Open API. TextField with completion: use UIHelper.createTypedTextField()


How to obtain a reference to a UIHelper instance?

Tom

0
Comment actions Permalink

OK, I've got it (by taking a detailled look at openapi.jar):
PeerFactory.getInstance().getUIHelper().

Tom

0
Comment actions Permalink

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

0
Comment actions Permalink

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 Shafirov
http://www.jetbrains.com
"Develop with pleasure!"

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



0
Comment actions Permalink

Thanks, Max.

0
Comment actions Permalink

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 ?

0
Comment actions Permalink

You need EAP build 3296 or higher.

Tom

0
Comment actions Permalink

I posted two questions some time ago here :
http://www.intellij.org/twiki/bin/view/Main/PluginDevelopmentHowTo00005
Could you please take a look at it and tell me if it's possible now with EAP or not ?
Thanks!

0

Please sign in to leave a comment.