Search in sources :

Example 1 with ProjectJdksEditor

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);
    }
}
Also used : ProjectJdksEditor(com.intellij.openapi.projectRoots.ui.ProjectJdksEditor) Sdk(com.intellij.openapi.projectRoots.Sdk)

Example 2 with ProjectJdksEditor

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);
        }
    });
}
Also used : ProjectJdksEditor(com.intellij.openapi.projectRoots.ui.ProjectJdksEditor)

Aggregations

ProjectJdksEditor (com.intellij.openapi.projectRoots.ui.ProjectJdksEditor)2 Sdk (com.intellij.openapi.projectRoots.Sdk)1