TIBCO ActiveMatrix Mediation Implementation Type v3.3.1

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

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
All Implemented Interfaces:
com.tibco.xpd.ui.properties.CommandProvider, java.util.EventListener, org.eclipse.emf.edit.domain.IEditingDomainProvider, org.eclipse.swt.events.DisposeListener, org.eclipse.swt.internal.SWTEventListener, org.eclipse.ui.views.properties.tabbed.ISection
Direct Known Subclasses:
BaseMapperSection, MediationTaskGeneralSection, MediationTaskOutputSection

public abstract class BasePropertySection
extends com.tibco.xpd.ui.properties.AbstractXpdSection

Base class for Properites View tabs that contains the common infrastructure for creating and managing properties.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.tibco.xpd.ui.properties.AbstractXpdSection
com.tibco.xpd.ui.properties.AbstractXpdSection.ContainerType
 
Field Summary
protected  PropertyAdapter adapter
          Notification mechanism to listen for model changes.
protected  TaskEditPart editPart
          Handle to the selected task edit part used to access context information about the rest of the flow.
 
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
BasePropertySection()
           
 
Method Summary
protected  void bindValidation(org.eclipse.swt.widgets.Control control, java.util.Collection<org.eclipse.emf.ecore.EObject> eobjectCollection, java.util.Set<java.lang.String> constraintSet, java.lang.String controlId)
           
protected  void bindValidation(org.eclipse.swt.widgets.Control control, org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.String constraintID)
           
 void dispose()
           
protected  org.eclipse.emf.ecore.EObject doGetInputContainer()
          Abstract method not used in this implementation.
protected  void execute(org.eclipse.emf.common.command.Command command)
          This method is used for non-standard fields to execute commands when those fields change.
protected  com.tibco.amf.tools.composite.resources.ui.binding.BindingManager getBindingManager()
           
protected  java.lang.String getControlId(org.eclipse.emf.ecore.EStructuralFeature feature)
           
 org.eclipse.emf.edit.domain.EditingDomain getEditingDomain()
          Return the editing domain used to build and execute EMF commands.
protected  org.eclipse.emf.ecore.EObject getInput()
          Prepare the section to work on DiagramEditor (selection through EditPart) or ProjectExplorer (directly selected EObject)
protected  boolean gotInput()
          Called after setInput to see if any input was accepted by this instance.
protected  void initBindings()
          need to subclass to implement it,this method must to call the registerForValidation method
protected  void listenForChanges(org.eclipse.emf.ecore.EObject eobject)
          Derived classes can call this method to listen to changes on a given model object
 void modelChanged(org.eclipse.emf.common.notify.Notification notification)
          This method is called when the model that is being listened to changes.
 void setInput(java.util.Collection<?> items)
          Given a list of selected objects, extract the model object out of the selection and save it for later, also save the editPart as it holds the EditingDomain
protected  void updateButtonSelection(org.eclipse.swt.widgets.Button btn, boolean selected)
          Update Button control with selection state, if it is of type CHECK, RADIO, or TOGGLE.
 
Methods inherited from class com.tibco.xpd.ui.properties.AbstractXpdSection
canShowInWizard, createControls, createControls, disableControlsForReadOnlyInput, doCreateControls, doGetCommand, doRefresh, forceLayout, getCommand, getControlsContainer, getEditingDomain, getInputContainer, getMinimumHeight, getPropertySheetPage, getSectionContainerType, getSite, getTextWidth, getXpdSectionContainerProvider, isCreated, isIgnoreEvents, 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
 

Field Detail

editPart

protected TaskEditPart editPart
Handle to the selected task edit part used to access context information about the rest of the flow.


adapter

protected PropertyAdapter adapter
Notification mechanism to listen for model changes.

Constructor Detail

BasePropertySection

public BasePropertySection()
Method Detail

doGetInputContainer

protected org.eclipse.emf.ecore.EObject doGetInputContainer()
Abstract method not used in this implementation.

Specified by:
doGetInputContainer in class com.tibco.xpd.ui.properties.AbstractXpdSection

gotInput

protected boolean gotInput()
Called after setInput to see if any input was accepted by this instance.

Specified by:
gotInput in class com.tibco.xpd.ui.properties.AbstractXpdSection

getEditingDomain

public org.eclipse.emf.edit.domain.EditingDomain getEditingDomain()
Return the editing domain used to build and execute EMF commands.

Specified by:
getEditingDomain in interface org.eclipse.emf.edit.domain.IEditingDomainProvider
Specified by:
getEditingDomain in class com.tibco.xpd.ui.properties.AbstractXpdSection

execute

protected final void execute(org.eclipse.emf.common.command.Command command)
This method is used for non-standard fields to execute commands when those fields change. The base update mechanism does not allow for these fields to be updated individually.

Parameters:
command -

modelChanged

public void modelChanged(org.eclipse.emf.common.notify.Notification notification)
This method is called when the model that is being listened to changes.

Parameters:
notification - - contains the change to the model object

listenForChanges

protected void listenForChanges(org.eclipse.emf.ecore.EObject eobject)
Derived classes can call this method to listen to changes on a given model object

Parameters:
eobject - - object that may change

updateButtonSelection

protected void updateButtonSelection(org.eclipse.swt.widgets.Button btn,
                                     boolean selected)
Update Button control with selection state, if it is of type CHECK, RADIO, or TOGGLE.

Parameters:
selected - the new selection state

setInput

public void setInput(java.util.Collection<?> items)
Given a list of selected objects, extract the model object out of the selection and save it for later, also save the editPart as it holds the EditingDomain

Specified by:
setInput in class com.tibco.xpd.ui.properties.AbstractXpdSection

initBindings

protected void initBindings()
need to subclass to implement it,this method must to call the registerForValidation method


getInput

protected org.eclipse.emf.ecore.EObject getInput()
Prepare the section to work on DiagramEditor (selection through EditPart) or ProjectExplorer (directly selected EObject)


getControlId

protected java.lang.String getControlId(org.eclipse.emf.ecore.EStructuralFeature feature)

bindValidation

protected void bindValidation(org.eclipse.swt.widgets.Control control,
                              java.util.Collection<org.eclipse.emf.ecore.EObject> eobjectCollection,
                              java.util.Set<java.lang.String> constraintSet,
                              java.lang.String controlId)
Parameters:
control -
constraintSet -
controlId -

bindValidation

protected void bindValidation(org.eclipse.swt.widgets.Control control,
                              org.eclipse.emf.ecore.EStructuralFeature feature,
                              java.lang.String constraintID)
Parameters:
control -
feature -
constraintID -

getBindingManager

protected com.tibco.amf.tools.composite.resources.ui.binding.BindingManager getBindingManager()
Returns:
the bindingManager

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.ui.views.properties.tabbed.ISection
Overrides:
dispose in class com.tibco.xpd.ui.properties.AbstractXpdSection

TIBCO ActiveMatrix Mediation Implementation Type v3.3.1

Copyright © 2010 TIBCO Software Inc. All Rights Reserved.