use of nl.tudelft.watchdog.intellij.ui.wizards.userregistration.UserProjectRegistrationWizard in project watchdog by TestRoots.
the class WatchDogStartUp method checkWhetherToDisplayUserProjectRegistrationWizard.
/**
* Checks whether there is a registered WatchDog user
*/
private void checkWhetherToDisplayUserProjectRegistrationWizard() {
Preferences preferences = Preferences.getInstance();
ProjectPreferenceSetting projectSetting = preferences.getOrCreateProjectSetting(project.getName());
if (!WatchDogUtils.isEmpty(WatchDogGlobals.getPreferences().getUserId()) || (projectSetting.startupQuestionAsked && !projectSetting.enableWatchdog)) {
return;
}
UserProjectRegistrationWizard wizard = new UserProjectRegistrationWizard("User and Project Registration", project);
wizard.show();
if (wizard.getExitCode() == DialogWrapper.CANCEL_EXIT_CODE) {
if (Messages.YES == Messages.showYesNoDialog(WATCHDOG_UNREGISTERED_WARNING, "WatchDog is not registered!", Messages.getQuestionIcon())) {
makeSilentRegistration();
} else {
userProjectRegistrationCancelled = true;
preferences.registerProjectUse(project.getName(), false);
}
}
}
use of nl.tudelft.watchdog.intellij.ui.wizards.userregistration.UserProjectRegistrationWizard in project watchdog by TestRoots.
the class ProjectCreatedEndingStep method createPageContent.
private void createPageContent(JPanel parent) {
if (isThisProjectWizard()) {
createProjectRegistrationSummary(parent);
} else {
UserProjectRegistrationWizard wizard = (UserProjectRegistrationWizard) getWizard();
UserRegistrationStep userRegistrationStep = wizard.userRegistrationStep;
if (wizard.userWelcomeStep.getRegisterNewId()) {
createDebugSurveyInfo(parent);
userRegistrationStep.createUserRegistrationSummary(parent);
}
createProjectRegistrationSummary(parent);
}
}
Aggregations