Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » detecting method/type context of current cursor position
detecting method/type context of current cursor position [message #234377] Mon, 14 August 2006 03:05 Go to next message
Eclipse UserFriend
Hi,

I'm looking for a way to detect what "context" the current cursor position
is.

It should be efficient enough to be done during code completion (so
doesn't have to be done on every cursor move)

The context i'm looking for is:

a) what method am I currently "on"/"in"

b) what parameter (type, name and/or position) am I at.

For example (where ! is where code completion occurs)

for

File file;

file.setName("!");

I would like to know the method is java.io.File.setName and i'm in the
first parameter as a string.

Any takers ? :)

/max
Re: detecting method/type context of current cursor position [message #234832 is a reply to message #234377] Tue, 22 August 2006 04:23 Go to previous message
Eclipse UserFriend
Is it still vacation time for JDT gurus ? :)

/max

> Hi,
>
> I'm looking for a way to detect what "context" the current cursor
> position is.
>
> It should be efficient enough to be done during code completion (so
> doesn't have to be done on every cursor move)
>
> The context i'm looking for is:
>
> a) what method am I currently "on"/"in"
>
> b) what parameter (type, name and/or position) am I at.
>
> For example (where ! is where code completion occurs)
>
> for
>
> File file;
>
> file.setName("!");
>
> I would like to know the method is java.io.File.setName and i'm in the
> first parameter as a string.
>
> Any takers ? :)
>
> /max
>



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Previous Topic:Type Mismatch bug in Eclipse 3.2
Next Topic:Correct Indentation
Goto Forum:
  


Current Time: Fri May 09 03:04:55 EDT 2025

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

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

Back to the top