Refine search
EcfPlaceDataProvider(EventBus eventBus) { eventBus.addHandler(DataEvent.getType(), this); }
@Override protected void onResult(List<UserDto> result) { eventBus.fireEvent(new DataEvent(UserDto.class, true)); } });
@Inject public RedirectToDashboardAction( DashboardLocalizationConstant constant, DashboardResources resources, EventBus eventBus, AppContext appContext) { this.constant = constant; this.resources = resources; this.appContext = appContext; eventBus.addHandler(WorkspaceRunningEvent.TYPE, this); eventBus.addHandler(WorkspaceStoppedEvent.TYPE, this); }
EventBus bus = new SimpleEventBus(); @Override public void fireEvent(GwtEvent<?> event) { bus.fireEvent(event); } @Override public HandlerRegistration addValueChangeHandler(ValueChangeHandler<T> handler) { return bus.addHandler(ValueChangeEvent.getType(), handler); }
@Override public void fireEventFromSource(Event<?> event, Object source) { wrapped.fireEventFromSource(event, source); }
/** * Register a handler for a EntityProxyChange events for a particular proxy * class. * * @param eventBus the {@link EventBus} * @param proxyType a Class instance of type P * @param handler an {@link EntityProxyChange.Handler} instance of type P * @return an {@link EntityProxy} instance */ public static <P extends EntityProxy> HandlerRegistration registerForProxyType(EventBus eventBus, Class<P> proxyType, EntityProxyChange.Handler<P> handler) { return eventBus.addHandlerToSource(TYPE, proxyType, handler); }
@Inject public BrowserTabCloseHandler( EventBus eventBus, Provider<EditorAgent> editorAgentProvider, PreferencesManager preferencesManager, CoreLocalizationConstant localizationConstant) { this.editorAgentProvider = editorAgentProvider; this.preferencesManager = preferencesManager; this.localizationConstant = localizationConstant; closeImmediately = false; eventBus.addHandler(WindowActionEvent.TYPE, this); }
@Override public void fireEventFromSource(Event<?> event, Object source) { firedEvents.add(event); wrapped.fireEventFromSource(event, source); }
@Override public <H> HandlerRegistration addHandlerToSource(Type<H> type, Object source, H handler) { return wrapped.addHandlerToSource(type, source, handler); }
@Inject public SelectionAgentImpl(EventBus eventBus) { this.eventBus = eventBus; // bind event listener eventBus.addHandler(ActivePartChangedEvent.TYPE, this); }
@Override protected void onResult(EndpointUserConfigurationDto result) { eventBus.fireEvent(new DataEvent(EndpointUserConfigurationDto.class, true)); } });
ApplicationPlaceDataProvider(EventBus eventBus) { eventBus.addHandler(DataEvent.getType(), this); }
@Override public void fireEventFromSource(Event<?> event, Object source) { wrapped.fireEventFromSource(event, source); firedCounts.increment(event.getAssociatedType()); sourceCounts.increment(new TypeSourcePair(event.getAssociatedType(), source)); }
@Override public <H> HandlerRegistration addHandlerToSource(Event.Type<H> type, Object source, H handler) { HandlerRegistration rtn = wrapped.addHandlerToSource(type, source, handler); return doRegisterHandler(rtn); }
@Inject EditorGroupSynchronizationImpl( EventBus eventBus, DocumentStorage documentStorage, NotificationManager notificationManager) { this.documentStorage = documentStorage; this.notificationManager = notificationManager; fileContentUpdateHandlerRegistration = eventBus.addHandler(FileContentUpdateEvent.TYPE, this); }
@Override protected void onResult(List<TenantDto> result) { tenants.addAll(result); eventBus.fireEvent(new DataEvent(TenantDto.class, true)); } });
UserPlaceDataProvider(EventBus eventBus) { eventBus.addHandler(DataEvent.getType(), this); }
@Override public void fireEvent(GwtEvent<?> event) { eventBus.fireEventFromSource(event, this); }
@Override public <H> HandlerRegistration addHandlerToSource(final Type<H> type, Object source, H handler) { final HandlerRegistration superReg = wrapped.addHandlerToSource(type, source, handler); handlerCounts.increment(type); return makeReg(type, superReg); }
@Inject public EditorContentSynchronizerImpl( EventBus eventBus, Provider<EditorGroupSynchronization> editorGroupSyncProvider) { this.editorGroupSyncProvider = editorGroupSyncProvider; this.editorGroups = new HashMap<>(); eventBus.addHandler(ActivePartChangedEvent.TYPE, this); eventBus.addHandler(ResourceChangedEvent.getType(), this); eventBus.addHandler(EditorDirtyStateChangedEvent.TYPE, this); }