public void onFailure(Throwable caught) { GWT.log("TreePlaceDataProvider.LoadCallback.onFailure(caught):", caught); }
/** * Sign out. */ public static void signOut() { RequestBuilder builder = new RequestBuilder( RequestBuilder.POST, GWT.getModuleBaseURL() + "j_spring_security_logout"); try { builder.sendRequest(null, new RequestCallback() { @Override public void onResponseReceived(Request request, Response response) { redirectToModule(".."); } @Override public void onError(Request request, Throwable exception) { redirectToModule(".."); } }); } catch (RequestException ex) { GWT.log("Exception: " + ex.getMessage()); } }
@Override public void onUncaughtException(Throwable e) { log("Uncaught exception escaped", e); } }
/** * Wraps a JavaScript object into a suitable inspectable type. */ public static Object convertToInspectableObject(Object jso) { try { JsoBoxer boxer = (JsoBoxer) jso; return boxer.box(); } catch (Throwable t) { GWT.log("GWT could not inspect the JavaScriptObject.", t); return "ERROR: Could not inspect the JavaScriptObject, see GWT log for details."; } } }
val = URL.decodeQueryString(val); } catch (JavaScriptException e) { GWT.log("Cannot decode a URL query string parameter=" + key + " value=" + val, e);
@Override public void publish(LogRecord record) { if (!isSupported() || !isLoggable(record)) { return; } String msg = getFormatter().format(record); GWT.log(msg, record.getThrown()); }
GWT.log("bus tried to transition to " + state + ", but it already is"); return;
GWT.log(message);
GWT.log("Warning: " + className + " descendants will be incorrectly " + "positioned, i.e. not relative to their parent element, when " + "'position:static', which is the CSS default, is in effect. One "
public SetPerspectivesAction(ProjectId projectId, UserId userId, ImmutableList<PerspectiveId> perspectiveIds) { this.projectId = projectId; this.userId = userId; this.perspectiveIds = perspectiveIds; GWT.log("[SetPerspectivesAction] " + perspectiveIds); }
@Override public PushManager getPushManager() { if (registration != null) { return registration.pushManager; } else { GWT.log("Service worker is not yet registered", new IllegalStateException()); } return null; } }
public SelectorEngine() { impl = (SelectorEngineImpl) GWT.create(SelectorEngineImpl.class); GWT.log("GQuery - Created SelectorEngineImpl: " + impl.getClass().getName()); styleImpl = GWT.create(DocumentStyleImpl.class); GWT.log("GQuery - Created DocumentStyleImpl: " + styleImpl.getClass().getName()); }
@Override public void run() { try { task.run(); } catch (Throwable t) { GWT.log("Async Task Execution Failed. Future executions (if any) are cancelled.", t); timer.cancel(); } }
@Override public void unload() { if (themeColorElement != null) { themeColorElement.removeFromParent(); themeColorElement = null; GWT.log("Meta theme color has been unloaded."); } }
@Override public void unload() { if (manifestElement != null) { manifestElement.removeFromParent(); manifestElement = null; GWT.log("Web manifest has been unloaded."); } }
@Override public void run() { try { task.run(); } catch (Throwable t) { GWT.log("Async Task Execution Failed. Future executions (if any) are cancelled.", t); timer.cancel(); } }
@Override public void setFieldWidth(double percentWidth) { if (field != null) { field.getElement().getStyle().setWidth(percentWidth, Style.Unit.PCT); } else { GWT.log("Field is not defined", new IllegalStateException()); } }
@Override public void setLabelWidth(double percentWidth) { if (label != null) { label.getElement().getStyle().setWidth(percentWidth, Style.Unit.PCT); if (getFieldType().equals(FieldType.ALIGNED_LABEL)) { errorLabel.getElement().getStyle().setPaddingLeft(percentWidth, Style.Unit.PCT); } } else { GWT.log("Label is not defined", new IllegalStateException()); } }
@Override public void onClick(ClickEvent event) { try { IconAnchor iconAnchor = (IconAnchor) event.getSource(); link = (NavLink) iconAnchor.getParent(); } catch (Exception e) { GWT.log(e.getMessage(), e); } DomEvent.fireNativeEvent(Document.get().createChangeEvent(), AbstractDropdownBase.this); }
/** * Apply the pushpin feature into the target widget */ public void apply() { Scheduler.get().scheduleDeferred(() -> { if (widget != null) { $(widget.getElement()).pushpin(options); } else { GWT.log("Please set your widget before applying the pushpin", new IllegalStateException()); } }); }