Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Extending with org.eclipse.jdt.ui.javaEditorTextHovers
Extending with org.eclipse.jdt.ui.javaEditorTextHovers [message #1718129] Sun, 20 December 2015 11:02 Go to next message
or shacham is currently offline or shachamFriend
Messages: 7
Registered: December 2015
Junior Member
I'm trying extend eclipse using this extension: org.eclipse.jdt.ui.javaEditorTextHovers. I implemented this interface org.eclipse.jdt.ui.text.java.hover.IJavaEditorTextHover.

My plugin.xml file has the following configuration:

<plugin>
<extension
point="org.eclipse.jdt.ui.javaEditorTextHovers">
<hover
activate="true"
class="path.src.Editor.editortry"
id="id.path.src.Editor.editortry">
</hover>
</extension>

</plugin>

But when i run my plugin, eclipse show this message:

!ENTRY org.eclipse.jdt.ui 4 0 2015-12-20 12:52:43.554
!MESSAGE Could not create Java text hover

Can anyone help me?

Thanks!


edit: find a solution the xml class and id was wrong.

[Updated on: Sun, 27 December 2015 09:59]

Report message to a moderator

Re: Extending with org.eclipse.jdt.ui.javaEditorTextHovers [message #1718185 is a reply to message #1718129] Mon, 21 December 2015 07:09 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
The name path.src.Editor.editortry seems a very bizarre name for a
class. Is that actually the name of real existing class you've
implemented?

On 20/12/2015 12:03 PM, or shacham wrote:
> I'm trying extend eclipse using this extension:
> org.eclipse.jdt.ui.javaEditorTextHovers. I implemented this interface
> org.eclipse.jdt.ui.text.java.hover.IJavaEditorTextHover.
>
> My plugin.xml file has the following configuration:
>
> <plugin>
> <extension
> point="org.eclipse.jdt.ui.javaEditorTextHovers">
> <hover
> activate="true"
> class="path.src.Editor.editortry"
> id="id.path.src.Editor.editortry">
> </hover>
> </extension>
>
> </plugin>
>
> But when i run my plugin, eclipse show this message:
> !ENTRY org.eclipse.jdt.ui 4 0 2015-12-20 12:52:43.554
> !MESSAGE Could not create Java text hover
>
> Can anyone help me?
>
> Thanks!


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Extending with org.eclipse.jdt.ui.javaEditorTextHovers [message #1718250 is a reply to message #1718185] Mon, 21 December 2015 16:47 Go to previous messageGo to next message
or shacham is currently offline or shachamFriend
Messages: 7
Registered: December 2015
Junior Member
It does'nt matter.
I tried it with different path and IDs this is not what made the error
Re: Extending with org.eclipse.jdt.ui.javaEditorTextHovers [message #1718320 is a reply to message #1718250] Tue, 22 December 2015 12:35 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
It seems to me specifying a class that doesn't really exist with that
name on the classpath of your project will cause exactly this error.
But if you know what makes the error, why ask here?


On 21/12/2015 5:47 PM, or shacham wrote:
> It does'nt matter.
> I tried it with different path and IDs this is not what made the error


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Extending with org.eclipse.jdt.ui.javaEditorTextHovers [message #1718533 is a reply to message #1718320] Sat, 26 December 2015 11:18 Go to previous messageGo to next message
or shacham is currently offline or shachamFriend
Messages: 7
Registered: December 2015
Junior Member
Ed Merks wrote on Tue, 22 December 2015 12:35
It seems to me specifying a class that doesn't really exist with that
name on the classpath of your project will cause exactly this error.
But if you know what makes the error, why ask here?


On 21/12/2015 5:47 PM, or shacham wrote:
> It does'nt matter.
> I tried it with different path and IDs this is not what made the error

I ment the path is not what made this error.
I tried it with different path, my friend made his own plugin with his own path and still the same massage.
I don't know what is the solution.
Re: Extending with org.eclipse.jdt.ui.javaEditorTextHovers [message #1718550 is a reply to message #1718533] Sun, 27 December 2015 05:52 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Whatever you specify in class="path.src.Editor.editortry", Eclipse will
try to load that class and will expect to be able to cast it to
IJavaEditorTextHover so if you specify something bogus, it won't be able
to create the class and you'll end up with an error message in your
log. So I would guess that your friend has a different bogus value
there. It must be the qualified name of a class.


On 26/12/2015 12:18 PM, or shacham wrote:
> Ed Merks wrote on Tue, 22 December 2015 12:35
>> It seems to me specifying a class that doesn't really exist with that
>> name on the classpath of your project will cause exactly this error.
>> But if you know what makes the error, why ask here?
>>
>>
>> On 21/12/2015 5:47 PM, or shacham wrote:
>> > It does'nt matter.
>> > I tried it with different path and IDs this is not what made the
>> error
>
> I ment the path is not what made this error.
> I tried it with different path, my friend made his own plugin with his
> own path and still the same massage.
> I don't know what is the solution.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Extending with org.eclipse.jdt.ui.javaEditorTextHovers [message #1718557 is a reply to message #1718550] Sun, 27 December 2015 09:59 Go to previous message
or shacham is currently offline or shachamFriend
Messages: 7
Registered: December 2015
Junior Member
Ed Merks wrote on Sun, 27 December 2015 05:52
Whatever you specify in class="path.src.Editor.editortry", Eclipse will
try to load that class and will expect to be able to cast it to
IJavaEditorTextHover so if you specify something bogus, it won't be able
to create the class and you'll end up with an error message in your
log. So I would guess that your friend has a different bogus value
there. It must be the qualified name of a class.


On 26/12/2015 12:18 PM, or shacham wrote:
> Ed Merks wrote on Tue, 22 December 2015 12:35
>> It seems to me specifying a class that doesn't really exist with that
>> name on the classpath of your project will cause exactly this error.
>> But if you know what makes the error, why ask here?
>>
>>
>> On 21/12/2015 5:47 PM, or shacham wrote:
>> > It does'nt matter.
>> > I tried it with different path and IDs this is not what made the
>> error
>
> I ment the path is not what made this error.
> I tried it with different path, my friend made his own plugin with his
> own path and still the same massage.
> I don't know what is the solution.



You are right it's work thanks.
Previous Topic:Copy plugin project directory
Next Topic:Need to import a build.xml that currently works and run it in Eclipse
Goto Forum:
  


Current Time: Thu Apr 25 23:32:18 GMT 2024

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

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

Back to the top