blob: 487e2a567025424256425dd1a802fd6419e09035 [file] [log] [blame]
//------------------------------------------------------------------------------
// Copyright (c) 2005, 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 implementation
//------------------------------------------------------------------------------
package org.eclipse.epf.export.xml.wizards;
import org.eclipse.epf.export.ExportPlugin;
import org.eclipse.epf.export.wizards.DestinationCommonPage;
import org.eclipse.epf.export.xml.XmlExportResources;
import org.eclipse.epf.export.xml.services.XmlExportData;
import org.eclipse.jface.wizard.IWizardPage;
/**
* A wizard page that prompts the user for the destination directory of an
* export operation.
*
* @author Jinhua Xi
* @since 1.0
*/
public class ExportXmlDestinationPage extends DestinationCommonPage {
public static final String PAGE_NAME = ExportXmlDestinationPage.class
.getName();
/**
* Creates a new instance.
*/
public ExportXmlDestinationPage(XmlExportData data) {
super(PAGE_NAME, data.llData);
setTitle(XmlExportResources.selectDestinationPage_title);
setDescription(XmlExportResources.selectDestinationPage_desc);
setImageDescriptor(ExportPlugin.getDefault().getImageDescriptor(
"full/wizban/ExportLibraryConfiguration.gif")); //$NON-NLS-1$
}
/**
* @see org.eclipse.jface.wizard.WizardPage#isPageComplete()
*/
public boolean isPageComplete() {
//ExportXmlWizard wizard = (ExportXmlWizard) getWizard();
if (isTextNonEmpty(ctrl_name) && isTextNonEmpty(ctrl_exportPath)) {
saveToDataModel();
return true;
}
return false;
}
public IWizardPage getNextPage() {
return null; // no more page
}
}