Skip to content

Commit

Permalink
[#487] - show CMSIS Packs toolpar button only for org.eclipse.cdt.cor…
Browse files Browse the repository at this point in the history
…e.cnature
  • Loading branch information
ilg-ul committed Mar 1, 2021
1 parent 03a2f53 commit 3fa13de
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions plugins/org.eclipse.embedcdt.packs.ui/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,19 @@
label="%menus.toolbar.showPerspective.command.label"
style="push"
tooltip="%menus.toolbar.showPerspective.command.tooltip">
<visibleWhen
checkEnabled="false">
<iterate ifEmpty="false">
<adapt
type="org.eclipse.core.resources.IResource">
<test
forcePluginActivation="true"
property="org.eclipse.core.resources.projectNature"
value="org.eclipse.cdt.core.cnature">
</test>
</adapt>
</iterate>
</visibleWhen>
</command>
</toolbar>
</menuContribution>
Expand Down

0 comments on commit 3fa13de

Please sign in to comment.