Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 248424
Collapse All | Expand All

(-)src/org/eclipse/jst/jsp/ui/internal/wizard/NewJSPWizard.java (-1 / +8 lines)
Lines 43-48 Link Here
43
	private NewJSPTemplatesWizardPage fNewFileTemplatesPage;
43
	private NewJSPTemplatesWizardPage fNewFileTemplatesPage;
44
	private IStructuredSelection fSelection;
44
	private IStructuredSelection fSelection;
45
45
46
	private boolean openEditorOnFinish = true;
47
48
	public void setOpenEditorOnFinish(boolean openEditor) {
49
		this.openEditorOnFinish = openEditor;
50
	}
51
	
46
	public void addPages() {
52
	public void addPages() {
47
		fNewFilePage = new NewJSPFileWizardPage("JSPWizardNewFileCreationPage", new StructuredSelection(IDE.computeSelectedResources(fSelection))); //$NON-NLS-1$ 
53
		fNewFilePage = new NewJSPFileWizardPage("JSPWizardNewFileCreationPage", new StructuredSelection(IDE.computeSelectedResources(fSelection))); //$NON-NLS-1$ 
48
		fNewFilePage.setTitle(JSPUIMessages._UI_WIZARD_NEW_HEADING);
54
		fNewFilePage.setTitle(JSPUIMessages._UI_WIZARD_NEW_HEADING);
Lines 135-141 Link Here
135
			}
141
			}
136
142
137
			// open the file in editor
143
			// open the file in editor
138
			openEditor(file);
144
			if (openEditorOnFinish)
145
				openEditor(file);
139
146
140
			// everything's fine
147
			// everything's fine
141
			performedOK = true;
148
			performedOK = true;

Return to bug 248424