Opening the Intellij Settings and Project structure dialogs from code

Hi all,

I'm trying to open the main IntelliJ Settings and the Project Structure dialogs from my plugin code because I want to give the user a quick link to open the correct screen in case a critical setting was not filled in.
I couldn't immediately figure out how to do this, and on top of that I want to navigate to the project settings subscreen for my plugin when the error is in the Settings, and the correct facet editor for the correct module in case of an error in the Project Structure dialog.

Can anyone point me in the right direction?

Thanks!

Guy

5 comments
Comment actions Permalink

Try something like this :


Sylvain

0
Comment actions Permalink

That was exactly what I needed!

Merci beaucoup! ;)

0
Comment actions Permalink

This works perfectly for the project level settings.

Sadly my facet configuration does not implement Configurable and I also want to be able to open that through code.

Does anyone know of a way to open the facet configuration UI when its configuration just implements FacetConfiguration?

Guy

0
Comment actions Permalink

Hi,

If anyone is looking for the solution, then I got it done by using:

ModulesConfigurator.showFacetSettingsDialog(facet, "the tab name(or null)");

Took me lot of time to track this util method down, so hopefully someone will benefit from this info in the future.

1
Comment actions Permalink

Thanks for posting an update with this.  I know it's been a solid year since you did so, but I just needed exactly this and your last response gave me exactly what I needed!

0

Please sign in to leave a comment.