/******************************************************************************* * Copyright (c) 2009 IBM Corporation and others. * 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: * IBM Corporation - initial API and implementation * Zend Technologies *******************************************************************************/ package org.eclipse.php.server.ui.wizards; import org.eclipse.php.internal.server.ui.ServerCompositeFragment; import org.eclipse.php.internal.server.ui.ServerWizardFragment; import org.eclipse.php.internal.ui.wizards.CompositeFragment; import org.eclipse.php.internal.ui.wizards.IControlHandler; import org.eclipse.php.internal.ui.wizards.WizardFragment; import org.eclipse.php.ui.wizards.ICompositeFragmentFactory; import org.eclipse.swt.widgets.Composite; /** * Basic composite fragment factory supplies factory methods for creating basic * WizardFragment page and basic ServerRuntimeComposite. */ public class BasicCompositeFragmentFactory implements ICompositeFragmentFactory { /* * (non-Javadoc) * * @see org.eclipse.php.internal.server.apache.ui.wizard. * ICompositeFragmentFactory #createWizardFragment() */ public WizardFragment createWizardFragment() { return new ServerWizardFragment(); } /* * (non-Javadoc) * * @see org.eclipse.php.internal.server.apache.ui.wizard. * ICompositeFragmentFactory * #createComposite(org.eclipse.swt.widgets.Composite, * org.eclipse.php.internal.server.apache.ui.IControlHandler) */ public CompositeFragment createComposite(Composite parent, IControlHandler controlHandler) { return new ServerCompositeFragment(parent, controlHandler, true); } }