List of usage examples for org.springframework.ide.eclipse.boot.wizard.content BuildType displayName
String displayName
To view the source code for org.springframework.ide.eclipse.boot.wizard.content BuildType displayName.
Click Source Link
From source file:org.springframework.ide.eclipse.boot.wizard.content.CodeSet.java
public ValidationResult validateBuildType(BuildType buildType) throws UIThreadDownloadDisallowed { List<BuildType> validBuildTypes = getBuildTypes(); if (validBuildTypes.contains(buildType)) { return ValidationResult.OK; }//from w w w . j a va 2 s . c om //Not valid formulate a nice explanation IPath expectedScript = buildType.getBuildScript(); if (expectedScript != null) { return ValidationResult .error("Can't use '" + buildType.displayName() + "': There is no '" + expectedScript + "'"); } else { StringBuilder message = new StringBuilder("Should be imported as "); boolean first = true; for (BuildType bt : validBuildTypes) { if (!first) { message.append(" or "); } message.append("'" + bt.displayName() + "'"); first = false; } return ValidationResult.error(message.toString()); } }