use of com.intellij.openapi.projectRoots.ui.ProjectJdksEditor in project intellij-community by JetBrains.
the class JdkChooserPanel method editJdkTable.
public void editJdkTable() {
ProjectJdksEditor editor = new ProjectJdksEditor((Sdk) myList.getSelectedValue(), myProject != null ? myProject : ProjectManager.getInstance().getDefaultProject(), myList);
if (editor.showAndGet()) {
Sdk selectedJdk = editor.getSelectedJdk();
updateList(selectedJdk, null);
}
}
use of com.intellij.openapi.projectRoots.ui.ProjectJdksEditor in project intellij-plugins by JetBrains.
the class DesignerApplicationLauncher method notifyNoSuitableSdkToLaunch.
private void notifyNoSuitableSdkToLaunch() {
String message = FlashUIDesignerBundle.message(SystemInfo.isLinux ? "no.sdk.to.launch.designer.linux" : "no.sdk.to.launch.designer");
DesignerApplicationManager.notifyUser(debug, message, module.getProject(), id -> {
if ("edit".equals(id)) {
new ProjectJdksEditor(null, module.getProject(), WindowManager.getInstance().suggestParentWindow(myProject)).show();
} else {
LOG.error("unexpected id: " + id);
}
});
}
Aggregations