Community
Participate
Working Groups
Build Identifier: M20110210-1200 I have defined a series of popup menus via "org.eclipse.ui.popupMenus" These are in associated through and objectContribution on objectClass="org.eclipse.emf.ecore.EObject" I defined an org.eclipse.core.expressions.PropertyTester to ensure these action don't appear in other views where EObjects are being displayed.. If I DO NOT open a view from the plug-in ( or likely some other class ) the PropertyTest is NOT launched... The plugin has BOTH Bundle-SymbolicName: com.csc.fs.services.catalogue.ui;singleton:=true Bundle-ActivationPolicy: lazy Reproducible: Always Steps to Reproduce: 1. Start the workbench WITHOUT loading a view from the plugin containing the ProperyTest/Actions 2. Goto a view containing EObject e.g. the EMF generated Library Sample Model Editor 3. Right click on an EObject in the Editor the actions appear.. 4. Open a View from the plug-in containing the PropertyTester and retry the popup menu in the Library editor the PropertTester is fired and the actions do not appear..
It is up to the client of the property tester API to decide if they want to allow plugin activation. I suppose this is being decided in the popupMenus implementation.
Please show us the exrepssion where you use the property tester. PW
If this is not working, please re-open. PW