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

Summary: Hints for creating qualifier types
Product: javaee Reporter: Erno Mononen <emononen>
Component: CDIAssignee: David Konecny <dkonecny>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

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