How do I get acess to an ApplicationComponent from an Action?

I am writing an action that is needs some configuration information from my plug-in's ApplicationComponent. How do I get access to my ApplicationComponent inside an Action? I assume I need to call getComponentInstance("MyApplicationComponent") on some sort of ComponentContainer, but I can't figure out how to get a reference to one.

Thanks.

0
2 comments
Avatar
Permanently deleted user

ApplicationManager.getApplication().getComponent(YourComponent.class)

0
Avatar
Permanently deleted user

Thanks. I knew it was something straight froward like that.

0

Please sign in to leave a comment.