Bug 526276 - No way to disable New Project Wizard (Ctrl+N) in case of no perspectives open
Summary: No way to disable New Project Wizard (Ctrl+N) in case of no perspectives open
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 9.4.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-19 12:48 EDT by Krasilnikov OLeg CLA
Modified: 2020-09-04 15:24 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Krasilnikov OLeg CLA 2017-10-19 12:48:40 EDT
When user closes all perspectives, calls to New Project Wizard are not possible, since project creation fails (see trace below).
We can hide NPW menu items, like the following bug recommends:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=228378
But Ctrl+N still works and allows to access ANY New***Wizard.

No way to remove them from Ctrl+N list.


Excception occurs while creating project without any perspective open:
Root exception:
java.lang.NullPointerException	at org.eclipse.cdt.ui.templateengine.processes.OpenFiles.isOpen(OpenFiles.java:69) at org.eclipse.cdt.ui.templateengine.processes.OpenFiles.process(OpenFiles.java:52) at org.eclipse.cdt.core.templateengine.process.Process.process(Process.java:163) at org.eclipse.cdt.core.templateengine.process.ConditionalProcessGroup.process(ConditionalProcessGroup.java:219)	at com.freescale.s32ds.cross.wizard.template.TemplateUtils.runTasks(TemplateUtils.java:160)	at com.freescale.s32ds.cross.wizard.template.TemplateUtils.access$0(TemplateUtils.java:123)	at com.freescale.s32ds.cross.wizard.template.TemplateUtils$1.execute(TemplateUtils.java:107)	at org.eclipse.ui.actions.WorkspaceModifyOperation.lambda$0(WorkspaceModifyOperation.java:107)	at org.eclipse.ui.actions.WorkspaceModifyOperation$$Lambda$115/25463023.run(Unknown Source)	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240)
Comment 1 Patrik Suzzi CLA 2017-10-29 13:32:54 EDT
Moving to CDT