mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Bug 228378 - Project Explorer: C project wizards should be only
enabled in C perspective or on C elements
This commit is contained in:
parent
2c49273e16
commit
ddcd04cba9
1 changed files with 28 additions and 2 deletions
|
@ -3767,14 +3767,40 @@
|
|||
menuGroupId="org.eclipse.cdt.ui.newProject"
|
||||
type="new"
|
||||
wizardId="org.eclipse.cdt.ui.wizards.NewCWizard1">
|
||||
<enablement/>
|
||||
<enablement>
|
||||
<or>
|
||||
<with variable="activeWorkbenchWindow.activePerspective">
|
||||
<equals
|
||||
value="org.eclipse.cdt.ui.CPerspective">
|
||||
</equals>
|
||||
</with>
|
||||
<instanceof value="org.eclipse.cdt.core.model.ICElement" />
|
||||
<and>
|
||||
<instanceof value="org.eclipse.core.resources.IProject"/>
|
||||
<test property="org.eclipse.core.resources.projectNature" value="org.eclipse.cdt.core.cnature"/>
|
||||
</and>
|
||||
</or>
|
||||
</enablement>
|
||||
</commonWizard>
|
||||
<commonWizard
|
||||
associatedExtensionId="org.eclipse.cdt.ui.navigator.content"
|
||||
menuGroupId="org.eclipse.cdt.ui.newProject"
|
||||
type="new"
|
||||
wizardId="org.eclipse.cdt.ui.wizards.NewCWizard2">
|
||||
<enablement/>
|
||||
<enablement>
|
||||
<or>
|
||||
<with variable="activeWorkbenchWindow.activePerspective">
|
||||
<equals
|
||||
value="org.eclipse.cdt.ui.CPerspective">
|
||||
</equals>
|
||||
</with>
|
||||
<instanceof value="org.eclipse.cdt.core.model.ICElement" />
|
||||
<and>
|
||||
<instanceof value="org.eclipse.core.resources.IProject"/>
|
||||
<test property="org.eclipse.core.resources.projectNature" value="org.eclipse.cdt.core.cnature"/>
|
||||
</and>
|
||||
</or>
|
||||
</enablement>
|
||||
</commonWizard>
|
||||
<commonWizard
|
||||
associatedExtensionId="org.eclipse.cdt.ui.navigator.content"
|
||||
|
|
Loading…
Add table
Reference in a new issue