Eventbus: Intellij Plugin for nagivation

Created on 29 Apr 2014  ·  21Comments  ·  Source: greenrobot/EventBus

Similar to Square's Otto: https://github.com/square/otto-intellij-plugin
This might be nice! :-)

feature

Most helpful comment

If someone is looking for a working solution of the plugin that supports project using both Java and Kotlin, please try the below.

https://plugins.jetbrains.com/plugin/12856-greenrobot-eventbus
https://github.com/Madrapps/eventbus-plugin

All 21 comments

I agree. It would be great and very useful

I agree. It would be great and very useful

I agree. It would be great and very useful

Any volunteers? ;)

Does someone work on this feature?

We are not. Do you want to go ahead?

Note that #126 will have impact on this one

@greenrobot

Hi

I made that plugin.
I hope you like it.

https://github.com/kgmyshin/eventbus-intellij-plugin

and for eventbus3

https://github.com/kgmyshin/eventbus3-intellij-plugin

Has anyone tested it ? worth installing ?

I've just installed it and it seems it does the job (with EventBus 2.4)

@kgmyshin thanks for this. Installing and testing it.

Update 1:
Kinda doesn't seem to be working for me on Eventbus 2.4.0. Will log an issue on that repo.

@dheerajbhaskar

I fixed!
Please confirm that again.

Thanks for the quick reply and extremely quick fix @kgmyshin
This is now fixed.

Do check this plugin everyone, does the job :+1:
@kamilwlf

@greenrobot can we get a mention of this plugin on the readme page?

@kgmyshin thanks for the plugin. I just downloaded and installed it https://github.com/kgmyshin/eventbus3-intellij-plugin

I recently (today) moved from otto to de.greenrobot:eventbus:3.0.0-beta1
The plugin works on posts and will show all subscribers, but when you click on a subscribe, it says "No Usages Found in Project" when I open the Find Usages dialog, it says it is looking for usages of the Method post(Object) of class de.greenrobot.event.EventBus
image

Update:
I works for my coworker. I am on Ubuntu 15.04 and he is on OSX

Also, I just found a stack trace:
null
java.lang.NullPointerException
at com.kgmyshin.ideaplugin.eventbus3.SenderFilter.shouldShow(SenderFilter.java:43)
at com.kgmyshin.ideaplugin.eventbus3.ShowUsagesAction$10.process(ShowUsagesAction.java:329)
at com.kgmyshin.ideaplugin.eventbus3.ShowUsagesAction$10.process(ShowUsagesAction.java:324)
at com.intellij.find.findUsages.FindUsagesManager$2$2.process(FindUsagesManager.java:358)
at com.intellij.find.findUsages.FindUsagesManager$2$2.process(FindUsagesManager.java:349)
at com.intellij.util.CommonProcessors$UniqueProcessor.process(CommonProcessors.java:120)
at com.intellij.find.findUsages.FindUsagesManager$2$4.process(FindUsagesManager.java:404)
at com.intellij.find.findUsages.FindUsagesManager$2$4.process(FindUsagesManager.java:394)
at com.intellij.psi.impl.search.MethodTextOccurrenceProcessor.processReference(MethodTextOccurrenceProcessor.java:64)
at com.intellij.psi.impl.search.MethodTextOccurrenceProcessor.processTextOccurrence(MethodTextOccurrenceProcessor.java:47)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$17.execute(PsiSearchHelperImpl.java:765)
at com.intellij.psi.impl.search.LowLevelSearchUtil.processTreeUp(LowLevelSearchUtil.java:126)
at com.intellij.psi.impl.search.LowLevelSearchUtil.processElementsContainingWordInElement(LowLevelSearchUtil.java:200)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$3$1.compute(PsiSearchHelperImpl.java:214)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$3$1.compute(PsiSearchHelperImpl.java:211)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:884)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$3.process(PsiSearchHelperImpl.java:211)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$3.process(PsiSearchHelperImpl.java:208)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$16.process(PsiSearchHelperImpl.java:729)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$16.process(PsiSearchHelperImpl.java:723)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$7.compute(PsiSearchHelperImpl.java:371)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$7.compute(PsiSearchHelperImpl.java:356)
at com.intellij.openapi.application.ex.ApplicationUtil$1.run(ApplicationUtil.java:37)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1098)
at com.intellij.openapi.application.ex.ApplicationUtil.tryRunReadAction(ApplicationUtil.java:34)
at com.intellij.psi.impl.search.PsiSearchHelperImpl.processVirtualFile(PsiSearchHelperImpl.java:356)
at com.intellij.psi.impl.search.PsiSearchHelperImpl.access$000(PsiSearchHelperImpl.java:68)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$4.process(PsiSearchHelperImpl.java:304)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$4.process(PsiSearchHelperImpl.java:299)
at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:122)
at com.intellij.concurrency.ApplierCompleter.access$000(ApplierCompleter.java:44)
at com.intellij.concurrency.ApplierCompleter$1.run(ApplierCompleter.java:85)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:452)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:449)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:402)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.concurrency.ApplierCompleter.wrapInReadActionAndIndicator(ApplierCompleter.java:106)
at com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:82)
at jsr166e.CountedCompleter.exec(CountedCompleter.java:684)
at jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260)
at jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858)
at jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687)
at jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)
at jsr166e.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:109)

Can you guys add the info for this on your README page? This is a huge feature that will drive usage of your library. The plugin is a huge ++ for productivity.

any official solutions NOW ??
:(

Works for me. Thanks.

Does it work with version eventbus:3.0.0'?

yes it is.

@Githeo @kamilwlf Try this: https://github.com/likfe/eventbus3-intellij-plugin :smile:

I like to add @Like coments to the Subscribe methods :+1:

If someone is looking for a working solution of the plugin that supports project using both Java and Kotlin, please try the below.

https://plugins.jetbrains.com/plugin/12856-greenrobot-eventbus
https://github.com/Madrapps/eventbus-plugin

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kyze8439690 picture kyze8439690  ·  4Comments

ningjiaqi picture ningjiaqi  ·  7Comments

gsteigert picture gsteigert  ·  5Comments

liaohuyu picture liaohuyu  ·  4Comments

nschwermann picture nschwermann  ·  4Comments