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.
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());
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.
>> 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());
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
Claude Leuchter wrote:
Yep,
something like that:
ShowSettingsUtil.editConfigurable(project, YourConfigurable.getInstance());
--
Maxim Shafirov
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"
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
thanks a lot!
-claude
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:
>> Is it possible to open the plugin settings (accessible through
>> File->Settings) through java code?
>>
>> thanks
>> -claude
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!"
>> 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());
ok, 10x!
Maxim Shafirov (JetBrains) wrote:
>> 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());