SlideShare a Scribd company logo
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

More Related Content

PDF
Hello World e4 Application Part 7
Annamalai Chockalingam
 
PDF
Hello World e4 Application Part 6
Annamalai Chockalingam
 
PDF
Hello World e4 Application Part 3
Annamalai Chockalingam
 
PDF
Hello World e4 Application Part 2
Annamalai Chockalingam
 
PPTX
Installing testflight
gilbert_organizer
 
PPT
Beta testing guidelines for developer
Ketan Raval
 
PPTX
MSTC'14 Window Phone Workshop_Day 1
Amira Gamal
 
PPTX
Googlepowerpoint
farfanm0707
 
Hello World e4 Application Part 7
Annamalai Chockalingam
 
Hello World e4 Application Part 6
Annamalai Chockalingam
 
Hello World e4 Application Part 3
Annamalai Chockalingam
 
Hello World e4 Application Part 2
Annamalai Chockalingam
 
Installing testflight
gilbert_organizer
 
Beta testing guidelines for developer
Ketan Raval
 
MSTC'14 Window Phone Workshop_Day 1
Amira Gamal
 
Googlepowerpoint
farfanm0707
 

Viewers also liked (6)

PDF
Case study "MANO VASARA 2014"
Karolina Jarmalytė
 
PPT
Design patterns - Strategy Pattern
Annamalai Chockalingam
 
PDF
Design patterns illustrated-2015-03
Herman Peeren
 
PDF
Lesson 13 demonstrative pronouns
John Acuña
 
PDF
Mobile games
Thomas Grill
 
PPTX
Introduction to Small Business management
Wayne state university
 
Case study "MANO VASARA 2014"
Karolina Jarmalytė
 
Design patterns - Strategy Pattern
Annamalai Chockalingam
 
Design patterns illustrated-2015-03
Herman Peeren
 
Lesson 13 demonstrative pronouns
John Acuña
 
Mobile games
Thomas Grill
 
Introduction to Small Business management
Wayne state university
 
Ad

More from Annamalai Chockalingam (8)

PPT
Design patterns - Observer Pattern
Annamalai Chockalingam
 
PPT
Design patterns - Factory Pattern
Annamalai Chockalingam
 
PPT
Design patterns - Decorator pattern
Annamalai Chockalingam
 
PPT
Design patterns - Adapter Pattern
Annamalai Chockalingam
 
PPT
Design patterns - Abstract Factory Pattern
Annamalai Chockalingam
 
PPT
Eclipse Spykit Project
Annamalai Chockalingam
 
PPT
Setting up Sphinx Development Environment
Annamalai Chockalingam
 
PPT
Eclipse Ecosystem in India
Annamalai Chockalingam
 
Design patterns - Observer Pattern
Annamalai Chockalingam
 
Design patterns - Factory Pattern
Annamalai Chockalingam
 
Design patterns - Decorator pattern
Annamalai Chockalingam
 
Design patterns - Adapter Pattern
Annamalai Chockalingam
 
Design patterns - Abstract Factory Pattern
Annamalai Chockalingam
 
Eclipse Spykit Project
Annamalai Chockalingam
 
Setting up Sphinx Development Environment
Annamalai Chockalingam
 
Eclipse Ecosystem in India
Annamalai Chockalingam
 
Ad

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