Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » org.eclipse.ui.activities conflict?
org.eclipse.ui.activities conflict? [message #1050408] Sat, 27 April 2013 05:27
Pavan D is currently offline Pavan DFriend
Messages: 7
Registered: February 2011
Junior Member
Hi All,

We want to hide a specific context menu entry contributed by a plugin [ pluginID=cm ]. In order to accomplish this, we used org.eclipse.ui.activities extension point in our NEW PLUGIN [ pluginID=newplugin ].

<extension point="org.eclipse.ui.activities">
<activity
id="de.vogella.rcp.activities.view"
name="Activate View">
<enabledWhen>
<with
variable="selection">
<count
value="-1">
</count>
</with>
</enabledWhen>
</activity>
<activityPatternBinding
activityId="de.vogella.rcp.activities.view"
isEqualityPattern="false"
pattern="com.teamcenter.rac.cm/com.teamcenter.rac.cm.reviseImpacted">
</activityPatternBinding>
</extension>

Ideally, this should have hidden the appropriate entry ['Revise Impacted Item'] in the context menu. But, somehow, it is not happening.

The same piece of entry if put for other context menu entries which are contributed by another plugin [pluginID=common]..are hiding the entries. But in this case of cm plugin, it is not working as expected.

One thing which I could see was that there is an existing activities extension defined in cm plugin. This is to hide the perspective contributed by the cm plugin. It goes something like this:

<extension point="org.eclipse.ui.activities">

<activity description="Turn off Change Manager perspective" id="com.teamcenter.rac.cm.perspectives.changeManager" name="ChangeManager">

</activity>

<activityPatternBinding activityId="com.teamcenter.rac.cm.perspectives.changeManager" pattern="com\.teamcenter\.rac\.cm\/.*">
</activityPatternBinding>

</extension>

Im not sure if there is a collision of activities extension here. If that is the case how should I be proceeding?

Please share your inputs on what could be wrong here.

Thanks,
Pavan.
Previous Topic:Common Navigation Framework and popup menu item visibility
Next Topic:FilteredTree: ClassCastException: FilteredTree cannot be cast to org.eclipse.swt.widgets.Tree
Goto Forum:
  


Current Time: Fri Mar 29 16:02:14 GMT 2024

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

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

Back to the top