/** * Log specified message with parameters * * @param delta the nesting delta. * @param message the message. * @param styling the styling parameter. It is assumed that the message has a %c somewhere in it to identify the start of the styling. */ protected void log( @Nonnull final SpyUtil.NestingDelta delta, @Nonnull final String message, @CssRules @Nonnull final String styling ) { if ( SpyUtil.NestingDelta.INCREASE == delta ) { DomGlobal.console.groupCollapsed( message, styling ); } else if ( SpyUtil.NestingDelta.DECREASE == delta ) { DomGlobal.console.log( message, styling ); DomGlobal.console.groupEnd(); } else { DomGlobal.console.log( message, styling ); } }
@JsOverlay public final void table(Object data) { table(Js.<JsObject>uncheckedCast(data)); }
void changeVisibility() { DomGlobal.console.info("changeVisibility"); if (isAllHidden()) { hide(); } else { show(); } }
/** * {@inheritDoc} */ @Override protected void handleUnhandledEvent( @Nonnull final Object event ) { DomGlobal.console.log( event ); } }
value(getFormattedValue(value)); } catch (IllegalArgumentException ignored) { DomGlobal.console.warn("Unable to parse date value " + value);
@EventHandler("ignore-button") private void onIgnoreButtonClicked(final @ForEvent("click") elemental2.dom.Event e) { console.error(errorDetails.textContent); hide(); }
void changeVisibility() { DomGlobal.console.info("changeVisibility"); if (isAllHidden()) { hide(); } else { show(); } }
/** * {@inheritDoc} */ @Override protected void handleUnhandledEvent( @Nonnull final Object event ) { DomGlobal.console.log( event ); } }
value(getFormattedValue(value)); } catch (IllegalArgumentException ignored) { DomGlobal.console.warn("Unable to parse date value " + value);
@EventHandler("copy-details-button") private void onCopyDetailsButtonClicked(final @ForEvent("click") elemental2.dom.Event e) { final boolean copySucceeded = clipboard.copy(errorDetails); if (copySucceeded) { notificationEvent.fire(new NotificationEvent(DefaultWorkbenchConstants.INSTANCE.ErrorDetailsSuccessfullyCopiedToClipboard(), SUCCESS)); } else { notificationEvent.fire(new NotificationEvent(DefaultWorkbenchConstants.INSTANCE.ErrorDetailsFailedToBeCopiedToClipboard(), WARNING)); } console.error(errorDetails.textContent); hide(); }
.clickable()) .addClickListener(event -> { DomGlobal.console.info("going to last page : " + allPages.size()); moveToPage(allPages.size(), false); }));
/** * Log specified message with parameters * * @param message the message. * @param styling the styling parameter. It is assumed that the message has a %c somewhere in it to identify the start of the styling. */ protected void log( @Nonnull final String message, @CssRules @Nonnull final String styling ) { DomGlobal.console.log( message, styling ); }
@JsOverlay public final void table(Object data, Object columns) { table(Js.<JsObject>uncheckedCast(data), columns); }
.clickable()) .addClickListener(event -> { DomGlobal.console.info("going to last page : " + allPages.size()); moveToPage(allPages.size(), false); }));
/** * Handle the ObservableChangedEvent. * * @param d the change in nesting level. * @param e the event. */ protected void onObservableChanged( @Nonnull final SpyUtil.NestingDelta d, @Nonnull final ObservableChangedEvent e ) { DomGlobal.console.log( "%cObservable Changed " + e.getObservable().getName() + ( Arez.arePropertyIntrospectorsEnabled() ? " Value: %o " : null ), OBSERVABLE_COLOR, ( Arez.arePropertyIntrospectorsEnabled() ? e.getValue() : null ) ); }
@JsOverlay public final void table(Object data, Object columns) { table(Js.<JsObject>uncheckedCast(data), columns); }
@JsOverlay public final void table(Object data) { table(Js.<JsObject>uncheckedCast(data)); }