diff -r 63fbb5948c05 websvc.rest/src/org/netbeans/modules/websvc/rest/editor/RestConfigurationTask.java --- a/websvc.rest/src/org/netbeans/modules/websvc/rest/editor/RestConfigurationTask.java Wed Oct 31 14:29:38 2012 +0100 +++ b/websvc.rest/src/org/netbeans/modules/websvc/rest/editor/RestConfigurationTask.java Wed Oct 31 14:53:39 2012 +0100 @@ -69,9 +69,9 @@ */ @Override public void run( CompilationInfo info ) throws Exception { - RestScanTask scanTask = new RestScanTask(factory, fileObject, info ); + RestScanTask scanTask = new RestScanTask(factory, fileObject ); task.set(scanTask); - scanTask.run(); + scanTask.run(info); HintsController.setErrors(fileObject, "REST Configuration", // NOI18N scanTask.getHints()); } diff -r 63fbb5948c05 websvc.rest/src/org/netbeans/modules/websvc/rest/editor/RestScanTask.java --- a/websvc.rest/src/org/netbeans/modules/websvc/rest/editor/RestScanTask.java Wed Oct 31 14:29:38 2012 +0100 +++ b/websvc.rest/src/org/netbeans/modules/websvc/rest/editor/RestScanTask.java Wed Oct 31 14:53:39 2012 +0100 @@ -99,16 +99,15 @@ class RestScanTask { RestScanTask( RestConfigurationEditorAwareTaskFactory factory, - FileObject fileObject, CompilationInfo info ) + FileObject fileObject) { this.factory = factory; this.fileObject = fileObject; - this.info = info; hints = new LinkedList(); stop = new AtomicBoolean( false ); } - void run(){ + void run(CompilationInfo info){ Project project = FileOwnerQuery.getOwner(fileObject); if ( project == null ){ return; @@ -132,10 +131,10 @@ } } if (needConfiguration) { - configureRest(project, support); + configureRest(project, support, info); } else { - checkApplicationConfiguration(project, support); + checkApplicationConfiguration(project, support, info); } } catch(IOException e ){ @@ -158,14 +157,14 @@ } private void checkApplicationConfiguration( Project project, - WebRestSupport support ) throws MetadataModelException,IOException, + WebRestSupport support, CompilationInfo info ) throws MetadataModelException,IOException, InterruptedException, ExecutionException { List applications = support.getRestApplications(); if ( applications.isEmpty() ){ return; } - List restResources = getRestResources(support); + List restResources = getRestResources(support, info); for (TypeElement typeElement : restResources) { String fqn = typeElement.getQualifiedName().toString(); if ( !support.hasApplicationResourceClass(fqn ) ){ @@ -187,11 +186,11 @@ } } - private void configureRest( Project project, WebRestSupport support ) + private void configureRest( Project project, WebRestSupport support, CompilationInfo info ) throws MetadataModelException,IOException, InterruptedException, ExecutionException { - List rest = getRestResources(support); + List rest = getRestResources(support, info); if ( rest.isEmpty() ){ return; } @@ -209,7 +208,7 @@ hints.add(description); } - private List getRestResources(WebRestSupport support) + private List getRestResources(WebRestSupport support, CompilationInfo info) throws MetadataModelException,IOException, InterruptedException, ExecutionException { @@ -309,7 +308,6 @@ private FileObject fileObject; private RestConfigurationEditorAwareTaskFactory factory; - private CompilationInfo info; private List hints; private AtomicBoolean stop; }