Revision e08e34dc
Added by Patrick Plitzner about 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/event/EventUtility.java | ||
---|---|---|
15 | 15 |
import javax.inject.Named; |
16 | 16 |
|
17 | 17 |
import org.eclipse.e4.core.di.annotations.Optional; |
18 |
import org.eclipse.e4.core.services.events.IEventBroker; |
|
18 | 19 |
import org.eclipse.e4.ui.di.UIEventTopic; |
19 | 20 |
import org.eclipse.e4.ui.model.application.ui.basic.MPart; |
20 | 21 |
import org.eclipse.e4.ui.services.IServiceConstants; |
... | ... | |
38 | 39 |
|
39 | 40 |
private static Shell shell; |
40 | 41 |
|
42 |
@Inject |
|
43 |
private static IEventBroker eventBroker; |
|
44 |
|
|
41 | 45 |
@PostConstruct |
42 | 46 |
public void create(){ |
43 | 47 |
//nothing |
44 | 48 |
} |
45 | 49 |
|
50 |
public static void postEvent(String topic, Object data){ |
|
51 |
eventBroker.post(topic, data); |
|
52 |
} |
|
53 |
|
|
46 | 54 |
@Inject |
47 | 55 |
@Optional |
48 | 56 |
private void updateCurrentActiveShell(@Named(IServiceConstants.ACTIVE_SHELL)Shell shell){ |
Also available in: Unified diff
ref #6912 Update view when creating a new data base model