Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Navigate->Open Type won't work for some classes
Navigate->Open Type won't work for some classes [message #319194] Tue, 14 August 2007 21:51 Go to next message
Eclipse UserFriend
Originally posted by: joseph.gagnon.kewill.com

I'm working on a project using Eclipse 3.3/RCP. As a convenient
navigational tool, I frequently use the Navigate->Open Type menu choice to
open a class I want to look at, without having to do so by locating the
project, opening the package and java file (assuming I can remember where it
is - hence why I'm using the feature).

For some reason that we can't figure out, this feature no longer works for
certain files, but continues to work fine for others. All files exist and I
have tried numerous things, including cleaning the projects, doing an SVN
cleanup, refreshing the workspace, restarting eclipse and rebooting the
machine. All to no avail.

Is there some sort of cache that can be cleared, that might be in some funky
state, that I can clear? Any ideas would be welcome at this point.

Thanks,
Joe
Re: Navigate->Open Type won't work for some classes [message #319195 is a reply to message #319194] Tue, 14 August 2007 21:52 Go to previous messageGo to next message
Jeff Care is currently offline Jeff CareFriend
Messages: 23
Registered: July 2009
Junior Member
Joe Gagnon wrote:

> For some reason that we can't figure out, this feature no longer works for
> certain files, but continues to work fine for others. All files exist and I
> have tried numerous things, including cleaning the projects, doing an SVN
> cleanup, refreshing the workspace, restarting eclipse and rebooting the
> machine. All to no avail.

The files that you can't find, are they files in your projects or
Eclipse classes?

--
Jeffrey E. (Jeff) Care carej@us.ibm.com
WebSphere Application Server Systems Management Development
Re: Navigate->Open Type won't work for some classes [message #319205 is a reply to message #319195] Wed, 15 August 2007 12:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: joseph.gagnon.kewill.com

This is a multi-part message in MIME format.

------=_NextPart_000_0007_01C7DF1A.97BA6F30
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

They are files in our project. I can open say, =
org.eclipse.jface.viewers.TableViewer, or java.lang.String with no =
problem. The problem only showed up yesterday, whereas, before I was =
able to open classes anywhere with no problem at all.

We have a total of 18 "projects" in our project, each one representing =
some major portion of the product functionality. It appears that it =
happens with classes in only one of the projects (based upon a little =
experimentation). I don't know whether any Eclipse/RCP-specific =
properties were changed recently, I'd have to ask our technical lead. =
Others on the project are experiencing the same problem with the same =
classes, so it's not something specific to my system.

When Navigate->Open Type is used to locate and open a class in this =
project, after the class is selected in the Open Type dialog (which =
displays the class and its package correctly) an error dialog appears =
with the following message:

Type '<fully qualified class name>' could not be found in '<project

name>'. Make sure all workspace resources are refreshed.

(I left out the actual class and project names for proprietary reasons.)

As I mentioned in my orignal posting, I have tried everything I can =
think of to "refresh" the workspace. Nothing has helped. I suspect some =
property was changed in the project itself, but I don't know what it =
could be. I can, of course navigate directly to the project, package and =
class that I want to look at, but sometimes it's hard to remember where =
a particular class resides. The Open Type feature is very useful in this =
respect.

Hope this provides more info.

Joe

"Jeff Care" <carej@us.ibm.com> wrote in message =
news:f9t87m$5m7$1@build.eclipse.org...
> Joe Gagnon wrote:
>=20
>> For some reason that we can't figure out, this feature no longer =
works for=20
>> certain files, but continues to work fine for others. All files =
exist and I=20
>> have tried numerous things, including cleaning the projects, doing an =
SVN=20
>> cleanup, refreshing the workspace, restarting eclipse and rebooting =
the=20
>> machine. All to no avail.
>=20
> The files that you can't find, are they files in your projects or=20
> Eclipse classes?
>=20
> --=20
> Jeffrey E. (Jeff) Care =
carej@us.ibm.com
> WebSphere Application Server Systems Management =
Development
------=_NextPart_000_0007_01C7DF1A.97BA6F30
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.3132" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV>
<P><FONT face=3DArial size=3D2>They are files in our project. I can open =
say,=20
org.eclipse.jface.viewers.TableViewer, or java.lang.String with no =
problem. The=20
problem only showed up yesterday, whereas, before I was able to open =
classes=20
anywhere with no problem at all.</FONT></P>
<P><FONT face=3DArial size=3D2>We have a total of 18 "projects" in our =
project, each=20
one representing some major portion of the product functionality. It =
appears=20
that it happens with classes in only one of the projects (based upon a =
little=20
experimentation). I don't know whether any Eclipse/RCP-specific =
properties were=20
changed recently, I'd have to ask our technical lead. Others on the =
project are=20
experiencing the same problem with the same classes, so it's not =
something=20
specific to my system.</FONT></P>
<P><FONT face=3DArial size=3D2>When Navigate-&gt;Open Type is used to =
locate and=20
open a class in this project, after the class is selected in the Open =
Type=20
dialog (which displays the class and its package correctly) an error =
dialog=20
appears with the following message:</FONT></P>
<P><FONT face=3DArial size=3D2>Type '&lt;fully qualified class name&gt;' =
could not=20
be found in '&lt;project</FONT></P>
<P><FONT face=3DArial size=3D2>name&gt;'. Make sure all workspace =
resources are=20
refreshed.</FONT></P>
<P><FONT face=3DArial size=3D2>(I left out the actual class and project =
names for=20
proprietary reasons.)</FONT></P>
<P><FONT face=3DArial size=3D2>As I mentioned in my orignal posting, I =
have tried=20
everything I can think of to "refresh" the workspace. Nothing has =
helped. I=20
suspect some property was changed in the project itself, but I don't =
know what=20
it could be. I can, of course navigate directly to the project, package =
and=20
class that I want to look at, but sometimes it's hard to remember where =
a=20
particular class resides. The Open Type feature is very useful in this=20
respect.</FONT></P>
<P><FONT face=3DArial size=3D2>Hope this provides more info.</FONT></P>
<P><FONT face=3DArial size=3D2>Joe</FONT></P></DIV>
<DIV><FONT face=3DArial size=3D2>"Jeff Care" &lt;</FONT><A=20
href=3D"mailto:carej@us.ibm.com"><FONT face=3DArial=20
size=3D2>carej@us.ibm.com</FONT></A><FONT face=3DArial size=3D2>&gt; =
wrote in message=20
</FONT><A href=3D"news:f9t87m$5m7$1@build.eclipse.org"><FONT =
face=3DArial=20
size=3D2>news:f9t87m$5m7$1@build.eclipse.org</FONT></A><FONT =
face=3DArial=20
size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt; Joe Gagnon =
wrote:<BR>&gt;=20
<BR>&gt;&gt; For some reason that we can't figure out, this feature no =
longer=20
works for <BR>&gt;&gt; certain files, but continues to work fine for=20
others.&nbsp; All files exist and I <BR>&gt;&gt; have tried numerous =
things,=20
including cleaning the projects, doing an SVN <BR>&gt;&gt; cleanup, =
refreshing=20
the workspace, restarting eclipse and rebooting the <BR>&gt;&gt; =
machine.&nbsp;=20
All to no avail.<BR>&gt; <BR>&gt; The files that you can't find, are =
they files=20
in your projects or <BR>&gt; Eclipse classes?<BR>&gt; <BR>&gt; -- =
<BR>&gt;=20
Jeffrey E. (Jeff)=20
Care&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n b=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb s=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;=20
</FONT><A href=3D"mailto:carej@us.ibm.com"><FONT face=3DArial=20
size=3D2>carej@us.ibm.com</FONT></A><BR><FONT face=3DArial size=3D2>&gt; =
WebSphere=20
Application=20
Server&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& ;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& ;=
nbsp;&nbsp;=20
Systems Management Development</FONT></BODY></HTML>

------=_NextPart_000_0007_01C7DF1A.97BA6F30--
Re: Navigate->Open Type won't work for some classes [message #319221 is a reply to message #319205] Wed, 15 August 2007 17:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse5.rizzoweb.com

Joe Gagnon wrote:
> They are files in our project. I can open say,
> org.eclipse.jface.viewers.TableViewer, or java.lang.String with no
> problem. The problem only showed up yesterday, whereas, before I was
> able to open classes anywhere with no problem at all.
>
> We have a total of 18 "projects" in our project, each one representing
> some major portion of the product functionality. It appears that it
> happens with classes in only one of the projects (based upon a little
> experimentation). I don't know whether any Eclipse/RCP-specific
> properties were changed recently, I'd have to ask our technical lead.
> Others on the project are experiencing the same problem with the same
> classes, so it's not something specific to my system.
>
> When Navigate->Open Type is used to locate and open a class in this
> project, after the class is selected in the Open Type dialog (which
> displays the class and its package correctly) an error dialog appears
> with the following message:
>
> Type '<fully qualified class name>' could not be found in '<project
>
> name>'. Make sure all workspace resources are refreshed.

Did you right-click on the Eclipse Project and choose Refresh?
Another thing to try is to Clean the project, which will wipe out the
build destination directory and re-build everything.
Finally, double-check that the location where the problematic classes
are located is included as a Source Location in the project build path.

Hope this helps,
Eric
Re: Navigate->Open Type won't work for some classes [message #319241 is a reply to message #319221] Thu, 16 August 2007 03:39 Go to previous message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

Eric Rizzo wrote:
> Joe Gagnon wrote:
>> They are files in our project. I can open say,
>> org.eclipse.jface.viewers.TableViewer, or java.lang.String with no
>> problem. The problem only showed up yesterday, whereas, before I was
>> able to open classes anywhere with no problem at all.
>>
>> We have a total of 18 "projects" in our project, each one representing
>> some major portion of the product functionality. It appears that it
>> happens with classes in only one of the projects (based upon a little
>> experimentation). I don't know whether any Eclipse/RCP-specific
>> properties were changed recently, I'd have to ask our technical lead.
>> Others on the project are experiencing the same problem with the same
>> classes, so it's not something specific to my system.
>>
>> When Navigate->Open Type is used to locate and open a class in this
>> project, after the class is selected in the Open Type dialog (which
>> displays the class and its package correctly) an error dialog appears
>> with the following message:
>>
>> Type '<fully qualified class name>' could not be found in '<project
>>
>> name>'. Make sure all workspace resources are refreshed.
>
> Did you right-click on the Eclipse Project and choose Refresh?
> Another thing to try is to Clean the project, which will wipe out the
> build destination directory and re-build everything.
> Finally, double-check that the location where the problematic classes
> are located is included as a Source Location in the project build path.
>
> Hope this helps,
> Eric
Make sure that there are no build path errors for the project that is
causing you problems. These only show up at the project name level and
are easy to miss.
Previous Topic:Strange differences between two eclipse installations...
Next Topic:Need Sample Code Snippets for FileDiff and FileMerge using eclipse compare package
Goto Forum:
  


Current Time: Mon Jan 13 18:56:20 GMT 2025

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

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

Back to the top