Can I open my plugin settings programmatically?

Is it possible to open the plugin settings (accessible through File->Settings) through java code?

thanks
-claude

7 comments

Hello Claude,

CL> Is it possible to open the plugin settings (accessible through
CL> File->Settings) through java code?

Yes, you must implement Application or Project level component that also
implements Configurable interface.

Thanks!
--
Alexey Efimov, Java Developer
Tops BI
http://www.topsbi.ru

0

Claude Leuchter wrote:

Is it possible to open the plugin settings (accessible through File->Settings) through java code?

thanks
-claude


Yep,
something like that:
ShowSettingsUtil.editConfigurable(project, YourConfigurable.getInstance());

--
Maxim Shafirov
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0

Hello Maxim,

MS> something like that:
MS> ShowSettingsUtil.editConfigurable(project,
MS> YourConfigurable.getInstance());

Oops, sounds like my answer not in target :)))

Thanks!
--
Alexey Efimov, Java Developer
Tops BI
http://www.topsbi.ru

0


Hi,

I've noticed this is not available in 4.5.4 - is there another way to do
this in 4.5.4?

Maxim Shafirov (JetBrains) wrote:

Claude Leuchter wrote:

>> Is it possible to open the plugin settings (accessible through
>> File->Settings) through java code?
>>
>> thanks
>> -claude


Yep,
something like that:
ShowSettingsUtil.editConfigurable(project, YourConfigurable.getInstance());

0

Nope, unless you implement all the surrounding stuff. I mean it's nothing
tricky to build a modal dialog (DialogWrapper) around configurable.
Pressing ok calles Configurable.apply(). Before dialog is shown - call Configurable.reset(),
use Configuarble.getComponent() for dialog's content pane.

-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"

Hi,

I've noticed this is not available in 4.5.4 - is there another way to
do this in 4.5.4?

Maxim Shafirov (JetBrains) wrote:

>> Claude Leuchter wrote:
>>
>>> Is it possible to open the plugin settings (accessible through
>>> File->Settings) through java code?
>>>
>>> thanks
>>> -claude
>> Yep,
>> something like that:
>> ShowSettingsUtil.editConfigurable(project,
>> YourConfigurable.getInstance());


0

ok, 10x!

Maxim Shafirov (JetBrains) wrote:

Nope, unless you implement all the surrounding stuff. I mean it's
nothing tricky to build a modal dialog (DialogWrapper) around configurable.
Pressing ok calles Configurable.apply(). Before dialog is shown - call
Configurable.reset(), use Configuarble.getComponent() for dialog's
content pane.

-------------------
Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"

>> Hi,
>>
>> I've noticed this is not available in 4.5.4 - is there another way to
>> do this in 4.5.4?
>>
>> Maxim Shafirov (JetBrains) wrote:
>>
>>> Claude Leuchter wrote:
>>>
>>>> Is it possible to open the plugin settings (accessible through
>>>> File->Settings) through java code?
>>>>
>>>> thanks
>>>> -claude
>>>
>>> Yep,
>>> something like that:
>>> ShowSettingsUtil.editConfigurable(project,
>>> YourConfigurable.getInstance());


0

Please sign in to leave a comment.