Plugin Activation [message #908637] |
Wed, 05 September 2012 17:52 |
|
I'm developing some plugins that add actions to the popup menu when files are selected.
The plugins are working fine when I test them using the "Run as Eclipse Application".
However, when I export the plugins, the actions are not shown in the popup menu. Looking at "Eclipse Platform Installation Details > Configuration", in "Plug-in Registry", I see that the plugins are listed as "Installed", whereas other plugins appear as "Active" or "Starting".
So, I assume that the problem is that the plugins are not being activated. I've already tried to use the "org.eclipse.ui.startup" extension point, with no success.
Does anybody know how to fix this problem?
The plugin.xml code I'm using is shown below.
Thanks in advance.
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension point="org.eclipse.ui.popupMenus">
<objectContribution
adaptable="false"
id="Arch.sync.mod1"
objectClass="org.eclipse.core.resources.IFile">
<menu
id="Arch.menu"
path="additions"
label="Arch">
<separator name="group1" />
</menu>
<action
class="arch.sync.actions.SyncAction"
id="Arch.sync.action1"
label="Sync Arch"
menubarPath="Arch.menu/group1">
</action>
</objectContribution>
</extension>
<extension point="org.eclipse.ui.startup">
<startup class="arch.sync.Startup" />
</extension>
</plugin>
|
|
|
|
|
Re: Plugin Activation [message #909118 is a reply to message #909012] |
Thu, 06 September 2012 15:10 |
|
I haven't figured out the problem yet, but I tested the plugins with Eclipse 4.2 and they are working. So, I guess for now I will just use Eclipse 4.2.
Joseph Carroll wrote on Thu, 06 September 2012 13:16Not sure what your particular situation is, but remember that the "Actions" framework has been deprecated. Especially when you are writing new products, I would recommend using commands.
http://www.vogella.com/articles/EclipseCommands/article.html#contextmenu
For what its worth...
Take care,
JD
Thanks for the link. I check whether it is easy to adapt my plugin to the new framework.
|
|
|
Powered by
FUDForum. Page generated in 0.03218 seconds