/******************************************************************************* * Copyright (c) 2013 GoPivotal, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * GoPivotal, Inc. - initial API and implementation *******************************************************************************/ package org.springframework.ide.eclipse.boot.wizard.guides; import org.eclipse.swt.widgets.Composite; import org.springsource.ide.eclipse.commons.livexp.core.LiveExpression; import org.springsource.ide.eclipse.commons.livexp.core.ValidationResult; import org.springsource.ide.eclipse.commons.livexp.ui.IPageWithSections; import org.springsource.ide.eclipse.commons.livexp.ui.WizardPageSection; /** * Section that doesn't actually contribute any widgets to the page. * It only contributes validation logic to the overall page Validator. * * @author Kris De Volder */ public class ValidatorSection extends WizardPageSection { private LiveExpression<ValidationResult> validator; public ValidatorSection(IPageWithSections owner, LiveExpression<ValidationResult> validator) { super(owner); this.validator = validator; } @Override public LiveExpression<ValidationResult> getValidator() { return validator; } @Override public void createContents(Composite page) { //Nothing! } }