import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
-
public class NewClassCreationWizard extends NewElementWizard {
private NewClassWizardPage fPage;
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)
+ /*
+ * (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();
}