Community
Participate
Working Groups
I20040529 1. Create a Java project with the following structure: proj src org eclipse mypack A.java 2. Set an exclusion filter of src to "org/*|org/eclipse/*". Observe: Empty packages org and org.eclipse are still in Java model. Only org.eclipse.mypack should be in te Java model, and org should be a non-Java resource.
Note UI bug 65240 needs to be fixed first (Package explorer is broken in hierarchical layout mode if a package exists without its super package).
From a pure Java model point, we're inconsistent with the equivalent case of the "org/eclipse/mypack" inclusion filter.
To be precise, the 2 following patterns should be equivalent: - "*|org/*|org/eclipse/*" exclusion pattern - "org/eclipse/mypack/" inclusion pattern
Created attachment 11571 [details] Proposed patch
Fixing this will break the hierarchical layout mode in package explorer and packages view, so I request not fixing this for 3.0 since we can't adapt the views to this (see comments in bug 65240). For the UI it would even be better if the inclusion case would report parents as packages as well. However I can understand that this is wrong from a model standpoint so we decided to doc this UI issue as a know limitation for 3.0.
deferred post 3.0
Reopening for inclusion in 3.1. Dirk can the UI be now changed to support this scenario ?
Yes, we have to change it for inclusion filters anyway. But this requires some work and it will very likely not be done in the next 2 - 3 months since we are focusing on 1.5. I make the bug dependend on bug 65240 since this should fix it for exclusion filters as well.
Since bug 65240 is not going to be fixed for 3.1, deferring this bug post 3.1.
Reopening since bug 65240 is now fixed.
Release patch and added regression test ExclusionPatternTests#testCreateExcludePackage2()
Verified for 3.2 M5 using build I20060214-0010.