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.
<!-- ACTUAL CHANGES BEGIN HERE: -->
<changes>
<change id="ap-query-enabledineditor">
<api name="classpath"/>
<summary>Introducing AnnotationProcessingQuery.Result.annotationProcessingEnabledInEditor</summary>
<version major="1" minor="27"/>
<date day="9" month="4" year="2010"/>
<author login="dbalek"/>
<compatibility addition="yes" modification="no" semantic="compatible" source="compatible" binary="compatible"/>
<description>
<p>Adding AnnotationProcessingQuery.Result.annotationProcessingEnabledInEditor() to inform whether the annotation processors should be run inside Java editor.
</p>
</description>
<class package="org.netbeans.api.java.queries" name="AnnotationProcessingQuery" />
<issue number="183793"/>
</change>
<change id="ap-query-processoroptions">
<summary>Introducing AnnotationProcessingQuery.Result.processorOptions</summary>
Manifest-Version: 1.0
OpenIDE-Module: org.netbeans.api.java/1
OpenIDE-Module-Specification-Version: 1.26
OpenIDE-Module-Specification-Version: 1.27
OpenIDE-Module-Localizing-Bundle: org/netbeans/api/java/queries/Bundle.properties
AutoUpdate-Show-In-Client: false
*/
public static interface Result {
/**Whether the annotation processors should be run.
*
* @return true if and only if the annotation processors should be run
public boolean annotationProcessingEnabled();
/**Whether the annotation processors should be run inside Java editor.
* @return true if and only if the annotation processors should be run inside the Java editor
* @since org.netbeans.api.java/1 1.27
public boolean annotationProcessingEnabledInEditor();
/**Which annotation processors should be run.
return false;
}
public boolean annotationProcessingEnabledInEditor() {
public Iterable<? extends String> annotationProcessorsToRun() {
return null;
org.netbeans.api.javahelp.Help
OpenIDE-Module-Layer: org/netbeans/modules/apisupport/project/ui/resources/layer.xml
OpenIDE-Module-Specification-Version: 1.40
OpenIDE-Module-Specification-Version: 1.41
@Override
return true;
OpenIDE-Module: org.netbeans.modules.java.api.common/0
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/java/api/common/resources/Bundle.properties
OpenIDE-Module-Specification-Version: 1.15
OpenIDE-Module-Specification-Version: 1.16
public boolean annotationProcessingEnabled() {
return TRUE.contains(evaluator.getProperty(annotationProcessingEnabledProperty));
return TRUE.contains(evaluator.getProperty(annotationProcessingEnabledProperty))
&& TRUE.contains(evaluator.getProperty(annotationProcessingEnabledInEditorProperty));
* @param helper project's AntProjectHelper
* @param evaluator project's evaluator
* @param annotationProcessingEnabledProperty property whose value says whether the annotation processing is enabled for the given project at all
* (will be returned from {@link Result#annotationProcessingEnabled()})
* @param annotationProcessingEnabledInEditorProperty property whose value says whether the annotation processing should be enabled
* in the editor (will be returned from {@link Result#annotationProcessingEnabled())}
* in the editor (will be returned from {@link Result#annotationProcessingEnabledInEditor()})
* @param runAllAnnotationProcessorsProperty when true, {@link Result#annotationProcessorsToRun()} will return null
* @param annotationProcessorsProperty should contain comma separated list of annotation processors to run (will be returned from {@link Result#annotationProcessorsToRun()})
* @param sourceOutputProperty directory to which the annotation processors generate source files (will be returned from {@link Result#sourceOutputProperty()})
OpenIDE-Module: org.netbeans.modules.java.freeform/1
OpenIDE-Module-Specification-Version: 1.18
OpenIDE-Module-Specification-Version: 1.19
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/java/freeform/Bundle.properties
OpenIDE-Module-Layer: org/netbeans/modules/java/freeform/resources/layer.xml
public @Override boolean annotationProcessingEnabled() {
public @Override boolean annotationProcessingEnabledInEditor() {
public @Override Iterable<? extends String> annotationProcessorsToRun() {
javac.compilerargs=-Xlint -Xlint:-serial
javac.source=1.6
spec.version.base=1.37.0
spec.version.base=1.38.0
javadoc.arch=${basedir}/arch.xml
javadoc.apichanges=${basedir}/apichanges.xml
changed = true;
if (!J2SEProjectUtil.isTrue(prop.getProperty(ProjectProperties.ANNOTATION_PROCESSING_ENABLED_IN_EDITOR))) {
if (!J2SEProjectUtil.isTrue(prop.getProperty(ProjectProperties.ANNOTATION_PROCESSING_ENABLED))) {
prop.setProperty(ProjectProperties.ANNOTATION_PROCESSING_ENABLED_IN_EDITOR, "true"); //NOI18N
prop.setProperty(ProjectProperties.ANNOTATION_PROCESSING_ENABLED, "true"); //NOI18N
if (changed) {
data.appendChild (testRoots);
h.putPrimaryConfigurationData(data, true);
ep.setProperty(ProjectProperties.ANNOTATION_PROCESSING_ENABLED, "true"); // NOI18N
ep.setProperty(ProjectProperties.ANNOTATION_PROCESSING_ENABLED_IN_EDITOR, "true"); // NOI18N
ep.setProperty(ProjectProperties.ANNOTATION_PROCESSING_ENABLED_IN_EDITOR, "false"); // NOI18N
ep.setProperty(ProjectProperties.ANNOTATION_PROCESSING_RUN_ALL_PROCESSORS, "true"); // NOI18N
ep.setProperty(ProjectProperties.ANNOTATION_PROCESSING_PROCESSORS_LIST, ""); // NOI18N
ep.setProperty(ProjectProperties.ANNOTATION_PROCESSING_SOURCE_OUTPUT, "${build.generated.sources.dir}/ap-source-output"); // NOI18N
javadoc.title=Java Source
spec.version.base=0.57.0
spec.version.base=0.58.0
test.qa-functional.cp.extra=${refactoring.java.dir}/modules/ext/javac-api-nb-7.0-b07.jar
test.unit.run.cp.extra=${o.n.core.dir}/core/core.jar:\
${o.n.core.dir}/lib/boot.jar:\
return aptOptions.annotationProcessingEnabled();
public boolean aptEnabledInEditor() {
return aptOptions.annotationProcessingEnabledInEditor();
public Collection<? extends Processor> resolveProcessors() {
List<URL> urls = new LinkedList<URL>();
for (Entry e : processorPath.entries()) {
options.add("-g:vars"); // NOI18N, Make the compiler to maintain local variables table
options.add("-source"); // NOI18N
options.add(validatedSourceLevel.name);
boolean aptEnabled = aptUtils != null && aptUtils.aptEnabled() && !ClasspathInfoAccessor.getINSTANCE().getCachedClassPath(cpInfo, PathKind.SOURCE).entries().isEmpty();
boolean aptEnabled = aptUtils != null && (backgroundCompilation ? aptUtils.aptEnabled() : aptUtils.aptEnabledInEditor())
&& !ClasspathInfoAccessor.getINSTANCE().getCachedClassPath(cpInfo, PathKind.SOURCE).entries().isEmpty();
if (aptEnabled) {
for (Map.Entry<? extends String, ? extends String> entry : aptUtils.processorOptions().entrySet()) {
StringBuilder sb = new StringBuilder();