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

Viewers also liked

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

Viewers also liked (6)

Case study "MANO VASARA 2014"
Case study "MANO VASARA  2014"Case study "MANO VASARA  2014"
Case study "MANO VASARA 2014"
 
Design patterns - Strategy Pattern
Design patterns - Strategy PatternDesign patterns - Strategy Pattern
Design patterns - Strategy Pattern
 
Design patterns illustrated-2015-03
Design patterns illustrated-2015-03Design patterns illustrated-2015-03
Design patterns illustrated-2015-03
 
Lesson 13 demonstrative pronouns
Lesson 13 demonstrative pronounsLesson 13 demonstrative pronouns
Lesson 13 demonstrative pronouns
 
Mobile games
Mobile gamesMobile games
Mobile games
 
Introduction to Small Business management
Introduction to Small Business managementIntroduction to Small Business management
Introduction to Small Business management
 

More from Annamalai Chockalingam

Design patterns - Observer Pattern
Design patterns - Observer PatternDesign patterns - Observer Pattern
Design patterns - Observer Pattern
Annamalai Chockalingam
 
Design patterns - Factory Pattern
Design patterns - Factory PatternDesign patterns - Factory Pattern
Design patterns - Factory Pattern
Annamalai Chockalingam
 
Design patterns - Decorator pattern
Design patterns -   Decorator patternDesign patterns -   Decorator pattern
Design patterns - Decorator pattern
Annamalai Chockalingam
 
Design patterns - Adapter Pattern
Design patterns - Adapter PatternDesign patterns - Adapter Pattern
Design patterns - Adapter Pattern
Annamalai Chockalingam
 
Design patterns - Abstract Factory Pattern
Design patterns  - Abstract Factory PatternDesign patterns  - Abstract Factory Pattern
Design patterns - Abstract Factory Pattern
Annamalai Chockalingam
 
Eclipse Spykit Project
Eclipse Spykit ProjectEclipse Spykit Project
Eclipse Spykit Project
Annamalai Chockalingam
 
Setting up Sphinx Development Environment
Setting up Sphinx Development EnvironmentSetting up Sphinx Development Environment
Setting up Sphinx Development Environment
Annamalai Chockalingam
 
Eclipse Ecosystem in India
Eclipse Ecosystem in IndiaEclipse Ecosystem in India
Eclipse Ecosystem in India
Annamalai Chockalingam
 

More from Annamalai Chockalingam (8)

Design patterns - Observer Pattern
Design patterns - Observer PatternDesign patterns - Observer Pattern
Design patterns - Observer Pattern
 
Design patterns - Factory Pattern
Design patterns - Factory PatternDesign patterns - Factory Pattern
Design patterns - Factory Pattern
 
Design patterns - Decorator pattern
Design patterns -   Decorator patternDesign patterns -   Decorator pattern
Design patterns - Decorator pattern
 
Design patterns - Adapter Pattern
Design patterns - Adapter PatternDesign patterns - Adapter Pattern
Design patterns - Adapter Pattern
 
Design patterns - Abstract Factory Pattern
Design patterns  - Abstract Factory PatternDesign patterns  - Abstract Factory Pattern
Design patterns - Abstract Factory Pattern
 
Eclipse Spykit Project
Eclipse Spykit ProjectEclipse Spykit Project
Eclipse Spykit Project
 
Setting up Sphinx Development Environment
Setting up Sphinx Development EnvironmentSetting up Sphinx Development Environment
Setting up Sphinx Development Environment
 
Eclipse Ecosystem in India
Eclipse Ecosystem in IndiaEclipse Ecosystem in India
Eclipse Ecosystem in India
 

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