Issue #3516 ColorMapTree change listener now only gets colormaps changes.

Change-Id: Id19d0c0e958ec64a19abc064817780d067add023

Former-commit-id: fa91c4ac44 [formerly bb265611d13e6cb9812aca3966d9fe2a20990a36]
Former-commit-id: 28347129a1
This commit is contained in:
Roger Ferrel 2014-09-12 14:45:25 -05:00
parent 775dd2520d
commit 7b052e61ca

View file

@ -49,6 +49,7 @@ import com.raytheon.uf.viz.core.drawables.ColorMapLoader;
* Sep 18, 2013 2421 bsteffen Initial creation
* Sep 11, 2014 3516 rferrel file updates now inform the factory.
* getName() no longer returns a null.
* FileChangeListener now only gets colormaps changes.
*
* </pre>
*
@ -97,8 +98,11 @@ public class ColorMapTree {
this.pathManager = pathManager;
this.level = level;
this.context = null;
LocalizationNotificationObserver.getInstance()
.addGlobalFileChangeObserver(new FileChangeListener(this));
LocalizationFile dir = pathManager.getLocalizationFile(
pathManager.getContext(LocalizationType.COMMON_STATIC, level),
path);
dir.addFileUpdatedObserver(new FileChangeListener(this));
}
/**
@ -227,7 +231,7 @@ public class ColorMapTree {
path));
}
}
} else if (context.equals(context)) {
} else if (context.equals(this.context)) {
synchronized (filesLock) {
files = null;
}