Skip to main content

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.

Jump to: navigation, search

Difference between revisions of "Eclipse4/RCP/EAS/Common Services"

< Eclipse4‎ | RCP‎ | EAS
(Logging)
(Adapter Pattern)
Line 5: Line 5:
  
 
==Adapter Pattern==
 
==Adapter Pattern==
The <tt>org.eclipse.e4.core.services.adapter.Adapter</tt> interface provides a way for clients to adapt an object to another type.
+
The <tt>org.eclipse.e4.core.services.adapter.Adapter</tt> interface provides a way for clients to adapt an object to another type. This is akin to the <tt>org.eclipse.core.runtime.IAdapterFactory</tt> and <tt>org.eclipse.core.runtime.IAdaptable</tt> interfaces from Eclipse 3.x.

Revision as of 08:56, 12 April 2011

Besides OSGi services, the E4AP also exposes other services that can be consumed by clients.

Logging

The org.eclipse.e4.core.services.log.Logger class provides clients with a number of convenience methods for logging information. Some of its methods takes Object[] arrays and will perform binding internally to format the message appropriately.

Adapter Pattern

The org.eclipse.e4.core.services.adapter.Adapter interface provides a way for clients to adapt an object to another type. This is akin to the org.eclipse.core.runtime.IAdapterFactory and org.eclipse.core.runtime.IAdaptable interfaces from Eclipse 3.x.

Back to the top