X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/wizards/NewClassCreationWizard.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/wizards/NewClassCreationWizard.java index 23bf845..dc7cfda 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/wizards/NewClassCreationWizard.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/wizards/NewClassCreationWizard.java @@ -21,7 +21,6 @@ import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IProgressMonitor; - public class NewClassCreationWizard extends NewElementWizard { private NewClassWizardPage fPage; @@ -30,38 +29,44 @@ public class NewClassCreationWizard extends NewElementWizard { super(); setDefaultPageImageDescriptor(PHPUiImages.DESC_WIZBAN_NEWCLASS); setDialogSettings(PHPeclipsePlugin.getDefault().getDialogSettings()); - setWindowTitle(NewWizardMessages.getString("NewClassCreationWizard.title")); //$NON-NLS-1$ + setWindowTitle(NewWizardMessages + .getString("NewClassCreationWizard.title")); //$NON-NLS-1$ } /* * @see Wizard#createPages - */ + */ public void addPages() { super.addPages(); - fPage= new NewClassWizardPage(); + fPage = new NewClassWizardPage(); addPage(fPage); fPage.init(getSelection()); - } - + } - /* (non-Javadoc) - * @see org.eclipse.jdt.internal.ui.wizards.NewElementWizard#finishPage(org.eclipse.core.runtime.IProgressMonitor) + /* + * (non-Javadoc) + * + * @see net.sourceforge.phpdt.internal.ui.wizards.NewElementWizard#finishPage(org.eclipse.core.runtime.IProgressMonitor) */ - protected void finishPage(IProgressMonitor monitor) throws InterruptedException, CoreException { + protected void finishPage(IProgressMonitor monitor) + throws InterruptedException, CoreException { fPage.createType(monitor); // use the full progress monitor - ICompilationUnit cu= JavaModelUtil.toOriginal(fPage.getCreatedType().getCompilationUnit()); + ICompilationUnit cu = JavaModelUtil.toOriginal(fPage.getCreatedType() + .getCompilationUnit()); if (cu != null) { - IResource resource= cu.getResource(); + IResource resource = cu.getResource(); selectAndReveal(resource); openResource((IFile) resource); - } + } } - - /* (non-Javadoc) + + /* + * (non-Javadoc) + * * @see org.eclipse.jface.wizard.IWizard#performFinish() */ public boolean performFinish() { -// warnAboutTypeCommentDeprecation(); + // warnAboutTypeCommentDeprecation(); return super.performFinish(); }