TIBCO ActiveMatrix Mediation Implementation Type v3.3.1

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

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.BaseMapperSection
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:
MediationTaskMapperSection

public abstract class BaseMapperSection
extends BasePropertySection

This base class provides all of the general methods for a mapper section that may be used by any derived class.


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  com.tibco.xml.mapper.schema.emfapi.EMapperInputOutputAdapter mapperAdapter
          Need to cache the mapper adapter so if we ever setInput(null) we can tell we did that.
protected  org.eclipse.swt.widgets.Composite mapperComposite
          The mapper composite is needed because the IMapperControl class does not provide a way to get the top level control of the mapper.
protected  com.tibco.xml.mapper.schema.emfapi.IEMapperControl mapperControl
          This is a helper object that provides access to the mapper UI.
protected  boolean mapperInputChanged
          Flag to detect when the mapper input has changed, to avoid unnecessary mapper refreshes when the input has not changed.
protected  org.eclipse.swt.widgets.Composite noMapperComposite
           
protected  org.eclipse.swt.widgets.Composite stackComposite
          The root composite holding the different controls
protected  org.eclipse.swt.custom.StackLayout stackLayout
           
 
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
BaseMapperSection()
           
 
Method Summary
 void aboutToBeHidden()
          This method is called when the view is about to be hidden so that actions can be removed from the toolbar.
 void aboutToBeShown()
          This method is called when the view is about to be shown so that actions can be added to the toolbar.
protected abstract  com.tibco.xml.mapper.schema.emfapi.EMapperInputOutputAdapter createMapperAdapter()
          Create a mapper adapter that derived classes will use to set mapper values
protected  org.eclipse.swt.widgets.Control doCreateControls(org.eclipse.swt.widgets.Composite parent, com.tibco.xpd.ui.properties.XpdFormToolkit toolkit)
           
protected abstract  org.eclipse.emf.common.command.Command doGetCommand(java.lang.Object obj)
           
protected  void doRefresh()
           
 com.tibco.xml.mapper.schema.emfapi.IEMapperControl getMapperControl()
          Accessor method to get the visual mapper control.
protected  org.eclipse.swt.widgets.Shell getShell()
          Used for dialogs so they show up centered on this window.
protected abstract  java.lang.String getXSLT()
          Mechanism to obtain the transformation string from the input object
 void modelChanged(org.eclipse.emf.common.notify.Notification notification)
          Have to override the parent so we can set our refresh flag.
 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 showMapper(boolean show)
          Call this method to show or not show the mapper.
 
Methods inherited from class com.tibco.amsb.core.task.ui.property.BasePropertySection
bindValidation, bindValidation, dispose, doGetInputContainer, execute, getBindingManager, getControlId, getEditingDomain, getInput, gotInput, initBindings, listenForChanges, 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, 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
getPart, getSelection, getWidgetFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stackComposite

protected org.eclipse.swt.widgets.Composite stackComposite
The root composite holding the different controls


stackLayout

protected org.eclipse.swt.custom.StackLayout stackLayout

mapperComposite

protected org.eclipse.swt.widgets.Composite mapperComposite
The mapper composite is needed because the IMapperControl class does not provide a way to get the top level control of the mapper.


noMapperComposite

protected org.eclipse.swt.widgets.Composite noMapperComposite

mapperControl

protected com.tibco.xml.mapper.schema.emfapi.IEMapperControl mapperControl
This is a helper object that provides access to the mapper UI. It helps update the mapper.


mapperInputChanged

protected boolean mapperInputChanged
Flag to detect when the mapper input has changed, to avoid unnecessary mapper refreshes when the input has not changed.


mapperAdapter

protected com.tibco.xml.mapper.schema.emfapi.EMapperInputOutputAdapter mapperAdapter
Need to cache the mapper adapter so if we ever setInput(null) we can tell we did that. The mapperControl doesn't provide a getInput() method :(

Constructor Detail

BaseMapperSection

public BaseMapperSection()
Method Detail

doCreateControls

protected org.eclipse.swt.widgets.Control doCreateControls(org.eclipse.swt.widgets.Composite parent,
                                                           com.tibco.xpd.ui.properties.XpdFormToolkit toolkit)
Specified by:
doCreateControls in class com.tibco.xpd.ui.properties.AbstractXpdSection

showMapper

protected void showMapper(boolean show)
Call this method to show or not show the mapper.

Parameters:
show - true if it is to be shown, otherwise false

getShell

protected org.eclipse.swt.widgets.Shell getShell()
Used for dialogs so they show up centered on this window.

Returns:
top level shell of this section

aboutToBeHidden

public void aboutToBeHidden()
This method is called when the view is about to be hidden so that actions can be removed from the toolbar. Call super to ensure base class functionality is preserved.

Specified by:
aboutToBeHidden in interface org.eclipse.ui.views.properties.tabbed.ISection
Overrides:
aboutToBeHidden in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection

aboutToBeShown

public void aboutToBeShown()
This method is called when the view is about to be shown so that actions can be added to the toolbar. Call super to ensure base class functionality is preserved.

Specified by:
aboutToBeShown in interface org.eclipse.ui.views.properties.tabbed.ISection
Overrides:
aboutToBeShown in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection

modelChanged

public void modelChanged(org.eclipse.emf.common.notify.Notification notification)
Have to override the parent so we can set our refresh flag.

Overrides:
modelChanged in class BasePropertySection
Parameters:
notification - - contains the change to the model object

doRefresh

protected void doRefresh()
Specified by:
doRefresh in class com.tibco.xpd.ui.properties.AbstractXpdSection

getMapperControl

public com.tibco.xml.mapper.schema.emfapi.IEMapperControl getMapperControl()
Accessor method to get the visual mapper control.

Returns:

createMapperAdapter

protected abstract com.tibco.xml.mapper.schema.emfapi.EMapperInputOutputAdapter createMapperAdapter()
Create a mapper adapter that derived classes will use to set mapper values

Returns:
class that derives from EMapperInputOutputAdapter

getXSLT

protected abstract java.lang.String getXSLT()
Mechanism to obtain the transformation string from the input object

Returns:

doGetCommand

protected abstract org.eclipse.emf.common.command.Command doGetCommand(java.lang.Object obj)
Specified by:
doGetCommand in class com.tibco.xpd.ui.properties.AbstractXpdSection

setInput

public void setInput(java.util.Collection items)
Description copied from class: BasePropertySection
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

Overrides:
setInput in class BasePropertySection

TIBCO ActiveMatrix Mediation Implementation Type v3.3.1

Copyright © 2010 TIBCO Software Inc. All Rights Reserved.