How to open Setting dialog programmatically?

Hi Team,
  How to open setting dialog focus on to "HTTP Proxy". What API should I use?

Thanks,
Navin

5 comments
Comment actions Permalink

I'm interested in this as well. Previously I did this, which no longer works:

OptionsEditor optionsEditor = OptionsEditor.KEY.getData(DataManager.getInstance().getDataContext(mainPanel));
if (optionsEditor != null) {
  KeymapPanel keymapConfig = ConfigurableExtensionPointUtil.findApplicationConfigurable(KeymapPanel.class);
  SearchableConfigurable configurable = optionsEditor.findConfigurableById(keymapConfig.getId());
  if (configurable != null) {
    optionsEditor.select(configurable);
  }
}


The OptionsEditor.KEY.getData() call now returns null.

0
Comment actions Permalink

Use ShowSettingsUtil.getInstance().showSettingsDialog(project, nameToSelect).


2
Comment actions Permalink

I think I tried to use that when I developed my previous code - the issue is I don't have a Project available. Can I pass null if I'm opening an ApplicationConfigurable?

0
Comment actions Permalink

Actually, I just tried this - it seems to work, and looking in the code it looks like the default project is used if null is passed.

0

Please sign in to leave a comment.