blob: 1b008c2590f4bcb3b43a55e6b3da3a334e649031 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011 BSI Business Systems Integration AG.
* 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:
* BSI Business Systems Integration AG - initial API and implementation
******************************************************************************/
package org.eclipse.scout.rt.ui.swt;
import org.eclipse.swt.widgets.Composite;
public class DefaultValidateRoot implements IValidateRoot {
private final Composite m_root;
public DefaultValidateRoot(Composite root) {
m_root = root;
}
@Override
public void validate() {
if (m_root != null && !m_root.isDisposed()) {
m_root.layout(true, true);
}
}
@Override
public Composite getComposite() {
return m_root;
}
}