Sam Su
Sam Su

Reputation: 6822

How to control the visibility of objectContribution in popupMenus?

enter image description here
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?

Upvotes: 1

Views: 554

Answers (1)

Bananeweizen
Bananeweizen

Reputation: 22070

Define an additional "visibility" tag for that contribution and then use a PropertyTester inside the visibility tag to check the name in more detail.

Upvotes: 2

Related Questions