I am trying to hide elements in the UI by means of activities like this
The pattern
value for activityPatternBinding
takes the format:
contributing plug-in id / local id
so you have to work out which plug-in contributes the menu item. Looking at the Eclipse Papyrus download the plug-in appears to be org.eclipse.papyrus.infra.discovery.ui.menu
so the pattern is probably:
pattern="org.eclipse.papyrus.infra.discovery.ui.menu/org.eclipse.papyrus.infra.discovery.ui.menu.toolbars.discoveryCommand">
(assuming isEqualityPattern="true", all the .
characters need escaping for the regular expression version)