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

0

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

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


3

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

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
Avatar
Permanently deleted user

Thank You.

0

请先登录再写评论。