1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 06:45:43 +02:00

Fix enablement of PE actionProviders (related to 201268: Project Explorer enables file actions in empty workspace)

This commit is contained in:
Anton Leherbauer 2007-08-28 08:57:04 +00:00
parent 70fc23d8c3
commit 883825add9

View file

@ -2002,7 +2002,10 @@
<enablement>
<or>
<instanceof value="org.eclipse.cdt.core.model.ICElement" />
<instanceof value="org.eclipse.core.resources.IResource" />
<and>
<instanceof value="org.eclipse.core.resources.IProject" />
<test property="org.eclipse.core.resources.projectNature" value="org.eclipse.cdt.core.cnature"/>
</and>
</or>
</enablement>
</actionProvider>
@ -2012,8 +2015,11 @@
overrides="org.eclipse.ui.navigator.resources.actions.RefactorActions">
<enablement>
<or>
<instanceof value="org.eclipse.cdt.core.model.ICElement" />
<instanceof value="org.eclipse.core.resources.IResource" />
<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>
</actionProvider>