Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
JFace Viewer - Implementation of Pluggable Adapter Pattern
Revision as of 14:03, 30 November 2008 by Unnamed Poltroon (Talk) (→JFace Viewer - Implementation of Pluggable Adapater Pattern)
JFace Viewer - Implementation of Pluggable Adapter Pattern.
Pluggable Adapter Pattern is a Variant of Adapter Pattern which could be implemented in 2 Fashions.
- Using Abstract Methods
- Using Delegating Objects
The main responsibility of the Viewer is to populate a widget from a domain model without making any assumptions about domain itself. JFace viewer uses the Delegating Objects mechanism in Pluggable Adapter Pattern to implement the above requirement.
Viewer uses two seperate Delegating Objects called as
- Content Provider - For traversing the domain structure.
- Label Provider - For presenting the domain object.