org.eclipse.ui.activities conflict? [message #1050408] |
Sat, 27 April 2013 05:27 |
Pavan D 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.
|
|
|
Powered by
FUDForum. Page generated in 0.02797 seconds