Project Configuration and Application Configurable group

Answered

Good morning.

I have a question related to Settings.


Can I mix application and project settings? E.g.

<applicationConfigurable groupId="project" groupWeight="120" instance="com.my.settings.MySettings"
id="MySettings" displayName="MySettings" order="last">

<configurable instance="com.my.settings.ProjectSettingsConfigurable"
id="reference.com.my.settings.project"
bundle="messages.MySettingsBundle" key="com.my.settings.project"/>

<configurable instance="com.my.settings.GlobalSettingsConfigurable"
id="reference.com.my.settings.global"
bundle="messages.MySettingsBundle" key="com.my.settings.global"/>

</applicationConfigurable>


How can I ensure that the first configurable (com.my.settings.ProjectSettingsConfigurable) is per project while the second stays per application?


0
4 comments

What do you mean by mix? What does this nesting means?

There are <applcationConfigurable> and <projectConfigurable> extension points.

0

Hey thanks for answering.

I mean, if I add

<applicationConfigurable groupId="project" groupWeight="120" instance="com.my.settings.MySettings"
id="MySettings" displayName="MySettings" order="last">

<configurable instance="com.my.settings.ProjectSettingsConfigurable"
id="reference.com.my.settings.project"
bundle="messages.MySettingsBundle" key="com.my.settings.project"/>

<configurable instance="com.my.settings.GlobalSettingsConfigurable"
id="reference.com.my.settings.global"
bundle="messages.MySettingsBundle" key="com.my.settings.global"/>

</applicationConfigurable>

Then a single tab MySettings will be shown under which two tabs for the two configurable will be shown.

How can I have under MySettings a project configurable tab and an application configurable tab?

0
<applicationConfigurable groupId="project" groupWeight="120" instance="com.my.settings.MySettings"
                         id="MySettings" displayName="MySettings" order="last"/>

<projectConfigurable instance="com.my.settings.ProjectSettingsConfigurable"
                     id="reference.com.my.settings.project"
                     parentId="MySettings"
                     bundle="messages.MySettingsBundle" key="com.my.settings.project"/>

<applicationConfigurable instance="com.my.settings.GlobalSettingsConfigurable"
                         id="reference.com.my.settings.global"
                         parentId="MySettings"
                         bundle="messages.MySettingsBundle" key="com.my.settings.global"/>

You can use groupWeight=to control order of nested configurable elements within the parent.

0

Ah, that's it! Easy!

Thanks a lot

0

Please sign in to leave a comment.