TIBCO ActiveMatrix Mediation Implementation Type v3.3.1

com.tibco.amsb.core.task.ui.property
Class TaskEditPart

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.jface.viewers.BaseLabelProvider
          extended by org.eclipse.jface.viewers.LabelProvider
              extended by com.tibco.amsb.core.task.ui.property.TaskEditPart
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.emf.edit.domain.IEditingDomainProvider, org.eclipse.jface.viewers.IBaseLabelProvider, org.eclipse.jface.viewers.ILabelProvider

public abstract class TaskEditPart
extends org.eclipse.jface.viewers.LabelProvider
implements org.eclipse.emf.edit.domain.IEditingDomainProvider, org.eclipse.core.runtime.IAdaptable

Place holder class provided by extensions to allow the custom mediation tasks to be selected in the diagram. This diagram edit part element delegates selection to this class, allowing the custom mediation tasks to provide their own property sheets.


Field Summary
protected  FlowDataProvider flowDataProvider
          Access interface to the mediation flow context for a mediation task
protected  java.lang.Object model
          The mediation task data model.
 
Constructor Summary
TaskEditPart(FlowDataProvider fdp, java.lang.Object theObject)
          Constructor is called by the Mediation Flow Editor to create an instance related to the internal edit part that is selected.
 
Method Summary
 java.lang.Object getAdapter(java.lang.Class adapter)
          Mechanism to have this edit part transform itself into other objects so they can be used in many places.
 org.eclipse.emf.edit.domain.EditingDomain getEditingDomain()
          Returns the editing domain used to make changes to the model
 FlowDataProvider getFlowDataProvider()
          Access method to get the context information interface instance.
 java.lang.String getText(java.lang.Object element)
          LabelProvider method to get a text string for this edit part.
 void setModel(java.lang.Object theObject)
          Access method to change the model object.
 
Methods inherited from class org.eclipse.jface.viewers.LabelProvider
getImage
 
Methods inherited from class org.eclipse.jface.viewers.BaseLabelProvider
addListener, dispose, fireLabelProviderChanged, isLabelProperty, removeListener
 
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.viewers.IBaseLabelProvider
addListener, dispose, isLabelProperty, removeListener
 

Field Detail

flowDataProvider

protected FlowDataProvider flowDataProvider
Access interface to the mediation flow context for a mediation task


model

protected java.lang.Object model
The mediation task data model. The type is Object to allow for future enhancements. Use the adapter mechanism to obtain the desired class instance.

Constructor Detail

TaskEditPart

public TaskEditPart(FlowDataProvider fdp,
                    java.lang.Object theObject)
Constructor is called by the Mediation Flow Editor to create an instance related to the internal edit part that is selected.

Parameters:
fdp -
theObject -
Method Detail

setModel

public void setModel(java.lang.Object theObject)
Access method to change the model object.

Parameters:
theObject -

getFlowDataProvider

public FlowDataProvider getFlowDataProvider()
Access method to get the context information interface instance.

Returns:

getText

public java.lang.String getText(java.lang.Object element)
LabelProvider method to get a text string for this edit part. Normally this string is a constant for all tasks, but it could contain task data

Specified by:
getText in interface org.eclipse.jface.viewers.ILabelProvider
Overrides:
getText in class org.eclipse.jface.viewers.LabelProvider
Parameters:
element - - the task object

getEditingDomain

public org.eclipse.emf.edit.domain.EditingDomain getEditingDomain()
Returns the editing domain used to make changes to the model

Specified by:
getEditingDomain in interface org.eclipse.emf.edit.domain.IEditingDomainProvider

getAdapter

public java.lang.Object getAdapter(java.lang.Class adapter)
Mechanism to have this edit part transform itself into other objects so they can be used in many places.

Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable

TIBCO ActiveMatrix Mediation Implementation Type v3.3.1

Copyright © 2010 TIBCO Software Inc. All Rights Reserved.