JSP 'Open Declaration' option in M2 [message #58837] |
Wed, 29 December 2004 15:01 |
Eclipse User |
|
|
|
Originally posted by: email.colinchan.com
Can anyone confirm the exisitence of this feature in WTP M2.
In a JSP java scriptlet section I want to locate the source file and line
of a java declaration. I want the same resultant action as in a Java file
whereby I would use the 'Open Declaration' option from the context menu
on a class method.
Eg. If I had the cursor pointing inside the current line:
<%= myclassobject.myMethod() %>
can I automatically open up and view the source code for
myclassobject.myMethod,
assuming I have access to the source in the same project or in another.
I remember it existed in the IBM contribution on which M2 is based upon.
I have tried using the Java editor for a JSP file but I do not get the
'Open Declaration' menu option.
Can anyone provide further info?
Thanks in advance.
|
|
|
Re: JSP 'Open Declaration' option in M2 [message #58985 is a reply to message #58837] |
Wed, 29 December 2004 16:43 |
Eclipse User |
|
|
|
Originally posted by: email.colinchan.com
Don't you hate it when you find out the solution to a problem
when you are least trying.
I've got the 'Open Declaration' function working on JSP.
I got it working by unchecking the 'Support hyperlink style
navigation for "Open Declaration"' on the Structured Text Editors
Preference setting and using the F3 key to execute it.
It seem it will only work on external file declarations. That is it
does not resolve methods declared in the same JSP itself.
Anyway. Hope this has helped if you had the same difficulty.
|
|
|
Re: JSP 'Open Declaration' option in M2 [message #60378 is a reply to message #58985] |
Tue, 04 January 2005 19:28 |
Eclipse User |
|
|
|
Originally posted by: amywu.us.DELETETHISPART.ibm.com
F3 should work on externally defined classes/methods regardless of whether
or not the hyperlink style preference is on or off. When you hit F3, was
the cursor actually on the method or the class? The cursor needs to be on
the class.
Also, FYI, the actual F3 menu item is located under Navigate->Open
Selection F3
-amy
colinc wrote:
> Don't you hate it when you find out the solution to a problem
> when you are least trying.
> I've got the 'Open Declaration' function working on JSP.
> I got it working by unchecking the 'Support hyperlink style
> navigation for "Open Declaration"' on the Structured Text Editors
> Preference setting and using the F3 key to execute it.
> It seem it will only work on external file declarations. That is it
> does not resolve methods declared in the same JSP itself.
> Anyway. Hope this has helped if you had the same difficulty.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03829 seconds