| /******************************************************************************* |
| * Copyright (c) 2003, 2004 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 |
| *******************************************************************************/ |
| /* |
| * Created on Dec 3, 2003 |
| * |
| * To change the template for this generated file go to |
| * Window>Preferences>Java>Code Generation>Code and Comments |
| */ |
| package org.eclipse.jst.j2ee.internal.rar.wizard; |
| |
| import org.eclipse.core.runtime.CoreException; |
| import org.eclipse.core.runtime.IConfigurationElement; |
| import org.eclipse.core.runtime.IExecutableExtension; |
| import org.eclipse.jst.j2ee.internal.jca.archive.operations.RARExportOperation; |
| import org.eclipse.jst.j2ee.internal.jca.operations.RARExportDataModel; |
| import org.eclipse.jst.j2ee.internal.plugin.J2EEUIPlugin; |
| import org.eclipse.jst.j2ee.internal.plugin.J2EEUIPluginIcons; |
| import org.eclipse.jst.j2ee.internal.wizard.J2EEExportWizard; |
| import org.eclipse.ui.IExportWizard; |
| import org.eclipse.wst.common.framework.operation.WTPOperation; |
| import org.eclipse.wst.common.framework.operation.WTPOperationDataModel; |
| |
| /** |
| * @author cbridgha |
| * |
| * To change the template for this generated type comment go to Window>Preferences>Java>Code |
| * Generation>Code and Comments |
| */ |
| public class RARExportWizard extends J2EEExportWizard implements IExecutableExtension, IExportWizard { |
| |
| /** |
| * @param model |
| */ |
| public RARExportWizard(RARExportDataModel model) { |
| super(model); |
| } |
| |
| /** |
| * |
| */ |
| public RARExportWizard() { |
| super(); |
| } |
| |
| /* |
| * (non-Javadoc) |
| * |
| * @see org.eclipse.wst.common.framework.ui.wizard.WTPWizard#createDefaultModel() |
| */ |
| protected WTPOperationDataModel createDefaultModel() { |
| RARExportDataModel aModel = new RARExportDataModel(); |
| return aModel; |
| } |
| |
| /* |
| * (non-Javadoc) |
| * |
| * @see org.eclipse.wst.common.framework.ui.wizard.WTPWizard#createOperation() |
| */ |
| protected WTPOperation createOperation() { |
| return new RARExportOperation(getJCADataModel()); |
| } |
| |
| public void addPages() { |
| addPage(new RARExportPage(getJCADataModel(), MAIN_PG, getCurrentSelection())); |
| } |
| |
| /** |
| * |
| */ |
| private RARExportDataModel getJCADataModel() { |
| return (RARExportDataModel) getJ2EEExportDataModel(); |
| } |
| |
| /* |
| * (non-Javadoc) |
| * |
| * @see org.eclipse.jst.j2ee.internal.ui.wizard.J2EEExportWizard#doInit() |
| */ |
| protected void doInit() { |
| setDefaultPageImageDescriptor(J2EEUIPlugin.getDefault().getImageDescriptor(J2EEUIPluginIcons.JCA_EXPORT_WIZARD_BANNER)); |
| } |
| |
| /* |
| * (non-Javadoc) |
| * |
| * @see org.eclipse.core.runtime.IExecutableExtension#setInitializationData(org.eclipse.core.runtime.IConfigurationElement, |
| * java.lang.String, java.lang.Object) |
| */ |
| public void setInitializationData(IConfigurationElement config, String propertyName, Object data) throws CoreException { |
| } |
| |
| } |