use of org.eclipse.scout.rt.platform.context.PropertyMap in project scout.rt by eclipse.
the class AbstractDesktop method attachGui.
private void attachGui() {
ensureProposalChoosersClosed();
setGuiAvailableInternal(true);
// extensions
for (IDesktopExtension ext : getDesktopExtensions()) {
try {
ContributionCommand cc = ext.guiAttachedDelegate();
if (cc == ContributionCommand.Stop) {
break;
}
} catch (Exception e) {
BEANS.get(ExceptionHandler.class).handle(e);
}
}
PropertyMap propertyMap = PropertyMap.CURRENT.get();
final String geolocationServiceAvailableStr = propertyMap.get(IDesktop.PROP_GEOLOCATION_SERVICE_AVAILABLE);
final boolean geolocationServiceAvailable = TypeCastUtility.castValue(geolocationServiceAvailableStr, boolean.class);
setGeolocationServiceAvailable(geolocationServiceAvailable);
boolean handleDeepLink = propertyMap.getOrDefault(DeepLinkUrlParameter.HANDLE_DEEP_LINK, true);
if (handleDeepLink) {
final String deepLinkPath = propertyMap.get(DeepLinkUrlParameter.DEEP_LINK);
activateDefaultView(deepLinkPath);
}
}
Aggregations