Bug 347829 - [Contributions] PropertyTester not getting fired for objectContribution(s) unless view from providing plug-in is loaded.
Summary: [Contributions] PropertyTester not getting fired for objectContribution(s) un...
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact: Daniel Rolka CLA
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2011-05-31 12:44 EDT by jgielstra Mising name CLA
Modified: 2014-07-07 13:46 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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