This document discusses how to propagate selection between parts in an e4 application. It explains that selection propagation can now be achieved using the @Inject annotation. It provides steps to select a view as the selection provider, inject the selection service, implement a selection change listener, and inject a setSelection method to broadcast the selection to another view. Following these steps allows selection from one part to propagate to another part in the application.
1 of 1
Download to read offline
More Related Content
Hello world e4 application part 5
1. Hello World e4 Application – Part 5
Selection Propagation between Parts
Sleection Propagation between Parts
This section teaches how to propagate selection from 1 Part to another Part.
1. Earlier in 3x this was achieved using registering Selection Provider and Selection Listener
2. Now it is achieved using @Inject annotation
3. Select the view that is going to act as SelectionProvider
4. In that view at class level declare @Inject EselectionService selectionService as shown below
5. Then implement selectionChangeListener on the available Jface Viewer as shown below
6. Now the view which needs to behave like a Selection Listener and @Inject setSelection method
7. Run your code and selection from 1 Part should be broadcast ed to another view.
Author : Annamalai C
Date : May 11th
2015