예제 #1
0
 private boolean check() {
   myError =
       NewModuleUtil.check(
           MPSExtentions.DOT_SOLUTION,
           mySolutionSettings.getSolutionName(),
           mySolutionSettings.getSolutionLocation());
   setErrorText(myError);
   return myError == null;
 }
예제 #2
0
 @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;
 }
예제 #3
0
 @Nullable
 @Override
 public JComponent getPreferredFocusedComponent() {
   return mySolutionSettings.getPreferredFocusedComponent();
 }