Revert "remove alertviz check from osx client"
This reverts commit 6411aff2e7
.
This commit is contained in:
parent
24be7c877f
commit
98d454a06b
6 changed files with 13 additions and 9 deletions
|
@ -220,7 +220,7 @@ public class AlertVizApplication implements IStandaloneComponent {
|
|||
|
||||
protected void initializeLocalization() throws Exception {
|
||||
PathManagerFactory.setAdapter(new CAVELocalizationAdapter());
|
||||
new LocalizationInitializer(true).run();
|
||||
new LocalizationInitializer(true, false).run();
|
||||
AlertVizLocalizationConfigurer.registerExtraLevels();
|
||||
}
|
||||
|
||||
|
|
|
@ -89,7 +89,7 @@ public class ThinAlertVizComponent extends AlertVizApplication implements
|
|||
cacheManager = new ThinClientCacheManager(
|
||||
new LocalizationCachePersistence());
|
||||
cacheManager.restoreCaches();
|
||||
new ThinClientLocalizationInitializer(true).run();
|
||||
new ThinClientLocalizationInitializer(true, false).run();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -144,7 +144,8 @@ public class ThinClientComponent extends CAVE implements IThinClientComponent {
|
|||
new MapQueryCachePersistence());
|
||||
cacheManager.restoreCaches();
|
||||
try {
|
||||
new ThinClientLocalizationInitializer(!isNonUIComponent()).run();
|
||||
new ThinClientLocalizationInitializer(!isNonUIComponent(),
|
||||
!LocalizationManager.internalAlertServer).run();
|
||||
} catch (Exception e1) {
|
||||
e1.printStackTrace();
|
||||
statusHandler.handle(Priority.CRITICAL,
|
||||
|
|
|
@ -80,8 +80,9 @@ public class ThinClientLocalizationInitializer extends LocalizationInitializer {
|
|||
* @param promptUI
|
||||
* @param checkAlertViz
|
||||
*/
|
||||
public ThinClientLocalizationInitializer(boolean promptUI) {
|
||||
super(promptUI);
|
||||
public ThinClientLocalizationInitializer(boolean promptUI,
|
||||
boolean checkAlertViz) {
|
||||
super(promptUI, checkAlertViz);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -92,7 +93,8 @@ public class ThinClientLocalizationInitializer extends LocalizationInitializer {
|
|||
confBuilder.setGzipEnabled(true);
|
||||
HttpClient.configureGlobalInstance(confBuilder.build());
|
||||
if (promptUI) {
|
||||
ThinClientConnectivityDialog dlg = new ThinClientConnectivityDialog();
|
||||
ThinClientConnectivityDialog dlg = new ThinClientConnectivityDialog(
|
||||
checkAlertviz);
|
||||
if (dlg.open() == true) {
|
||||
System.exit(0);
|
||||
}
|
||||
|
|
|
@ -92,8 +92,8 @@ public class ThinClientConnectivityDialog extends ConnectivityPreferenceDialog {
|
|||
|
||||
private String proxyAddress;
|
||||
|
||||
public ThinClientConnectivityDialog() {
|
||||
super("Unidata AWIPS");
|
||||
public ThinClientConnectivityDialog(boolean checkAlertViz) {
|
||||
super(checkAlertViz, "Unidata AWIPS");
|
||||
IPreferenceStore store = Activator.getDefault().getPreferenceStore();
|
||||
dataRefreshMethod = store
|
||||
.getString(ThinClientPreferenceConstants.P_DATA_REFRESH_METHOD);
|
||||
|
|
|
@ -198,7 +198,8 @@ public abstract class AbstractAWIPSComponent extends CAVEApplication {
|
|||
*/
|
||||
@Override
|
||||
protected void initializeLocalization() throws Exception {
|
||||
initializeLocalization(!isNonUIComponent());
|
||||
initializeLocalization(!isNonUIComponent(),
|
||||
!LocalizationManager.internalAlertServer);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue