Community
Participate
Working Groups
When importing a namespace and its subnamespace, the code completion inserts a qualified name for an referenced element even though the subnamespace is imported. Example: ... import datatypes.* import datatypes.subtypes.* interface senderReceiver MyTest { data subtypes.MyUInt8 <- inserted by code completion ################ } The problem is that in: ImportedNamespaceAwareLocalScopeProvider#getImportedElements(...) ... for (ImportNormalizer normalizer : normalizers) { final String newName = normalizer.longToShortName(input.getName()); if (newName != null) { return new AliasedEObjectDescription(newName, input); ... the first shortened name is returned (which might not be the shortest one). A workaround is to store the importNormalizers in a Set that is ordered by the length of the imported name.
The precedence has been inverted, such that given your example the shorter name comes first (i.e. precedence is bottom up). This allows to reference using the longer name as well, and lets the user control the precedence of imports.
Closing bug which were set to RESOLVED before Eclipse Neon.0.