/******************************************************************************* * Copyright (c) 2003, 2006 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 *******************************************************************************/ package org.eclipse.jst.j2ee.ui.project.facet; import org.eclipse.jface.dialogs.IDialogSettings; import org.eclipse.jst.j2ee.internal.actions.IJ2EEUIContextIds; import org.eclipse.jst.j2ee.internal.plugin.J2EEUIMessages; import org.eclipse.jst.j2ee.internal.plugin.J2EEUIPlugin; import org.eclipse.jst.j2ee.internal.plugin.J2EEUIPluginIcons; import org.eclipse.swt.widgets.Composite; import org.eclipse.wst.common.componentcore.internal.util.IModuleConstants; import org.eclipse.wst.common.frameworks.datamodel.IDataModel; import org.eclipse.wst.web.ui.internal.wizards.DataModelFacetCreationWizardPage; public class EarProjectFirstPage extends DataModelFacetCreationWizardPage { public EarProjectFirstPage(IDataModel dataModel, String pageName) { super(dataModel, pageName); setTitle(J2EEUIMessages.getResourceString(J2EEUIMessages.EAR_COMPONENT_MAIN_PG_TITLE)); setDescription(J2EEUIMessages.getResourceString(J2EEUIMessages.EAR_COMPONENT_MAIN_PG_DESC)); setImageDescriptor(J2EEUIPlugin.getDefault().getImageDescriptor(J2EEUIPluginIcons.EAR_WIZ_BANNER)); setInfopopID(IJ2EEUIContextIds.NEW_EAR_WIZARD_P1); } @Override protected IDialogSettings getDialogSettings() { return J2EEUIPlugin.getDefault().getDialogSettings(); } @Override protected String getModuleTypeID() { return IModuleConstants.JST_EAR_MODULE; } @Override protected Composite createTopLevelComposite(Composite parent) { final Composite top = super.createTopLevelComposite(parent); createWorkingSetGroupPanel(top, new String[] { RESOURCE_WORKING_SET }); return top; } }