Bug 37401 - Open Type should have a way of distinguishing between .java and .class files
Summary: Open Type should have a way of distinguishing between .java and .class files
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 37402
  Show dependency tree
 
Reported: 2003-05-08 14:52 EDT by Jacob Taylor CLA
Modified: 2003-05-09 13:12 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jacob Taylor CLA 2003-05-08 14:52:26 EDT
If I hit ctrl-shift-t to open type, and then type in CTIM, I end up with one 
name selected. In the bottom view, there are two entries.  One for the class 
file and one for the source file.  The one for the class file is selected by 
default.  My output files are put under dest\classes and the source is under 
src (so it appears to be alphabetically sorted).  This means that if I hit ok, 
it will select the class file and fail since the class file is not in my 
classpath.

Please let me know if I can provide any additional information.
Thanks.
Comment 1 Jacob Taylor CLA 2003-05-08 15:02:29 EDT
Actually, I ctrl-shift-t did not open the type.  This appears to be a bug.  I 
had to use the menu option.  I will file the another bug for the keyboard 
shortcut.
Comment 2 Dirk Baeumer CLA 2003-05-09 04:45:48 EDT
Jacob, 

I assume there is something wrong with your setup. The open type dialog only 
presents types that are on the build path. If you create a single project P 
with a CU A.java in it and open the Open Type dialog you should only see 
A.java not A.class. Is this the case ?

I assume that somehow both the CU and the class file in on your build path. 
(context menu for project -> Properties -> Java Build Path.
Comment 3 Jacob Taylor CLA 2003-05-09 13:09:51 EDT
Thank You!  That was the problem.

I had included the output folder from one project into another project.  Once I 
removed this, things started working much better.  Also, the keyboard shortcut 
for open type started to work.  Bug: 37402
Comment 4 Dirk Baeumer CLA 2003-05-09 13:12:36 EDT
Setup problem.