How to make a configuration page in 'Settings | other settings' ?

I want to make a configuration page like settings > Editors....

 

So, I searched some open source plug-ins and successfully shown the page.

  • Make a class that implements ApplicationComponent, Configurable 
  • then some codes has been made - getDisplayName(), getComponentName(), createComponent(), isModified(), apply()
  • And i registered this class to plugin.xml file like:
    <application-components>
    <component>
    <implementation-class>common.configure.Configuration</implementation-class>
    </component>
    </application-components>

This page is successfully shown in recent version of IntelliJ IDEA,
But is not shown in Android Studio 1.5 (recent Official release ver.)

Is there any missing code in this? Or manually register that class?

 

2 comments
Comment actions Permalink

Hi,

Registering of Configurable via AppilcationComponent was deprecated and removed in latest release.

To register Configurable, you can add following code in plugin.xml:

<extensions defaultExtensionNs="com.intellij">
  <applicationConfigurable id="some.plugin.configurable" displayName="Plugin Configurable" instance="common.configure.Configurable"/>
</extensions>

 

To move configuration page from "Others" to "Editor" group, you can use parameter

groupId="editor"
0
Comment actions Permalink

Dear Aleksey Pivovarov,

Thank you for your reply!! I tried and confirmed that configuration page is shown!!!!

 

0

Please sign in to leave a comment.