Textfield with completion

0
8 comments
Avatar
Permanently deleted user

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


How to obtain a reference to a UIHelper instance?

Tom

0
Avatar
Permanently deleted user

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

Tom

0
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

Thanks, Max.

0
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

You need EAP build 3296 or higher.

Tom

0
Avatar
Permanently deleted user

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.