Define an additional "visibility" tag for that contribution and then use a PropertyTester inside the visibility tag to check the name in more detail.
How to control the visibility of objectContribution in popupMenus?
-
29-03-2022 - |
Question
Hi guys,I had create a popupmenu with code above and this menu would be only showed if the folder's name matched "AAA".
Here is the problem:if there is a folder which is also named "AAA" after another folder,this menu would be showed,too.Actually we just wanna our popupmenu be showed in specific main folders,not their sub-folders.So how can i do this?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow