Set<ValidationProblem> validationProblems = validate(element);
return validationProblems == null || validationProblems.size() == 0;
}
public static Set<ValidationProblem> validate(IWebflowModelElement element) {
IWebflowState webflowState = WebflowModelUtils.getWebflowState(element, true);
if (webflowState != null) {
IWebflowConfig config = (IWebflowConfig) webflowState.getElementParent();
NoMarkerCreatingWebflowValidator validator = new NoMarkerCreatingWebflowValidator();
Set<IResource> affectedResources = new HashSet<IResource>();
affectedResources.add(config.getElementResource());
try {
validator.validate(affectedResources, IncrementalProjectBuilder.INCREMENTAL_BUILD,