Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » javadoc view on jsp/html files(IDE)
javadoc view on jsp/html files [message #731012] Thu, 29 September 2011 17:13 Go to next message
Cristian is currently offline CristianFriend
Messages: 2
Registered: September 2011
Junior Member
Hi,

I'm new on Eclipse.
I use the last Eclipse release (Indigo) Java EE Development (3.7.1)

I can't find any jsp editor/web editor (the standard or the WTP) that correctly links to Javadoc view to show help about the current java command or class.

It only works when hovering the mouse over it, but it is an unformatted tooltip text, very hard to read and understand.

There is any way to correctly link these editors to Javadoc view pane?
There is any other jsp/html editor with a correct support for Javadoc view?
This is working fine only for .java files.

Thanks a lot!
Re: javadoc view on jsp/html files [message #731159 is a reply to message #731012] Fri, 30 September 2011 06:41 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 29.09.2011 19:13, Cristian wrote:
> Hi,
>
> I'm new on Eclipse.
> I use the last Eclipse release (Indigo) Java EE Development (3.7.1)
>
> I can't find any jsp editor/web editor (the standard or the WTP) that
> correctly links to Javadoc view to show help about the current java
> command or class.
>
> It only works when hovering the mouse over it, but it is an
> unformatted tooltip text, very hard to read and understand.
>
> There is any way to correctly link these editors to Javadoc view pane?
> There is any other jsp/html editor with a correct support for Javadoc
> view?
> This is working fine only for .java files.
JSP comments are not Javadoc and hence this does not display in the
Javadoc view. I don't think there's a tool or editor that hacks that.

Dani
>
> Thanks a lot!
>
Re: javadoc view on jsp/html files [message #731202 is a reply to message #731159] Fri, 30 September 2011 09:02 Go to previous messageGo to next message
Cristian is currently offline CristianFriend
Messages: 2
Registered: September 2011
Junior Member
Hi Dani,

I don't understand you answer, maybe I don't explain it well (I'm not English).

I'm editing a JSP file on my project (HTML mixed with server side java commands, the <% %> tags. Inside these tags I can use java commands, instantiate java classes (my own or standard ones), etc.

What I'm saying is that, the tooltip popup window provides help for the current command where the mouse cursor is, but is unformatted and difficult to understand.
By pressing Ctrl+Space I can also see the available functions for a determined class instance with a mini javadoc popup window for the selected command, but is a very small window.

What I'm asking is why the .jsp files are not linked with the Javadoc view, like when I'm editing a .java file, where I can see the javadoc info for the command where the cursor is.

Thanks by the way.
Re: javadoc view on jsp/html files [message #731255 is a reply to message #731202] Fri, 30 September 2011 11:52 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 30.09.2011 11:02, Cristian wrote:
> Hi Dani,
>
> I don't understand you answer, maybe I don't explain it well (I'm not
> English).
>
> I'm editing a JSP file on my project (HTML mixed with server side java
> commands, the <% %> tags. Inside these tags I can use java commands,
> instantiate java classes (my own or standard ones), etc.
>
> What I'm saying is that, the tooltip popup window provides help for
> the current command where the mouse cursor is, but is unformatted and
> difficult to understand.
You should file a bug report for that.
> By pressing Ctrl+Space I can also see the available functions for a
> determined class instance with a mini javadoc popup window for the
> selected command, but is a very small window.
If this is using the standard infrastructure and working as expected
then you should be able to do the following:
1. Make the first window (which comes after Ctrl+Space) bigger. The info
popup will then also be bigger
2. If you give the focus to the first window (e.g. by pressing Tab),
then another Tab should give the focus to the info popup, allowing you
to re-size it.

>
> What I'm asking is why the .jsp files are not linked with the Javadoc
> view, like when I'm editing a .java file, where I can see the javadoc
> info for the command where the cursor is.
I know, but as said, the stuff you see is not Javadoc, hence it does not
belong into the Javadoc view.

Dani
>
> Thanks by the way.
>
Re: javadoc view on jsp/html files [message #735106 is a reply to message #731255] Mon, 10 October 2011 23:32 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

In technical terms, the JSP Editor tells the surrounding Views what DOM Objects are selected. This works well for the JSP Editor, but it's not granular enough to decide what JavaDoc to show.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: javadoc view on jsp/html files [message #735190 is a reply to message #735106] Tue, 11 October 2011 06:42 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 11.10.2011 01:32, Nitin Dahyabhai wrote:
> In technical terms, the JSP Editor tells the surrounding Views what
> DOM Objects are selected. This works well for the JSP Editor, but
> it's not granular enough to decide what JavaDoc to show.
Maybe we could offer some hooks (docProvider) in the Javadoc view, so
that the elements/selection can provide the input? If we think "Javadoc"
does not fit for JSP documentation then we could probably rename it to
"Documentation".

Dani
Previous Topic:Cannot import Java project
Next Topic:Resource files
Goto Forum:
  


Current Time: Fri Apr 26 09:19:41 GMT 2024

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

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

Back to the top