Community
Participate
Working Groups
To render the correct icon for enums and annotations in the Open Type dialog the search engine has to report this information via the ITypeNameRequestor.
Unfortunately since clients implement this interface, we cannot modify it. We should deprecate it and replace it with a class with a default behavior.
Detection of circular annotations does not blocks the implementation of this enhancement => remove dependency.
It would be nice if the new API would just return the modifier flags and solve bug 36896 as well.
Dirk, Proposal to match your requirement would be to have a new class org.eclipse.jdt.core.search.TypeNameRequestor. I'll attach it to this bug to make its review easier... Of course interface ITypeNameRequestor would be deprecated and SearchEngine will continue to assume its use transparently. I've verified that's assumption was true by running all JDT/UI tests with new implementation and got no error :-)
Created attachment 18593 [details] TypeNameRequestor.java Let me know asap if this class matches your requirement, thx
Frederic, can you clarify on the parameter @param access the restriction access for the type. <code>null</code> means no restriction.
Sorry, AccessRestriction is currently JDT/Core internal, so it should never be presented in this API... You can forget it.
Then the API is fine with me.
Created attachment 18687 [details] New version for TypeNameRequestor Internal parameter access restriction removed + Update modifiers param javadoc
Fixed. TypeNameRequestor now replaces deprecated ITypeNameRequestor. [jdt-core-internal] No specific test cases added, just keep OldSearchTests using deprecated interface to verify that search engine assume backward compatibility and modify all other clients to use new class...
Verified in I20050330-0500