Java Code Examples for org.eclipse.e4.core.services.events.IEventBroker#subscribe()

The following examples show how to use org.eclipse.e4.core.services.events.IEventBroker#subscribe() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ApplicationConfiguration.java    From warcraft-remake with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Execute the injection.
 * 
 * @param eventBroker The event broker service.
 */
@PostConstruct
public void execute(IEventBroker eventBroker)
{
    final MWindow existingWindow = application.getChildren().get(0);
    existingWindow.setLabel(Activator.PLUGIN_NAME);
    eventBroker.subscribe(UIEvents.UILifeCycle.APP_STARTUP_COMPLETE, new AppStartupCompleteEventHandler());
}
 
Example 2
Source File: DeleteBDMEventHandler.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
@PostConstruct
public void registerHandler(IEventBroker eventBroker) {
    eventBroker.subscribe(BDM_DELETED_TOPIC, this);
}
 
Example 3
Source File: PostBDMEventHandler.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
@PostConstruct
public void registerHandler(IEventBroker eventBroker) {
    eventBroker.subscribe(BDM_DEPLOYED_TOPIC, this);
}
 
Example 4
Source File: OpenIntroAddon.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
@PostConstruct
public void pc(IEventBroker eventBroker, RepositoryAccessor repositoryAccessor) {
    this.repositoryAccessor = repositoryAccessor;
    eventBroker.subscribe(UIEvents.UIElement.TOPIC_TOBERENDERED, this::handleEvent);
}