1 /*******************************************************************************
 
   2  * Copyright (c) 2000, 2003 IBM Corporation and others.
 
   3  * All rights reserved. This program and the accompanying materials 
 
   4  * are made available under the terms of the Common Public License v1.0
 
   5  * which accompanies this distribution, and is available at
 
   6  * http://www.eclipse.org/legal/cpl-v10.html
 
   9  *     IBM Corporation - initial API and implementation
 
  10  *******************************************************************************/
 
  11 package net.sourceforge.phpdt.internal.ui.wizards;
 
  13 import net.sourceforge.phpdt.internal.ui.PHPUiImages;
 
  14 import net.sourceforge.phpdt.ui.wizards.NewClassWizardPage;
 
  15 import net.sourceforge.phpeclipse.PHPeclipsePlugin;
 
  17 import org.eclipse.core.runtime.CoreException;
 
  18 import org.eclipse.core.runtime.IProgressMonitor;
 
  21 public class NewClassCreationWizard extends NewElementWizard {
 
  23         private NewClassWizardPage fPage;
 
  25         public NewClassCreationWizard() {
 
  27                 setDefaultPageImageDescriptor(PHPUiImages.DESC_WIZBAN_NEWCLASS);
 
  28                 setDialogSettings(PHPeclipsePlugin.getDefault().getDialogSettings());
 
  29                 setWindowTitle(NewWizardMessages.getString("NewClassCreationWizard.title")); //$NON-NLS-1$
 
  33          * @see Wizard#createPages
 
  35         public void addPages() {
 
  37                 fPage= new NewClassWizardPage();
 
  39                 fPage.init(getSelection());
 
  44          * @see org.eclipse.jdt.internal.ui.wizards.NewElementWizard#finishPage(org.eclipse.core.runtime.IProgressMonitor)
 
  46         protected void finishPage(IProgressMonitor monitor) throws InterruptedException, CoreException {
 
  47 //              fPage.createType(monitor); // use the full progress monitor
 
  48 //              ICompilationUnit cu= JavaModelUtil.toOriginal(fPage.getCreatedType().getCompilationUnit());
 
  50 //                      IResource resource= cu.getResource();
 
  51 //                      selectAndReveal(resource);
 
  52 //                      openResource((IFile) resource);
 
  57          * @see org.eclipse.jface.wizard.IWizard#performFinish()
 
  59         public boolean performFinish() {
 
  60 //              warnAboutTypeCommentDeprecation();
 
  61                 return super.performFinish();