1 11 package org.eclipse.pde.internal.ui.wizards.provisioner; 12 13 import java.io.File ; 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 [] 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"); addPage(fPage); 44 super.addPages(); 45 } 46 47 } 48 | Popular Tags |