mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
enable native mac file open dialogs in some cases by default
This commit is contained in:
@@ -82,7 +82,7 @@ public class ProjectJdkForModuleStep extends ModuleWizardStep {
|
||||
final JdkListConfigurable jdkConfig = JdkListConfigurable.getInstance(project);
|
||||
final ProjectSdksModel projectJdksModel = projectConfig.getProjectJdksModel();
|
||||
final boolean[] successfullyAdded = new boolean[1];
|
||||
projectJdksModel.doAdd(type, myPanel, new Consumer<Sdk>() {
|
||||
projectJdksModel.doAdd(type, new Consumer<Sdk>() {
|
||||
public void consume(final Sdk jdk) {
|
||||
successfullyAdded[0] = jdkConfig.addJdkNode(jdk, false);
|
||||
myJdkChooser.updateList(jdk, type);
|
||||
|
||||
@@ -36,6 +36,7 @@ import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.ui.TabbedPaneWrapper;
|
||||
import com.intellij.ui.navigation.History;
|
||||
import com.intellij.ui.navigation.Place;
|
||||
import com.intellij.util.Consumer;
|
||||
import com.intellij.util.ui.UIUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
@@ -274,8 +275,13 @@ public class SdkEditor implements Configurable, Place.Navigator {
|
||||
|
||||
private void doSelectHomePath(){
|
||||
final SdkType sdkType = mySdk.getSdkType();
|
||||
final String homePath = SdkConfigurationUtil.selectSdkHome(myHomeComponent, sdkType);
|
||||
doSetHomePath(homePath, sdkType);
|
||||
SdkConfigurationUtil.selectSdkHome(sdkType, new Consumer<String>() {
|
||||
@Override
|
||||
public void consume(final String path) {
|
||||
doSetHomePath(path, sdkType);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
private void doSetHomePath(final String homePath, final SdkType sdkType) {
|
||||
|
||||
Reference in New Issue
Block a user