Link to facet editor

Answered

We're proxying a setting from a module's facet in the deployment run config editor.

If the user wants to edit that setting, we want to add a link to the facet in the editor so they can edit it in the facet editor, instead of in the deployment one.

Looking at one example from DeployToServerSettingsEditor.java, ShowSettingsUtil is being used. However, this requires a facet configurable, and after looking at the source for a while, it's not trivial how to get that facet configurable.

The question: what is the best way to add this link to the editor?

Thanks a lot,

joão

0
2 comments
Official comment

com.intellij.openapi.roots.ui.configuration.ModulesConfigurator#showFacetSettingsDialog(Facet, tabName) is another possibility

Avatar
Permanently deleted user

That works! Thanks a bunch

0

Please sign in to leave a comment.