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.

2 comments
Comment actions Permalink

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

0
Comment actions Permalink

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

0

Please sign in to leave a comment.