Issue #3516 ColorMapTree change listener now only gets colormaps changes.
Change-Id: Id19d0c0e958ec64a19abc064817780d067add023 Former-commit-id:28347129a1
[formerly bb265611d13e6cb9812aca3966d9fe2a20990a36] Former-commit-id:fa91c4ac44
This commit is contained in:
parent
fffec40c30
commit
76011cb3eb
1 changed files with 7 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue