[248424] Should be able to skip opening the editor after JSP creation using NewJSPWizard
diff --git a/bundles/org.eclipse.jst.jsp.ui/src/org/eclipse/jst/jsp/ui/internal/wizard/NewJSPWizard.java b/bundles/org.eclipse.jst.jsp.ui/src/org/eclipse/jst/jsp/ui/internal/wizard/NewJSPWizard.java
index 1fd2a2b..7981f66 100644
--- a/bundles/org.eclipse.jst.jsp.ui/src/org/eclipse/jst/jsp/ui/internal/wizard/NewJSPWizard.java
+++ b/bundles/org.eclipse.jst.jsp.ui/src/org/eclipse/jst/jsp/ui/internal/wizard/NewJSPWizard.java
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2005, 2006 IBM Corporation and others.
+ * Copyright (c) 2005, 2008 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -43,6 +43,13 @@
 	private NewJSPTemplatesWizardPage fNewFileTemplatesPage;
 	private IStructuredSelection fSelection;
 
+	private boolean fShouldOpenEditorOnFinish = true;
+
+	// https://bugs.eclipse.org/bugs/show_bug.cgi?id=248424
+	public void setOpenEditorOnFinish(boolean openEditor) {
+		this.fShouldOpenEditorOnFinish = openEditor;
+	}
+	
 	public void addPages() {
 		fNewFilePage = new NewJSPFileWizardPage("JSPWizardNewFileCreationPage", new StructuredSelection(IDE.computeSelectedResources(fSelection))); //$NON-NLS-1$ 
 		fNewFilePage.setTitle(JSPUIMessages._UI_WIZARD_NEW_HEADING);
@@ -135,7 +142,8 @@
 			}
 
 			// open the file in editor
-			openEditor(file);
+			if (fShouldOpenEditorOnFinish)
+				openEditor(file);
 
 			// everything's fine
 			performedOK = true;
diff --git a/bundles/org.eclipse.jst.jsp.ui/templates/jspdefault-templates.properties b/bundles/org.eclipse.jst.jsp.ui/templates/jspdefault-templates.properties
index 3146f83..c629a8b 100644
--- a/bundles/org.eclipse.jst.jsp.ui/templates/jspdefault-templates.properties
+++ b/bundles/org.eclipse.jst.jsp.ui/templates/jspdefault-templates.properties
@@ -57,4 +57,4 @@
 
 Templates.simpletagx.name=New TagX File
 Templates.simpletagx.desc=New JSP TagX File
-Templates.simpletagx.content=<jsp:directive.tag language="java" pageEncoding="${encoding}">\n
+Templates.simpletagx.content=<jsp:directive.tag language="java" pageEncoding="${encoding}"/>\n