What exactly does implementing a ReferenceContributor do exactly, in terms of functionality to the app. I have a PsiReferenceContributor that is allegedly providing references from a properties file to Java field names, however, I can't hit CTRL+B on it in the properties file, nor can I find usages of it, in the code.
If I step through the debugger, I can see the references are being created correctly (I created a new subtype of PsiReference), and the and the element is the element, and the target is the PsiField.
func::usage = "func[x] does really awesome things". Here the word
funcis part of the string and can appear everywhere inside the usage string. My reference contributor checks all strings if they are indeed such usage definitions and connect the words of the function inside the string with the declaration of
func. Now, I can navigate from the appearance of
funcinside the string to the definition and more importantly, everything gets renamed correctly.
getContainingFile().getVirtualFile(). But some PsiFiles are "light", for instance the XmlFile is this way -- it maps a fake dtd to the xml file. But I really want the underlying physical file, but I want to avoid one-off hacks involving if-statements like
if (isXmlFile()) ....
Today we are introducing JetBrains Platform Slack for plugin developers - https://blog.jetbrains.com/platform/2019/10/introducing-jetbrains-platform-slack-for-plugin-developers/
Hi All, was wondering if someone would mind giving me a hand understanding how to go about supporting IJ products optionally? Or point me at the right documentation?
I've seen bits on how to do it around, but apparently I've not done it right: http://puu.sh/EyqD5/3451895b20.png
I have used my plugin to build number 191. and for the JPanel, I can see my Panel on the action.
But when I tried to run it in 192. build number android studio (4.0 preview) then it returns the error inside JPanel class.
I have used JTextField inside it.
It returns the following error.
Can anyone help me on this?
I wrote a plugin performing massive refactoring on a targeted project.
The plugin action is fully wrapped inside a WriteCommand.
Everything works fine except the WriteCommand always freeze the IntelliJ UI, even side projects one.
I tried to trigger the WriteCommand from another Thread but it always fail.
Is there a way to have a responsive UI (at least for project neighbors) during a WriteCommand?
Can someone explain me, how can I change a text, which pop-ups upon variable when I hover mouse with CMD pressed over it?