Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » my 3.3 plugin doesn't work in 3.4
my 3.3 plugin doesn't work in 3.4 [message #335054] Thu, 19 March 2009 16:58 Go to next message
Lewis Berman is currently offline Lewis BermanFriend
Messages: 2
Registered: July 2009
Junior Member
A plugin I wrote under Eclipse 3.3 does not work in 3.4 - it looks like the
plugin is not activated. I did update MANIFEST.MF to include the following:

Bundle-ActivationPolicy: lazy

But it doesn't work whether the old or new line is present. My plugin
overrides editor hover behavior. I specify the extension point
org.eclipse.jdt.ui.javaEditorTextHovers in plugin.xml. That looks like
this:

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>

<extension point="org.eclipse.jdt.ui.javaEditorTextHovers">
<hover
id="myEditorHover"
class="sonif.myEditorHover"
label="lewisCustomHover"
description="A custom hover handler."
activate="true" >
</hover>
</extension>

</plugin>

Any ideas why my plugin is not activated?

--
Lewis Berman
Loyola University in Maryland
Re: my 3.3 plugin doesn't work in 3.4 [message #335068 is a reply to message #335054] Fri, 20 March 2009 08:29 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Lewis Berman wrote:
> A plugin I wrote under Eclipse 3.3 does not work in 3.4 - it looks like the
> plugin is not activated. I did update MANIFEST.MF to include the following:
>
> Bundle-ActivationPolicy: lazy
>
> But it doesn't work whether the old or new line is present. My plugin
> overrides editor hover behavior. I specify the extension point
> org.eclipse.jdt.ui.javaEditorTextHovers in plugin.xml. That looks like
> this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <?eclipse version="3.4"?>
> <plugin>
>
> <extension point="org.eclipse.jdt.ui.javaEditorTextHovers">
> <hover
> id="myEditorHover"
> class="sonif.myEditorHover"
> label="lewisCustomHover"
> description="A custom hover handler."
> activate="true" >
> </hover>
> </extension>
>
> </plugin>
>
> Any ideas why my plugin is not activated?
>
No idea. Try with 3.5 M6 and if it is not working there file a bug
report and attach your plug-in.

Dani
Re: my 3.3 plugin doesn't work in 3.4 [message #335079 is a reply to message #335068] Fri, 20 March 2009 13:58 Go to previous messageGo to next message
Lewis Berman is currently offline Lewis BermanFriend
Messages: 2
Registered: July 2009
Junior Member
It is possible that my plugin is not activated because certain code has been
deprecated. I could at least test to see if it's activation works on
demand. Does Eclipse accept any activation policy other than lazy? If so,
what do I substitute for "lazy" in:

Bundle-ActivationPolicy: lazy

?

--
Lewis Berman
Loyola University in Maryland
Re: my 3.3 plugin doesn't work in 3.4 [message #335161 is a reply to message #335079] Tue, 24 March 2009 14:06 Go to previous message
Mircea Luchian is currently offline Mircea LuchianFriend
Messages: 89
Registered: July 2009
Member
Hi Lewis,
You can easily check if your plug-in is activated by setting a printout
in the "start()" method in your plug-in "Activator.java" class. If your
message appears in the console, your plug-in is started. Your problem
could be related to deprecated code, or perhaps a deprecated extension
point...
If the activation is not lazy, the "Bundle-ActivationPolicy: lazy" line
in your Manifest.MF is deleted.
Mircea

Lewis Berman wrote:
> It is possible that my plugin is not activated because certain code has been
> deprecated. I could at least test to see if it's activation works on
> demand. Does Eclipse accept any activation policy other than lazy? If so,
> what do I substitute for "lazy" in:
>
> Bundle-ActivationPolicy: lazy
>
> ?
>
>
Previous Topic:IWorkBenchPropertyPages and disabling/enabling based on content
Next Topic:How to check the consistency of the Platform ?
Goto Forum:
  


Current Time: Thu Apr 25 12:42:57 GMT 2024

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

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

Back to the top