Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.ui.model.roster.RosterAdapterFactory Class Reference

Inherits IAdapterFactory.

List of all members.

Public Member Functions

Class[] getAdapterList ()
Object getAdapter (Object adaptableObject, Class adapterType)

Detailed Description

Provides adapters for Roster entities which are provided by RosterContentProvider.

E.g. let's you adapt RosterGroupElement to RosterGroup with

 RosterGroup rosterGroup = (RosterGroup) rosterGroupElement
     .getAdapter(RosterGroup.class);
 if (rosterGroup != null)
     return true;
 else
     return false;
 

IMPORTANT: If you update this class, please also update the extension org.eclipse.core.runtime.adapters in plugin.xml!
Eclipse needs to know which object can be adapted to which type.

Author:
bkahlert

Member Function Documentation

Object de.fu_berlin.inf.dpp.ui.model.roster.RosterAdapterFactory.getAdapter ( Object  adaptableObject,
Class  adapterType 
)
Class [] de.fu_berlin.inf.dpp.ui.model.roster.RosterAdapterFactory.getAdapterList ( )
 All Classes Namespaces Files Functions Variables Enumerations