intellij-plugin

Create a background task in IntelliJ plugin

好久不见. 提交于 2019-12-03 03:19:22
I'm developing an IntelliJ-idea plugin and want to run code in background task (visible in the background tasks dialog and in another thread than the UI). I found the following Helper class and tried it by passing a Runnable object and implement its run method but it still blocking the UI and when I tried to do the threading myself i got the following error Read access is allowed from event dispatch thread or inside read-action only (see com.intellij.openapi.application.Application.runReadAction()) Details: Current thread: Thread[Thread-69 [WriteAccessToken],6,Idea Thread Group] 532224832 Our

How is lint integrated with IntelliJ inspections in Android Studio?

别等时光非礼了梦想. 提交于 2019-12-02 03:48:01
问题 I understand that there are two types of inspections in Android Studio, those which are inherited from IntelliJ and those which are inherited from lint (see: Android lint on command-line missing issue groups (versus options available in Android Studio)). I also understand that when you write a custom lint rule and add it to an Android project it is automatically converted into an inspection. Based on these two assertions I am lead to believe there is a mechanism which converts lint rules to

How is lint integrated with IntelliJ inspections in Android Studio?

筅森魡賤 提交于 2019-12-02 01:33:41
I understand that there are two types of inspections in Android Studio, those which are inherited from IntelliJ and those which are inherited from lint (see: Android lint on command-line missing issue groups (versus options available in Android Studio) ). I also understand that when you write a custom lint rule and add it to an Android project it is automatically converted into an inspection. Based on these two assertions I am lead to believe there is a mechanism which converts lint rules to IntelliJ inspections. In this article it states "Using the Structural Search Inspection is the only way

IntelliJ IDEA plugin development in other JVM languages

风格不统一 提交于 2019-12-01 17:45:22
Is it possible to use other JVM languages such as Scala and Clojure for developing an IntelliJ IDEA plugin? Or do we have to use Java for this purpose? I could find no pointers on this on web, hence posting the question here. Yes, it is entirely possible. Any plugin essentially is a set of extensions for several extension points which IDEA API provides. These extensions are regular java classes implementing predefined interfaces, and these classes are referenced to in the manifest. Also, you can bundle any libraries along with the plugin. So, if your language of choice allows implementing

“Find usages” functionality as an IntelliJ plugin

亡梦爱人 提交于 2019-12-01 14:06:06
I'm trying to find a way in IntelliJ IDEA to find all the usages of a few library method calls and classes in a particular project. The goal is to compile a list of classes which make reference to these specific methods or classes. How can I go about this, I can see there is a MethodReferencesSearch which looks like it could be helpful, however the search method requires an instance of PsiMethod. How can I create an instance of PSI method that matches the method in a particular lib class (say I wanted to find all the usages of the concat(...) method in Java's String class Basically I'm trying

Run intellij plugin on Android Studio

江枫思渺然 提交于 2019-12-01 12:38:53
I'm developing an intellij plugin supposed to be used in android studio. I've already setup the plugin development environment, but when I hit "Run" command it starts a new intellij instance with the plugin installed. What I'm looking for is how to run the plugin directly on Android Studio, is that possibile? The only place where I think it can be configured is from "Run configurations" but I do not find anything useful there. Thanks You can specify the platform to run on in the IntelliJ Platform Plugin SDK settings, under Platform Settings | SDKs in the Project Structure settings. Point the

“Find usages” functionality as an IntelliJ plugin

丶灬走出姿态 提交于 2019-12-01 12:13:15
问题 I'm trying to find a way in IntelliJ IDEA to find all the usages of a few library method calls and classes in a particular project. The goal is to compile a list of classes which make reference to these specific methods or classes. How can I go about this, I can see there is a MethodReferencesSearch which looks like it could be helpful, however the search method requires an instance of PsiMethod. How can I create an instance of PSI method that matches the method in a particular lib class (say

How to implement an intelliJ IDEA plugin for remote javascript debugging with Rhino?

元气小坏坏 提交于 2019-12-01 05:16:20
问题 I need to debug scripts running on a remote server which uses an embedded rhino engine, using intelliJ IDEA. Is there any procedure that I could follow to write a plugin to support this? I need an idea as how this could be done. It will be really helpful if you can either give me some idea or point me to some resources. 回答1: IDEA has xdebugger API to support debugging. You can use xslt debugger plugin sources as example. 来源: https://stackoverflow.com/questions/12509206/how-to-implement-an

Enable Annotation processors by default

跟風遠走 提交于 2019-12-01 03:05:23
How can I configure IntelliJ IDEA to have Annotation processors enabled by default? Currently, I have to enable it manually for every imported project. File | Other Settings | Default Settings , navigate to the compiler settings, annotation processing and enable this option before importing the project. 来源: https://stackoverflow.com/questions/44452482/enable-annotation-processors-by-default

How to import and run existing plugins from intellij community edition repo

◇◆丶佛笑我妖孽 提交于 2019-11-30 17:22:30
I'm trying to import and run the IntelliJ git4idea (Git Integration) plugin in order to play around and contribute some of my own code. I've pulled the Intellij community edition from the github repo , and imported the git4idea plugin as a project. I'm running the Intellij community edition My main issue is this: After importing all the modules, the git4idea module comes up as a general module type, and not a plugin module type. This means that when trying to create a new run\debug configuration, I get [none] under "Use classpath of module", instead of of the ability to select the git4idea