Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » JSP 'Open Declaration' option in M2
JSP 'Open Declaration' option in M2 [message #58837] Wed, 29 December 2004 15:01 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: JSP 'Open Declaration' option in M2 [message #60862 is a reply to message #58837] Tue, 04 January 2005 21:24 Go to previous message
Andrey Loskutov is currently offline Andrey LoskutovFriend
Messages: 89
Registered: July 2009
Member
Hi Colin,
For open declared classes (not methods) you can try the AnyEdit plugin -
there is a similar functionality for *any* editor, and it works.
http://andrei.gmxhome.de/anyedit/index.html

Kind regards,
Andrei Loskutov

Am Wed, 29 Dec 2004 15:01:09 +0000 (UTC) hat ColinC <email@colinchan.com>
geschrieben:

> 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.
>
>
>
Previous Topic:Writing and deploying an SSB
Next Topic:FAQ
Goto Forum:
  


Current Time: Sat Oct 19 10:48:49 GMT 2024

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

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

Back to the top