Hello, List!
I need to add special item to the popup menu, that appears in
C\C++ Perspective. Here is the following fragment of my
plugin.xml:
<extension
point="org.eclipse.ui.popupMenus">
<objectContribution
adaptable="false"
objectClass="org.eclipse.cdt.core.model.ICProject"
id="CppTESKPluginIDE.objectContribution1">
<menu
label="C++TesK Menu"
path="additions"
id="cppteskpluginide.menu1">
<separator
name="group1">
</separator>
</menu>
<action
class="cppteskpluginide.PopupMenuActionDelegate"
enablesFor="1"
id="cppteskplugin.action1"
label="Toggle CppTESK Highlighting"
menubarPath="additions">
</action>
</objectContribution>
</extension>
The PopupMenuActionDelegate class implements IObjectActionDelegate
class methods, like run(), selectionChanged() and setActivePart().
My problem is that it does not work. It worked in Java
Perspective, when I used "....IFile" as objectClass parameter
value, but what should I do now to repair it?
Thanks in advance!
--
Sincerely yours,
Sergey Smolov
ISP RAS
|