@Override public String getNameImpl() { Import imprt = getReference(); if (imprt == null) { return super.getNameImpl(); } String relativePath = getRelativePath(imprt); if (relativePath != null && relativePath.length() > 0) { return relativePath; } String location = imprt.getLocation(); if (location != null && location.length() > 0) { return ResolverUtility.decodeLocation(location); } String namespace = imprt.getNamespace(); if (namespace != null && namespace.length() > 0) { return namespace; } // TODO:change to use NbBundle, figure out good name return "Unqualified"; }