Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Current text selection does not resolve to a Java element?
Current text selection does not resolve to a Java element? [message #234308] Sat, 12 August 2006 02:07 Go to next message
Eclipse UserFriend
Originally posted by: khai.n.situvista.com

I've been using Eclipse for a long time going back to 2.0 and have
recently noticed that I run into this error a lot more now with 3.2.

It used to be that I could browse the Eclipse (compiled) code and
navigate to the declaration of methods, classes, etc... with F3 pretty
consistently, and if no source code is found then a generic page is
displayed showing the signature of the class. With 3.2 I'm frequently
getting "Current text selection does not resolve to a Java element";
this is with F3 (open declaration) or F4(open type hierarchy).

Strangely enough I can always manually go to the class by using the Open
Type dialog, and can fully browse the source for it.

There have been a few mentions of this in the newsgroup but nothing
definitive have been given to 'solve it once and for all'.

In short, what is the actual requirement that must be met in order to
browse through a particular compiled class and have the full use of F3
and F4?

What if I want this for the entire Eclipse codebase?


Thanks for any answers!

-- Khai --
Re: Current text selection does not resolve to a Java element? [message #234494 is a reply to message #234308] Wed, 16 August 2006 09:24 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Khai M Nguyen wrote:

> I've been using Eclipse for a long time going back to 2.0 and have
> recently noticed that I run into this error a lot more now with 3.2.
>
> It used to be that I could browse the Eclipse (compiled) code and
> navigate to the declaration of methods, classes, etc... with F3 pretty
> consistently, and if no source code is found then a generic page is
> displayed showing the signature of the class. With 3.2 I'm frequently
> getting "Current text selection does not resolve to a Java element";
> this is with F3 (open declaration) or F4(open type hierarchy).
>
> Strangely enough I can always manually go to the class by using the
> Open Type dialog, and can fully browse the source for it.
>
> There have been a few mentions of this in the newsgroup but nothing
> definitive have been given to 'solve it once and for all'.
>
> In short, what is the actual requirement that must be met in order to
> browse through a particular compiled class and have the full use of F3
> and F4?

To get this the best way is to import all the required plug-ins either
as 'Binary projects' or as 'Binary projects with linked content'.

>
> What if I want this for the entire Eclipse codebase?

Then do the above for the entire content. In this case I suggest to use
'Binary projects with linked content'.

Dani

>
>
> Thanks for any answers!
>
> -- Khai --
>
Re: Current text selection does not resolve to a Java element? [message #234604 is a reply to message #234494] Thu, 17 August 2006 02:46 Go to previous message
Eclipse UserFriend
Originally posted by: khai.n.situvista.com

Hey thanks, I don't know why I didn't think of that... Duh!!! :-P


-- Khai --

Daniel Megert wrote:
> Khai M Nguyen wrote:
>
>> I've been using Eclipse for a long time going back to 2.0 and have
>> recently noticed that I run into this error a lot more now with 3.2.
>>
>> It used to be that I could browse the Eclipse (compiled) code and
>> navigate to the declaration of methods, classes, etc... with F3 pretty
>> consistently, and if no source code is found then a generic page is
>> displayed showing the signature of the class. With 3.2 I'm frequently
>> getting "Current text selection does not resolve to a Java element";
>> this is with F3 (open declaration) or F4(open type hierarchy).
>>
>> Strangely enough I can always manually go to the class by using the
>> Open Type dialog, and can fully browse the source for it.
>>
>> There have been a few mentions of this in the newsgroup but nothing
>> definitive have been given to 'solve it once and for all'.
>>
>> In short, what is the actual requirement that must be met in order to
>> browse through a particular compiled class and have the full use of F3
>> and F4?
>
> To get this the best way is to import all the required plug-ins either
> as 'Binary projects' or as 'Binary projects with linked content'.
>
>>
>> What if I want this for the entire Eclipse codebase?
>
> Then do the above for the entire content. In this case I suggest to use
> 'Binary projects with linked content'.
>
> Dani
>
>>
>>
>> Thanks for any answers!
>>
>> -- Khai --
>>
Previous Topic:UnresolvedReferenceBinding
Next Topic:Some help needed to understand a warning re. build.properties
Goto Forum:
  


Current Time: Thu Apr 25 09:14:54 GMT 2024

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

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

Back to the top