| /******************************************************************************* |
| * Copyright (c) 2011, 2012 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: |
| * Oracle - initial API and implementation |
| ******************************************************************************/ |
| package org.eclipse.jpt.jpa.ui.internal.wizards.conversion.java; |
| import org.eclipse.jface.wizard.Wizard; |
| import org.eclipse.jpt.jpa.ui.JptJpaUiPlugin; |
| import org.eclipse.jpt.jpa.ui.internal.JptUiIcons; |
| import org.eclipse.jpt.jpa.ui.internal.JptUiMessages; |
| |
| public class JavaMetadataConversionWizard |
| extends Wizard |
| { |
| private final JavaMetadataConversionWizardPage page; |
| |
| |
| public JavaMetadataConversionWizard(JavaMetadataConversionWizardPage page) { |
| super(); |
| if (page == null) { |
| throw new NullPointerException(); |
| } |
| this.page = page; |
| this.setWindowTitle(JptUiMessages.JavaMetadataConversionWizard_title); |
| this.setDefaultPageImageDescriptor(JptJpaUiPlugin.getImageDescriptor(JptUiIcons.JPA_FILE_WIZ_BANNER)); |
| } |
| |
| @Override |
| public void addPages() { |
| this.addPage(this.page); |
| } |
| |
| @Override |
| public boolean performFinish() { |
| return this.page.performFinish(); |
| } |
| } |