01: /*******************************************************************************
02: * Copyright (c) 2006, 2007 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.internal.ui.wizards.provisioner;
11:
12: import java.io.File;
13:
14: import org.eclipse.jface.wizard.Wizard;
15: import org.eclipse.pde.internal.ui.PDEPlugin;
16: import org.eclipse.pde.internal.ui.PDEPluginImages;
17: import org.eclipse.pde.internal.ui.PDEUIMessages;
18: import org.eclipse.pde.ui.IProvisionerWizard;
19:
20: public class FileSystemProvisionerWizard extends Wizard implements
21: IProvisionerWizard {
22:
23: private DirectorySelectionPage fPage = null;
24: private File[] fDirs = null;
25:
26: public FileSystemProvisionerWizard() {
27: setDialogSettings(PDEPlugin.getDefault().getDialogSettings());
28: setWindowTitle(PDEUIMessages.FileSystemProvisionerWizard_title);
29: setDefaultPageImageDescriptor(PDEPluginImages.DESC_FILESYSTEM_WIZARD);
30: }
31:
32: public File[] getLocations() {
33: return fDirs;
34: }
35:
36: public boolean performFinish() {
37: fDirs = fPage.getLocations();
38: return true;
39: }
40:
41: public void addPages() {
42: fPage = new DirectorySelectionPage("file system"); //$NON-NLS-1$
43: addPage(fPage);
44: super.addPages();
45: }
46:
47: }
|