greenrobot / EventBus

Event bus for Android and Java that simplifies communication between Activities, Fragments, Threads, Services, etc. Less code, better quality.
http://greenrobot.org/eventbus/
Apache License 2.0
24.67k stars 4.66k forks source link

Intellij Plugin for nagivation #84

Open jnagels opened 10 years ago

jnagels commented 10 years ago

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

mboudraa commented 10 years ago

I agree. It would be great and very useful

ytrjp commented 10 years ago

I agree. It would be great and very useful

igor-korotenko commented 9 years ago

I agree. It would be great and very useful

greenrobot commented 9 years ago

Any volunteers? ;)

jmodrako commented 9 years ago

Does someone work on this feature?

greenrobot commented 9 years ago

We are not. Do you want to go ahead?

greenrobot commented 9 years ago

Note that #126 will have impact on this one

kgmyshin commented 9 years ago

@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

kamilwlf commented 9 years ago

Has anyone tested it ? worth installing ?

aat-antoine commented 9 years ago

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

dheerajbhaskar commented 9 years ago

@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.

kgmyshin commented 9 years ago

@dheerajbhaskar

I fixed! Please confirm that again.

dheerajbhaskar commented 9 years ago

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?

themichaelscott commented 9 years ago

@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)

christopherperry commented 8 years ago

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.

imknown commented 8 years ago

any official solutions NOW ?? :(

Githeo commented 7 years ago

Works for me. Thanks.

kamilwlf commented 7 years ago

Does it work with version eventbus:3.0.0'?

Githeo commented 7 years ago

yes it is.

jp1017 commented 7 years ago

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

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

saravana-thiyagaraj commented 5 years ago

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