TIBCO ActiveMatrix Mediation Implementation Type v3.3.1

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

java.lang.Object
  extended by org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
      extended by com.tibco.xpd.ui.properties.AbstractXpdSection
          extended by com.tibco.amsb.core.task.ui.property.BasePropertySection
              extended by com.tibco.amsb.core.task.ui.property.MediationTaskGeneralSection
                  extended by com.tibco.amsb.core.task.ui.property.CustomMediationTaskGeneralSection
All Implemented Interfaces:
ICustomMediationTaskGeneralSection, com.tibco.xpd.ui.properties.CommandProvider, com.tibco.xpd.ui.properties.ModelChangeListener, java.util.EventListener, org.eclipse.emf.edit.domain.IEditingDomainProvider, org.eclipse.emf.edit.provider.INotifyChangedListener, org.eclipse.swt.events.DisposeListener, org.eclipse.swt.internal.SWTEventListener, org.eclipse.ui.views.properties.tabbed.ISection
Direct Known Subclasses:
CustomMediationTaskGeneralSectionV21

public abstract class CustomMediationTaskGeneralSection
extends MediationTaskGeneralSection
implements ICustomMediationTaskGeneralSection

CustomMediationTaskGeneralSection defines a general properties section for a user defined mediation task.This abstract class provides methods for creating SWT controls based on the type of the EAttribute property that is defined by user using the mediation task model wizard or the ECore editors. Current version of this class only supports creation/update of controls for primitive ecore attribute types. This class extends the MediationTaskGeneralSection that builds the section for the common mediation task attributes.

See Also:
ICustomMediationTaskGeneralSection, MediationTaskGeneralSection

Nested Class Summary
 
Nested classes/interfaces inherited from class com.tibco.xpd.ui.properties.AbstractXpdSection
com.tibco.xpd.ui.properties.AbstractXpdSection.ContainerType
 
Field Summary
 
Fields inherited from class com.tibco.amsb.core.task.ui.property.MediationTaskGeneralSection
contributeLabel, contributeOutputField, descriptionText, ignoreModelChanges, mediationTask, nameText
 
Fields inherited from class com.tibco.amsb.core.task.ui.property.BasePropertySection
adapter, editPart
 
Fields inherited from class com.tibco.xpd.ui.properties.AbstractXpdSection
LAYOUT_DATA_SHORT_WIDTH_HINT
 
Fields inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
STANDARD_LABEL_WIDTH
 
Constructor Summary
CustomMediationTaskGeneralSection()
           
 
Method Summary
 void appendAttributeCommands(org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EPackage ePackage, org.eclipse.emf.common.command.CompoundCommand command, java.lang.String taskName)
          Creates the command for each of the user defined mediation task attributes.
 void createAttributeControls(org.eclipse.emf.ecore.EClass eClass, org.eclipse.ui.forms.widgets.ScrolledForm scrolledForm, com.tibco.xpd.ui.properties.XpdFormToolkit toolkit)
          Creates the SWT controls by iterating over the EAttributes defined for the mediation task model.
 void doRefresh(org.eclipse.emf.ecore.EClass eClass)
          Refreshes the widgets for each of the user defined mediation task attributes.
protected abstract  java.lang.String getAttributeLabel(org.eclipse.emf.ecore.EAttribute eAttribute)
          Return the label of the mediation task attribute.
 
Methods inherited from class com.tibco.amsb.core.task.ui.property.MediationTaskGeneralSection
createBaseCommand, createBaseForm, createContributeCommand, createContributeOutputField, doCreateControls, doGetCommand, doRefresh, gotInput, ignoreModelEvents, initBindings, isIgnoreEvents, manageControl, notifyChanged, setInput, showContributeOutputField
 
Methods inherited from class com.tibco.amsb.core.task.ui.property.BasePropertySection
bindValidation, bindValidation, dispose, doGetInputContainer, execute, getBindingManager, getControlId, getEditingDomain, getInput, listenForChanges, modelChanged, updateButtonSelection
 
Methods inherited from class com.tibco.xpd.ui.properties.AbstractXpdSection
canShowInWizard, createControls, createControls, disableControlsForReadOnlyInput, forceLayout, getCommand, getControlsContainer, getEditingDomain, getInputContainer, getMinimumHeight, getPropertySheetPage, getSectionContainerType, getSite, getTextWidth, getXpdSectionContainerProvider, isCreated, manageControl, manageControl, manageControl, manageControl, manageControl, manageControl, manageControl, manageControlUpdateOnDeactivate, refresh, refreshTabs, setCanFinish, setCreated, setEnabled, setEnabled, setIgnoreEvents, setInput, setMinimumHeight, setSameGridDataWidth, setShouldUseExtraSpace, setShowInWizard, setXpdSectionContainerProvider, shouldUseExtraSpace, showTab, updateCCombo, updateText, widgetDisposed
 
Methods inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
aboutToBeHidden, aboutToBeShown, getPart, getSelection, getWidgetFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomMediationTaskGeneralSection

public CustomMediationTaskGeneralSection()
Method Detail

createAttributeControls

public void createAttributeControls(org.eclipse.emf.ecore.EClass eClass,
                                    org.eclipse.ui.forms.widgets.ScrolledForm scrolledForm,
                                    com.tibco.xpd.ui.properties.XpdFormToolkit toolkit)
Creates the SWT controls by iterating over the EAttributes defined for the mediation task model.

Specified by:
createAttributeControls in interface ICustomMediationTaskGeneralSection
Parameters:
eclass - the EClass representing the mediation task model
scrolledForm - the ScrolledForm scrolled form holding the section.
toolkit - the XpdFormToolkit form tool kit to create controls.

appendAttributeCommands

public void appendAttributeCommands(org.eclipse.emf.ecore.EClass eClass,
                                    org.eclipse.emf.ecore.EPackage ePackage,
                                    org.eclipse.emf.common.command.CompoundCommand command,
                                    java.lang.String taskName)
Creates the command for each of the user defined mediation task attributes.

Specified by:
appendAttributeCommands in interface ICustomMediationTaskGeneralSection
Parameters:
eclass - the EClass representing the mediation task model
ePackage - the EPackage representing the mediation task model
command - the CompoundCommand compound command for general section attributes.
taskName - the mediation task name.

doRefresh

public void doRefresh(org.eclipse.emf.ecore.EClass eClass)
Refreshes the widgets for each of the user defined mediation task attributes.

Specified by:
doRefresh in interface ICustomMediationTaskGeneralSection
Parameters:
eclass - the EClass representing the mediation task model

getAttributeLabel

protected abstract java.lang.String getAttributeLabel(org.eclipse.emf.ecore.EAttribute eAttribute)
Return the label of the mediation task attribute.

Parameters:
eAttribute - the EAttribute representing the mediation task model attribute.

TIBCO ActiveMatrix Mediation Implementation Type v3.3.1

Copyright © 2010 TIBCO Software Inc. All Rights Reserved.