Community
Participate
Working Groups
Build 20011127 + latest JDTCORE (v_216c) In a new project, empty source folder, add a type p1/X.java all at once using the class wizard (package p1 must not pre-exist). The package view does only display added package p1 (i.e. does not show the added type). Deltas look confusing, the unit addition got notified, but an extra package addition notification is likely fooling the package view.
When a class is created at the same time as its package, here is what happens in an IWorkspaceRunnable: - the package is created (in a Java Model Operation) and opened (it has no children) - the compilation unit is created (in a Java Model Operation) by creating an IFile - when the IResourceDelta is sent, the delta processsor only sees the addition of the package, and since it is already opened, it remains with no children. Fixed by forcing and added element to be closed (this is a noop if it is already closed).