This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 268262 - Allow auto-completion for annotation attribute values by doing a static import
Summary: Allow auto-completion for annotation attribute values by doing a static import
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-29 06:57 UTC by terje7601
Modified: 2016-09-29 06:57 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description terje7601 2016-09-29 06:57:17 UTC
To keep my annotations concise, I always use static imports for constants in annotation attribute values. For example:

instead of:

import javax.persistence.DiscriminatorType;
with
@DiscriminatorColumn(discriminatorType = DiscriminatorType.INTEGER)

I want:

import static javax.persistence.DiscriminatorType.INTEGER;
with
@DiscriminatorColumn(discriminatorType = INTEGER)

So I'd like to have an option which changes auto-completion inside annotations to use static imports whenever possible.