OndroMih commented on code in PR #9324:
URL: https://github.com/apache/netbeans/pull/9324#discussion_r3044658555


##########
ide/git/src/org/netbeans/modules/git/GitVCS.java:
##########
@@ -111,6 +113,13 @@ public void propertyChange(PropertyChangeEvent event) {
         if 
(event.getPropertyName().equals(FileStatusCache.PROP_FILE_STATUS_CHANGED)) {
             FileStatusCache.ChangedEvent changedEvent = 
(FileStatusCache.ChangedEvent) event.getNewValue();
             fireStatusChanged(changedEvent.getFile());
+        } else if 
(event.getPropertyName().equals(FileStatusCache.PROP_FILES_STATUS_CHANGED)) {
+            List<FileStatusCache.ChangedEvent> changedEvents = 
(List<FileStatusCache.ChangedEvent>) event.getNewValue();
+            Set<File> files = new HashSet<>(changedEvents.size());

Review Comment:
   Updated as suggested



##########
ide/git/src/org/netbeans/modules/git/ui/diff/MultiDiffPanelController.java:
##########
@@ -1123,15 +1123,24 @@ public void propertyChange (PropertyChangeEvent evt) {
         if 
(FileStatusCache.PROP_FILE_STATUS_CHANGED.equals(evt.getPropertyName())) {
             FileStatusCache.ChangedEvent changedEvent = 
(FileStatusCache.ChangedEvent) evt.getNewValue();
             if (LOG.isLoggable(Level.FINE)) {
-                LOG.log(Level.FINE, "File status for file {0} changed from {1} 
to {2}", new Object[] { 
-                    changedEvent.getFile(), 
+                LOG.log(Level.FINE, "File status for file {0} changed from {1} 
to {2}", new Object[] {
+                    changedEvent.getFile(),
                     changedEvent.getOldInfo(),
                     changedEvent.getNewInfo() } );
             }
-            if (revisionLeft == Revision.HEAD // remove when we're able to 
refresh single file changes for Local vs. any revision 
+            if (revisionLeft == Revision.HEAD // remove when we're able to 
refresh single file changes for Local vs. any revision
                     && revisionRight == Revision.LOCAL && 
affectsView(changedEvent)) {
                 applyChange(changedEvent);
             }
+        } else if 
(FileStatusCache.PROP_FILES_STATUS_CHANGED.equals(evt.getPropertyName())) {
+            @SuppressWarnings("unchecked")
+            List<FileStatusCache.ChangedEvent> changedEvents = 
(List<FileStatusCache.ChangedEvent>) evt.getNewValue();
+            for (FileStatusCache.ChangedEvent changedEvent : changedEvents) {
+                if (revisionLeft == Revision.HEAD // remove when we're able to 
refresh single file changes for Local vs. any revision
+                        && revisionRight == Revision.LOCAL && 
affectsView(changedEvent)) {

Review Comment:
   Updated as suggested



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to