How to open Database Menu or Dialog programmatically?

已回答

I Have a Button, how can I click  my button to open Database New Menu or Dialog?

I want invoke this menu by my button or

just open the dialog.

I tried ShowSettingsUtil#showSettingsDialog but didn't find  the Configurable class.

0

Hi,

You can invoke it programmatically with com.intellij.database.view.ui.DataSourceManagerDialog.showDialog().

You can also invoke the action DatabaseView.LinkedDataSource.CreateDataSource programmatically (with com.intellij.openapi.actionSystem.ex.ActionUtil.invokeAction()).

Please note these methods are not a part of Open API, and they may be changed without preserving backward compatibility.

0

Thanks! I will remember your reminder.

0

请先登录再写评论。