Omaha #3378 path manager cache changes
Change-Id: Ib46f5ac807dfccd6d507fc49d474d16ec19d82b2 Former-commit-id:8736afb4c5
[formerly2fe6fcf0ed
[formerly282304b8f7
] [formerly8736afb4c5
[formerly 01106a4e4cd5b5eb0caa0d639439351f291e345c]]] Former-commit-id:2fe6fcf0ed
[formerly282304b8f7
] Former-commit-id:2fe6fcf0ed
Former-commit-id:189667ea54
This commit is contained in:
parent
d6e21f01fb
commit
483ef68979
1 changed files with 14 additions and 3 deletions
|
@ -21,7 +21,7 @@ package com.raytheon.uf.viz.thinclient.localization;
|
|||
|
||||
import java.io.File;
|
||||
|
||||
import com.raytheon.uf.common.localization.PathManager;
|
||||
import com.raytheon.uf.common.localization.IPathManager;
|
||||
import com.raytheon.uf.common.localization.PathManagerFactory;
|
||||
import com.raytheon.uf.viz.core.localization.CAVELocalizationAdapter;
|
||||
import com.raytheon.uf.viz.core.localization.CAVELocalizationNotificationObserver;
|
||||
|
@ -38,6 +38,7 @@ import com.raytheon.uf.viz.thinclient.preferences.ThinClientPreferenceConstants;
|
|||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Oct 31, 2011 mschenke Initial creation
|
||||
* Jul 24, 2014 3378 bclement cache serialization done via interface
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -61,7 +62,12 @@ public class LocalizationCachePersistence extends AbstractCachePersistance {
|
|||
*/
|
||||
@Override
|
||||
public void store(File cacheFile) {
|
||||
PathManager.storeCache(cacheFile);
|
||||
IPathManager pathManager = PathManagerFactory.getPathManager();
|
||||
try {
|
||||
pathManager.storeCache(cacheFile);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -73,7 +79,12 @@ public class LocalizationCachePersistence extends AbstractCachePersistance {
|
|||
*/
|
||||
@Override
|
||||
public void restore(File cacheFile) {
|
||||
PathManager.restoreCache(cacheFile);
|
||||
IPathManager pathManager = PathManagerFactory.getPathManager();
|
||||
try {
|
||||
pathManager.restoreCache(cacheFile);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue