private boolean check() { myError = NewModuleUtil.check( MPSExtentions.DOT_SOLUTION, mySolutionSettings.getSolutionName(), mySolutionSettings.getSolutionLocation()); setErrorText(myError); return myError == null; }
@Nullable public JComponent createCenterPanel() { if (mySolutionSettings == null) { mySolutionSettings = new NewSolutionSettings( (myProject != null ? ((((ProjectEx) ProjectHelper.toIdeaProject(myProject)) .getStateStore() .getStorageScheme() != StorageScheme.DIRECTORY_BASED ? myProject.getProjectFile().getParentFile().getAbsolutePath() : myProject.getProjectFile().getAbsolutePath())) : null)); mySolutionSettings.setListener( new NewSolutionSettings.SolutionSettingsChangedListener() { @Override public void changed() { NewSolutionDialog.this.check(); } }); } return mySolutionSettings; }
@Nullable @Override public JComponent getPreferredFocusedComponent() { return mySolutionSettings.getPreferredFocusedComponent(); }