compact the dereferencing operator in the formatter
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / ui / wizards / NewClassCreationWizard.java
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
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 package net.sourceforge.phpdt.internal.ui.wizards;
12
13 import net.sourceforge.phpdt.internal.ui.PHPUiImages;
14 import net.sourceforge.phpdt.ui.wizards.NewClassWizardPage;
15 import net.sourceforge.phpeclipse.PHPeclipsePlugin;
16
17 import org.eclipse.core.runtime.CoreException;
18 import org.eclipse.core.runtime.IProgressMonitor;
19
20
21 public class NewClassCreationWizard extends NewElementWizard {
22
23         private NewClassWizardPage fPage;
24
25         public NewClassCreationWizard() {
26                 super();
27                 setDefaultPageImageDescriptor(PHPUiImages.DESC_WIZBAN_NEWCLASS);
28                 setDialogSettings(PHPeclipsePlugin.getDefault().getDialogSettings());
29                 setWindowTitle(NewWizardMessages.getString("NewClassCreationWizard.title")); //$NON-NLS-1$
30         }
31
32         /*
33          * @see Wizard#createPages
34          */     
35         public void addPages() {
36                 super.addPages();
37                 fPage= new NewClassWizardPage();
38                 addPage(fPage);
39                 fPage.init(getSelection());
40         }       
41
42
43         /* (non-Javadoc)
44          * @see org.eclipse.jdt.internal.ui.wizards.NewElementWizard#finishPage(org.eclipse.core.runtime.IProgressMonitor)
45          */
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());
49 //              if (cu != null) {
50 //                      IResource resource= cu.getResource();
51 //                      selectAndReveal(resource);
52 //                      openResource((IFile) resource);
53 //              }       
54         }
55         
56         /* (non-Javadoc)
57          * @see org.eclipse.jface.wizard.IWizard#performFinish()
58          */
59         public boolean performFinish() {
60 //              warnAboutTypeCommentDeprecation();
61                 return super.performFinish();
62         }
63
64 }