blob: d26148b8e97d1cbb2460389f7e78460bdfbf8973 [file] [log] [blame]
/******************************************************************************
* Copyright (c) 2010 Oracle
* 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:
* Konstantin Komissarchik - initial implementation and ongoing maintenance
******************************************************************************/
package org.eclipse.wst.common.project.facet.ui.internal.util;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
/**
* @author <a href="mailto:konstantin.komissarchik@oracle.com">Konstantin Komissarchik</a>
*/
public class EnhancedComposite
extends Composite
{
public EnhancedComposite( final Composite parent )
{
this( parent, SWT.NONE );
}
public EnhancedComposite( final Composite parent,
final int style )
{
super( parent, style );
}
@Override
public void setEnabled( boolean enabled )
{
super.setEnabled( enabled );
for( Control child : getChildren() )
{
child.setEnabled( enabled );
}
}
}