Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 347829

Summary: [Contributions] PropertyTester not getting fired for objectContribution(s) unless view from providing plug-in is loaded.
Product: [Eclipse Project] Platform Reporter: jgielstra Mising name <jgielstra>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: RESOLVED WORKSFORME QA Contact: Daniel Rolka <daniel.rolka>
Severity: normal    
Priority: P3 CC: prakash
Version: 3.6.2Keywords: needinfo
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description jgielstra Mising name CLA 2011-05-31 12:44:31 EDT
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..
Comment 1 John Arthorne CLA 2011-05-31 16:26:49 EDT
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.
Comment 2 Paul Webster CLA 2011-06-03 07:58:09 EDT
Please show us the exrepssion where you use the property tester.

PW
Comment 3 Paul Webster CLA 2014-07-07 13:46:29 EDT
If this is not working, please re-open.

PW