GT-3459 - Updated parentless dialogs to use a visible hidden parent

This commit is contained in:
dragonmacher 2020-01-17 18:51:32 -05:00
parent 6ae0c1ce23
commit e25c7d881a
9 changed files with 69 additions and 32 deletions

View file

@ -151,11 +151,15 @@ public class ApplicationProperties extends Properties {
*
* @param name The application's name.
* @param version The application's version.
* @param releaseName The application's release name.
*/
public ApplicationProperties(String name, String version) {
public ApplicationProperties(String name, String version, String releaseName) {
Objects.requireNonNull(name, "Application name cannot be null");
setProperty(APPLICATION_NAME_PROPERTY, name);
Objects.requireNonNull(releaseName, "Release name cannot be null");
setProperty(RELEASE_NAME_PROPERTY, releaseName);
if (version != null) {
setProperty(APPLICATION_VERSION_PROPERTY, version);
}
@ -245,7 +249,7 @@ public class ApplicationProperties extends Properties {
}
return appVersion;
}
/**
* Gets the application's release name.
*

View file

@ -195,8 +195,10 @@ public class ApplicationVersion implements Comparable<ApplicationVersion> {
patch = parse(versionParts[2], "patch");
}
else {
String plural = version.length() > 1 ? "s" : "";
throw new IllegalArgumentException(
"Version has " + versionParts.length + " parts but 2 or 3 are required");
"Version '" + version + "' has " + versionParts.length +
" part" + plural + " but 2 or 3 are required");
}
}