mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-03 22:35:43 +02:00
Fix enablement of PE actionProviders (related to 201268: Project Explorer enables file actions in empty workspace)
This commit is contained in:
parent
70fc23d8c3
commit
883825add9
1 changed files with 9 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue