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 187946 - Hints for creating qualifier types
Summary: Hints for creating qualifier types
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: CDI (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-22 13:11 UTC by Erno Mononen
Modified: 2010-08-26 03:23 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 Erno Mononen 2010-06-22 13:11:54 UTC
In an app utilizing CDI it seems common to use custom qualifier types quite a lot. It'd be nice if the IDE offered similar hints for creating them as for normal Java classes. So for example after typing in a non-existing annotation @MyQualifier, a hint for creating a qualifier would be offered and applying that hint would create the qualifier using an appropriate template, such as 

import javax.inject.Qualifier;
... other imports ... 

@Target( { TYPE, METHOD, PARAMETER, FIELD })
@Retention(RUNTIME)
@Documented
@Qualifier
public @interface MyQualifier {
}
Comment 1 Denis Anisimov 2010-08-25 16:10:49 UTC
changeset:   176001:567fb59c2711
user:        Denis Anisimov <ads@netbeans.org>
date:        Wed Aug 25 20:03:04 2010 +0400
summary:     Fix for BZ#187946 -  Hints for creating qualifier types
Comment 2 Quality Engineering 2010-08-26 03:23:18 UTC
Integrated into 'main-golden', will be available in build *201008260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/567fb59c2711
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#187946 -  Hints for creating qualifier types