#112368 Updating Legacy Project process starts when Datasource node is collapsed
Fixed. Only start progress bar if the project had not been modeled.
1.1 --- a/visualweb.dataconnectivity/src/org/netbeans/modules/visualweb/dataconnectivity/datasource/DataSourceResolver.java Wed Aug 08 23:52:01 2007 +0000
1.2 +++ b/visualweb.dataconnectivity/src/org/netbeans/modules/visualweb/dataconnectivity/datasource/DataSourceResolver.java Thu Aug 09 01:14:58 2007 +0000
1.3 @@ -182,14 +182,16 @@
1.4 topComponent = TopComponent.getRegistry().getActivated();
1.5 topComponent.setCursor(Utilities.createProgressCursor(topComponent));
1.6 String progressBarLabel = org.openide.util.NbBundle.getMessage(DataSourceResolver.class, "ProgressBarLabel"); //NOI18N
1.7 - handle = ProgressHandleFactory.createHandle(progressBarLabel);
1.8 - handle.start();
1.9 - handle.switchToIndeterminate();
1.10 FacesModelSet modelSet = FacesModelSet.startModeling(project);
1.11 + if (modelSet == null) {
1.12 + handle = ProgressHandleFactory.createHandle(progressBarLabel);
1.13 + handle.start();
1.14 + handle.switchToIndeterminate();
1.15 + }
1.16 +
1.17 if (modelSet != null) {
1.18 ModelSet.removeModelSetsListener(modelingListener);
1.19 - ProjectDataSourceTracker.refreshDataSourceReferences(project);
1.20 - update(project);
1.21 + ProjectDataSourceTracker.refreshDataSourceReferences(project);
1.22
1.23 if (handle != null) {
1.24 handle.finish();