what kind of TextFieldWithAutoCompletion can select method ?

Answered

hello ,I need a TextFieldWithAutoCompletion to select method, By the way how to create "ctrl o" dialog in my plug

12 comments
Comment actions Permalink

You can collect the method items to display (and e.g. filter out specific methods) and then pass these items to TextFieldWithAutoCompletion.

1
Comment actions Permalink

I'm just doing what you said,But I found a bug,When I create a TextFieldwithAutoCompletion in DomFileEditor, my ClassNameReferenceEditor will not work, and the java editor and XML editor will always be in the analysis state

 

0
Comment actions Permalink

Please check idea.log for errors.

0
Comment actions Permalink

I didn't find some useful information. I'm such a rookie,Press Ctrl + enter can restore,I do not know why,Something may not have been initialized ,oh my god,It has taken me several days.

 

some warnings, on errors

2021-09-16 17:28:18,187 [   1966]   WARN - tellij.ide.SystemHealthMonitor - issue detected: bundled.jre.version.message 
2021-09-16 17:28:18,834 [ 2613] WARN - ion.impl.NotificationCollector - Notification group 'Heap Dump Analysis' is already registered in whitelist
2021-09-16 17:28:18,834 [ 2613] WARN - ion.impl.NotificationCollector - Notification group 'Low Memory' is already registered in whitelist
2021-09-16 17:28:19,257 [ 3036] WARN - Container.ComponentManagerImpl - Do not use constructor injection (requestorClass=org.jetbrains.android.compose.AndroidComposeAutoDocumentation)
2021-09-16 17:28:20,056 [ 3835] WARN - tartup.impl.StartupManagerImpl - Activities registered via registerPostStartupActivity must be dumb-aware: org.jetbrains.kotlin.idea.configuration.ui.KotlinConfigurationCheckerComponent$projectOpened$1@424411fa
2021-09-16 17:28:32,353 [ 16132] WARN - .diagnostic.PerformanceWatcher - UI was frozen for 11125ms, details saved to E:\workspace\sandbox2\system\log\threadDumps-freeze-20210916-172826-IC-202.8194.7-Database.open-11sec
2021-09-16 17:34:03,031 [ 346810] WARN - com.intellij.util.xmlb.Binding - no accessors for org.jetbrains.kotlin.idea.core.script.configuration.utils.ScriptClassRootsStorage
2021-09-16 17:39:14,499 [ 658278] WARN - com.intellij.util.xmlb.Binding - no accessors for org.jetbrains.kotlin.idea.scripting.gradle.GradleScriptInputsWatcher$Storage
0
Comment actions Permalink

Please share full plugin sources

0
Comment actions Permalink

Sorry, I don't know your email address,so I make a demo to show this problem . if "default.debugcase" open first,other editor will always be in the analysis state

0
Comment actions Permalink

Please upload sources to https://uploads.services.jetbrains.com/ and specify filename here

0
Comment actions Permalink

Upload id: 2021_09_16_MHkBBfebEW2jcm2d (file: demo form1795944309.zip)

0
Comment actions Permalink

sdk: IntelliJ IDEA Community Edition IC-202.8194.7

0
Comment actions Permalink

GapsDebugCaseDomElementComponent doesn't seem to be in sync of how it should be used.

https://plugins.jetbrains.com/docs/intellij/xml-dom-api.html#ui-organization

Implement custom com.intellij.util.xml.ui.EditorTextFieldControl using TextFieldWithAutoCompletion as underlying component. You can use com.intellij.util.xml.ui.PsiClassControl as reference

 

Please note that DOM UI is no longer maintained.

0
Comment actions Permalink

Thanks a lot,we use StartUpManager to solve,I have a new problem. How do I set the callback for “Enter select” 

0

Please sign in to leave a comment.