KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > ui > wizards > provisioner > FileSystemProvisionerWizard


1 /*******************************************************************************
2  * Copyright (c) 2006, 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.pde.internal.ui.wizards.provisioner;
12
13 import java.io.File JavaDoc;
14
15 import org.eclipse.jface.wizard.Wizard;
16 import org.eclipse.pde.internal.ui.PDEPlugin;
17 import org.eclipse.pde.internal.ui.PDEPluginImages;
18 import org.eclipse.pde.internal.ui.PDEUIMessages;
19 import org.eclipse.pde.ui.IProvisionerWizard;
20
21 public class FileSystemProvisionerWizard extends Wizard implements IProvisionerWizard {
22     
23     private DirectorySelectionPage fPage = null;
24     private File JavaDoc[] 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 JavaDoc[] 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 }
48
Popular Tags