Search in sources :

Example 1 with PropertyMap

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);
    }
}
Also used : PropertyMap(org.eclipse.scout.rt.platform.context.PropertyMap) DeepLinkException(org.eclipse.scout.rt.client.deeplink.DeepLinkException) ProcessingException(org.eclipse.scout.rt.platform.exception.ProcessingException) VetoException(org.eclipse.scout.rt.platform.exception.VetoException)

Aggregations

DeepLinkException (org.eclipse.scout.rt.client.deeplink.DeepLinkException)1 PropertyMap (org.eclipse.scout.rt.platform.context.PropertyMap)1 ProcessingException (org.eclipse.scout.rt.platform.exception.ProcessingException)1 VetoException (org.eclipse.scout.rt.platform.exception.VetoException)1