There are several property tests you can use:
<test
property="org.eclipse.core.resources.name"
value="*.pld">
</test>
and
<test
property="org.eclipse.core.resources.extension"
value="pld">
</test>
You will need to repeat the selection so that it is fully visible when there is something like:
<visibleWhen
checkEnabled="false">
<iterate
ifEmpty="false"
operator="or">
<test
property="org.eclipse.core.resources.name"
value="*.pld">
</test>
</iterate>
</visibleWhen>
source
share