possible issue with activities and objectContribution's [message #310036] |
Thu, 16 November 2006 15:33  |
Eclipse User |
|
|
|
R3.2.1
My activities are working well (thanks to earlier help from Kim H. and others). Now I add an
activity and bind it to the id of a popup-menu "objectContribution" -- the menu-item indeed vanishes
(and returns when the correct category is enabled), all fine. BUT -- the IObjectActionDelegate is
still being created -- I discover this since a System.out.println(...) in my class spits to the
console; it is *definitely* the disabled action, since part of what is spit is the definitionId, not
reused by any other action.
The possibly-relevant segment of the call-stack is below.
Various bits of static and dynamic analysis in ObjectActionContributor suggest that the
IObjectActionDelegate *is* being created, even when the objectContribution is disabled; I'm not
familiar enough with that code to say anything for sure, so before I go further -- is this a known
issue? is it a bug, or a design feature whose purpose I'm not getting?
thanks,
Paul
at org.eclipse.ui.internal.ObjectPluginAction$2.run(ObjectPlugi nAction.java:95)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:843)
at org.eclipse.ui.internal.ObjectPluginAction.setActivePart(Obj ectPluginAction.java:103)
at
org.eclipse.ui.internal.ObjectActionContributor.contributeOb jectActions(ObjectActionContributor.java:143)
at
org.eclipse.ui.internal.ObjectActionContributorManager.contr ibuteObjectActions(ObjectActionContributorManager.java:96)
at org.eclipse.ui.internal.PopupMenuExtender.addObjectActions(P opupMenuExtender.java:253)
at org.eclipse.ui.internal.PopupMenuExtender.menuAboutToShow(Po pupMenuExtender.java:315)
at org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuMan ager.java:289)
at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuM anager.java:395)
at org.eclipse.jface.action.MenuManager.access$1(MenuManager.ja va:391)
at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager .java:417)
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03797 seconds