Community
Participate
Working Groups
N20050418-0010 I was just working on o.e.ui.tests and tried to write some code that used MessageDialog, but it could not be found. The o.e.ui.tests project is no longer able to reference classes from o.e.jface or o.e.ui.workbench. Note that o.e.ui.tests depends on o.e.ui which exports o.e.jface and o.e.ui.workbench, so they should be there. The builder, content assist, and organize imports all cannot see the classes from this plugin. Expanding the "Plug-in Dependencies" tab for o.e.ui.tests reveals that o.e.jface and o.e.ui.workbench are both missing from the PDE classpath container.
Correction: the builder seems to be working fine. If I add the import by hand, the code still compiles and I don't get red X's. It's only the UI (content assist, organize imports, package explorer, project properties, etc.) that seems confused.
seems like a UI problem...
was org.eclipse.ui a project in your workspace? If so, expanding the classpath container for o.e.ui.tests indeed should not show o.e.jface, etc. as they are not directly on the classpath. They are available to your plugin by being reexported by the org.eclipse.ui project. right-click on the Pde container for org.eclipse.ui and select configure..., tell me what you see there.
When I right-click on org.eclipse.ui/Plug-in Dependencies and go to configure..., I see jface and workbench. When I right-click on org.eclipse.ui.tests/Plug-in Dependencies and go to configure..., I see org.eclipse.ui but not jface or workbench. o.e.ui was indeed a project in my workspace.
I am seeing a similar problem: org.eclipse.help.base requires org.eclipse.help and re-exports it org.eclipse.help.ui requires org.eclipse.help.base I can see classes in API packages like 'ITopic', but not internal classes like 'Topic' from org.eclipse.help.
Stefan, your classpath is correct. This might have to do with access restrictions that were on for the nightly build, but turned off for today's I- build. Dejan, what build are you using?
8am integration
Dejan, access restrictions are off in the 8 am I-build. I suggest opening a separate bug report against JDT/Core. The nightly build may be related to access restrictions, so I would like to investigate that case more.
actually, I just confirmed that access restrictions were off for the nightly build too. The fact that comment 1 says that everything compiles fine indicates that the classpath is complete. I just verified that it is. Moving to JDT/Core to investigate the code assist.
*** Bug 91979 has been marked as a duplicate of this bug. ***
The bug was introduced with the fix of bug 79288. Export must not be check on rawEntry.
Fix is released and solve the code assist and organize import problem. Needs to add a regression test.
Add test CompletionTests2#testBug91772()
Verified in I20050510-0010 + JDT/Core v_556