Bug 7976 - JDT misses the new Java files created by PDE
Summary: JDT misses the new Java files created by PDE
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M3   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 7306 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-01-21 19:10 EST by Dejan Glozic CLA
Modified: 2006-06-19 09:38 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 Dejan Glozic CLA 2002-01-21 19:10:05 EST
Scenario to reproduce:

1) Start PDE Project wizard and enter 'com.example.xyz' for the project name.
2) Go to the end of the wizard by accepting the default values and selecting 
the default plug-in content wizard (the only choice in the provided list). 
Press Finish.
3) As a result, a project structure will be created and manifest editor will be 
opened.
4) Try to select the plug-in class hyperlink in the first page (top-left). It 
will not work.

The reason it doesn't is because Java plugin cannot find the type. If you check 
the Packages view, there are no packages under 'src' folder even though it 
compiles nicely and 'bin' folder contains the class. The file exists in the 
Navigator and contains the correct package name.

However, if I switch to the Navigator, close and then open the project again, 
the Java file is recognized and the hyperlink will open the file into the Java 
editor.

This is a regression - it used to work in 1.0., but I don't know when this 
started to show up.
Comment 1 Erich Gamma CLA 2002-01-21 19:13:44 EST
The fact that closing and reopening the project fixes the problem indicates a 
problem in the Java element info caching.

Moving to Java Core
Comment 2 Dejan Glozic CLA 2002-01-21 19:15:40 EST
Some additional info: if the package is already present, creating new Java 
files by PDE under the same package seems to work. It looks like the problem 
shows up when the source folder does not contain a package and the generated 
Java file is the first in that package.
Comment 3 Dejan Glozic CLA 2002-01-22 14:19:18 EST
*** Bug 7306 has been marked as a duplicate of this bug. ***
Comment 4 Philipe Mulet CLA 2002-01-23 07:03:28 EST
Refresh problem
Comment 5 Jerome Lanneluc CLA 2002-02-11 10:22:41 EST
Could not reproduce in 20020205 (you didn't provide the build number btw). I'm 
getting the correct delta (i.e. the package is added), and there is a package 
under the src folder.
Please re-open if you still see the problem. 
Comment 6 rolarenfan CLA 2002-02-12 09:32:33 EST
regarding the bug 7306 duped into this one: I did provide the build number, and was not convinced that Dejan's bug was the same as this one; if I see it again, I'll try to get a better description and reopen 7306.