Revision 672874ab
Added by Patrick Plitzner about 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/event/EventUtility.java | ||
---|---|---|
14 | 14 |
import javax.inject.Inject; |
15 | 15 |
import javax.inject.Named; |
16 | 16 |
|
17 |
import org.eclipse.e4.core.commands.ECommandService; |
|
17 | 18 |
import org.eclipse.e4.core.di.annotations.Optional; |
18 | 19 |
import org.eclipse.e4.core.services.events.IEventBroker; |
19 | 20 |
import org.eclipse.e4.ui.di.UIEventTopic; |
... | ... | |
42 | 43 |
@Inject |
43 | 44 |
private static IEventBroker eventBroker; |
44 | 45 |
|
46 |
@Inject |
|
47 |
private static ECommandService commandService; |
|
48 |
|
|
45 | 49 |
@PostConstruct |
46 | 50 |
public void create(){ |
47 | 51 |
//nothing |
... | ... | |
51 | 55 |
eventBroker.post(topic, data); |
52 | 56 |
} |
53 | 57 |
|
58 |
public static ECommandService getCommandService() { |
|
59 |
return commandService; |
|
60 |
} |
|
61 |
|
|
54 | 62 |
@Inject |
55 | 63 |
@Optional |
56 | 64 |
private void updateCurrentActiveShell(@Named(IServiceConstants.ACTIVE_SHELL)Shell shell){ |
Also available in: Unified diff
ref #7268 Implement own extension point for preferences
Conflicts:¶
eu.etaxonomy.taxeditor.workbench/fragment.e4xmi¶