ComponentTreeContentProvider Class Reference

Inheritance diagram for ComponentTreeContentProvider:
Collaboration diagram for ComponentTreeContentProvider:

List of all members.


Detailed Description

Supplies the content for the ComponentRegistry View: A list of ComponentEntitys which can have RoleDefinitions, RoleImpls or TeslaDocumentSelections as child elements. This ContentProvider acts as IComponentDeploymentListener and is listening on Server- and Component-Messages sent by the TeslaServer. Server-side changes are reflected in the model and the viewer is refreshed if required.

Author:
sschwieb

Public Methods

 ComponentTreeContentProvider (IMemento memento, TreeViewer viewer, ViewPart viewPart)
Object[] getChildren (Object parentElement)
Collection< ComponentTreeNodegetServerInput () throws NotConnectedToTeslaException
boolean hasChildren (Object element)
void deployed (String componentClass)
void undeployed (String componentClass)
boolean hasId (Object object, Object id)
void serverConnected () throws NotConnectedToTeslaException
void serverDisconnected ()

Protected Methods

void fillSortPullDown (IMenuManager menuManager)
String getDefaultSorter ()

Constructors

ComponentTreeContentProvider ( IMemento  memento,
TreeViewer  viewer,
ViewPart  viewPart 
)

Method Details

void deployed ( String  componentClass)

Called when a component is deployed.

Parameters:
componentClassthe name of a class that implements TeslaComponent
See also:
TeslaServer#getComponentByClass(String)

Implements IComponentDeploymentListener.

void fillSortPullDown ( IMenuManager  menuManager) [protected]
Object [] getChildren ( Object  parentElement)
See also:
org.eclipse.jface.viewers.ITreeContentProvider.getChildren(java.lang.Object)
String getDefaultSorter ( ) [protected]
Collection<ComponentTreeNode> getServerInput ( ) throws NotConnectedToTeslaException
boolean hasChildren ( Object  element)
See also:
org.eclipse.jface.viewers.ITreeContentProvider.hasChildren(java.lang.Object)
boolean hasId ( Object  object,
Object  id 
)
void serverConnected ( ) throws NotConnectedToTeslaException [inherited]

Called when a connection to Tesla is established. If a listener is registered as ITeslaListener on TeslaServer while a connection already is established, this method is called immediately.

Exceptions:
NotConnectedToTeslaException

Implemented in TemplatesCache, ConnectToServerAction, DisconnectFromServerAction, AbstractListeningContentProvider< T >, RunningExperimentContentProvider, and RunningExperimentLabelProvider.

void serverDisconnected ( ) [inherited]

Called when a connection to Tesla is closed. If a listener is registered as ITeslaListener on TeslaServer while the server is disconnected, this method is called immediately.

Implemented in TemplatesCache, ConnectToServerAction, DisconnectFromServerAction, AbstractListeningContentProvider< T >, RunningExperimentContentProvider, and RunningExperimentLabelProvider.

void undeployed ( String  componentClass)

Called when a component is undeployed.

Parameters:
componentClassthe name of a class that implements TeslaComponent

Implements IComponentDeploymentListener.