public void addPages() {

    mainPage = new DataServiceCreationWizadPage();
    addPage(mainPage);
    driveConPage = new DriverConnDetailPage();
    addPage(driveConPage);
    dbdPage = new DBDetailWizarPage();
    addPage(dbdPage);
    serviceGenModePage = new ServiceGenModeWizardPage(selection);
    addPage(serviceGenModePage);
    csvPage = new CSVWizardPage();
    addPage(csvPage);
    xlsPage = new ExelWizardPage();
    addPage(xlsPage);
    gspPage = new GSpreadWizardPage();
    addPage(gspPage);
    newFileCreationPage = new DsModelWizardNewFileCreationPage("file location", selection);
    addPage(newFileCreationPage);

    if (selection != null && !selection.isEmpty()) {
      // Get the resource...

      Object selectedElement = selection.iterator().next();
      if (selectedElement instanceof IResource) {
        // Get the resource parent, if its a file.

        IResource selectedResource = (IResource) selectedElement;
        if (selectedResource.getType() == IResource.FILE) {
          selectedResource = selectedResource.getParent();
        }

        // This gives us a directory...

        if (selectedResource instanceof IFolder || selectedResource instanceof IProject) {
          // Set this for the container.

          newFileCreationPage.setContainerFullPath(selectedResource.getFullPath());

          // Make up a unique new name here.

          String defaultModelBaseFilename =
              DsEditorPlugin.INSTANCE.getString("_UI_DsEditorFilenameDefaultBase");
          String defaultModelFilenameExtension = FILE_EXTENSIONS.get(0);
          String modelFilename = defaultModelBaseFilename + "." + defaultModelFilenameExtension;
          for (int i = 1; ((IContainer) selectedResource).findMember(modelFilename) != null; ++i) {
            modelFilename = defaultModelBaseFilename + i + "." + defaultModelFilenameExtension;
          }
          newFileCreationPage.setFileName(modelFilename);
        }
      }
    }
  }
 public IFile getModelFile() {
   return newFileCreationPage.getModelFile();
 }