Question to ModuleComponent and Configurable

As I understood, if a class implements the ModuleComponent and Configurable interfaces, the setup screen will show-up in the options panel of a module. I need the ModuleRootManager to show up as well for my custom module type. How can I do that?
So far only the ModuleComponents which I implemented are visible.
Where is the logic deciding which setup screen should appear for a given module type? Can I hook into that logic?

2 comments
Comment actions Permalink

Hello Dan,

As I understood, if a class implements the ModuleComponent and
Configurable interfaces, the setup screen will show-up in the options
panel of a module. I need the ModuleRootManager to show up as well for
my custom module. How can I do that? So far only the ModuleComponents
which I implemented are visible.


Sorry, I don't understand what exactly you mean. ModuleRootManager is not
a UI component, it can't "show up" anywhere.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Hello Dmitry,

sorry, I guess I was wrong about ModuleRootManager. I thought it implements com.intellij.openapi.options.Configurable.
As I learned, a class implementing both Configurable and ModuleComponent is producing a new settings tab for the module configuration in "Project Settings". This happen with my ModuleConnectionManager which shows as "Connections" tab for all module types (see attached screenshots).

I thought that ModuleRootManager is producing the "Sources" tab in the Java module properties. I was wondering why it is not showing up for my custom module type. But anyhow it is too java specific for a non-java module so I will need to implement a custom ModuleComponent for managing the content roots.

Another question:
How do I constraint the ModuleConnectionManager visibility to only certain module types? Is this possible?

Thanks,
Dan



Attachment(s):
JavaModule.JPG
DBModule.JPG
0

Please sign in to leave a comment.