private String newSessionId() { File projectFile = myProject.getProjectFile(); return (projectFile != null ? projectFile.getAbsolutePath().hashCode() : System.identityHashCode(myProject)) + Long.toHexString(System.currentTimeMillis()); }
@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; }