1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +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:
Vivian Kong 2012-11-01 15:54:10 -04:00
parent 16fe45b0e0
commit 4d0a95ad49

View file

@ -3767,14 +3767,40 @@
menuGroupId="org.eclipse.cdt.ui.newProject" menuGroupId="org.eclipse.cdt.ui.newProject"
type="new" type="new"
wizardId="org.eclipse.cdt.ui.wizards.NewCWizard1"> 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>
<commonWizard <commonWizard
associatedExtensionId="org.eclipse.cdt.ui.navigator.content" associatedExtensionId="org.eclipse.cdt.ui.navigator.content"
menuGroupId="org.eclipse.cdt.ui.newProject" menuGroupId="org.eclipse.cdt.ui.newProject"
type="new" type="new"
wizardId="org.eclipse.cdt.ui.wizards.NewCWizard2"> 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>
<commonWizard <commonWizard
associatedExtensionId="org.eclipse.cdt.ui.navigator.content" associatedExtensionId="org.eclipse.cdt.ui.navigator.content"