Community
Participate
Working Groups
Build Identifier: If an annotation's attribute is a Class<?> type, and I use auto-complete to select a class, the ".class" qualifier does not appear. So, it's extra clicks to add the dot and then the qualifier. This shouldn't be necessary. Granted, Eclipse can't divine how I am going to get the class object, but my pattern is pretty typical (especially with JPA!). How about a new option that adds ".class" if auto-completing a Class<?> annotation attribute? (PS: Can this enhancement apply to method parameters too?) Reproducible: Always Steps to Reproduce: Select the class from auto-complete.
>If an annotation's attribute is a Class<?> type, and I use auto-complete to >select a class, the ".class" You can type a '.' to make the proposal pop-up open again which suggests '.class', right?
> You can type a '.' to make the proposal pop-up open again which suggests > '.class', right? Of course. Just to be clear, this ticket is to save the extra two clicks. It's really not necessary when I am choosing a class for a Class<?> type.
(In reply to comment #2) > > You can type a '.' to make the proposal pop-up open again which suggests > > '.class', right? > > Of course. Just to be clear, this ticket is to save the extra two clicks. It's > really not necessary when I am choosing a class for a Class<?> type. OK, just wanted to make sure. Automatically adding ".class" when the user selects the type is not something I want to add an option for. What I could imagine is that JDT Core detects this scenario and then proposes both, the type and the class object.