blob: 9fa2b1ddfd55ba5adb5a1d05bbb2625b6304380d [file] [log] [blame]
package org.eclipse.jst.server.generic.ui.internal;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
public class GenericServerComposite extends Composite {
private GenericServerCompositeDecorator[] fDecorators;
public GenericServerComposite(Composite parent, GenericServerCompositeDecorator[] decorators) {
super(parent, SWT.NONE);
fDecorators = decorators;
GridLayout layout =new GridLayout(3,false);
setLayout(layout);
setLayoutData(new GridData(GridData.FILL_BOTH));
createControl();
}
private void createControl(){
for (int i = 0; fDecorators!= null && i < fDecorators.length; i++) {
fDecorators[i].decorate(this);
}
}
}