Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » possible issue with activities and objectContribution's
possible issue with activities and objectContribution's [message #310036] Thu, 16 November 2006 15:33 Go to next message
Eclipse UserFriend
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)
Re: possible issue with activities and objectContribution's [message #310050 is a reply to message #310036] Fri, 17 November 2006 08:26 Go to previous messageGo to next message
Eclipse UserFriend
It actually has to do with "where" activities make there mark.
Activities are for "progressive UI disclosure". They just prevent
something from showing. They don't effect the underlying framework.

That's why you see your IObjectActionDelegate being instantiated. It's
still there ... you just can't see it.

Later,
PW
Re: possible issue with activities and objectContribution's [message #310057 is a reply to message #310050] Fri, 17 November 2006 09:11 Go to previous message
Eclipse UserFriend
Fair enough; thanks for clarification.

Paul
Previous Topic:Error markers in Project Explorer
Next Topic:Builders: Storing output resources from a builder for further processing.
Goto Forum:
  


Current Time: Sat Mar 15 02:11:19 EDT 2025

Powered by FUDForum. Page generated in 0.03797 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top