org.eclipse.emf.cdo.ui.widgets
Class SelectBranchComposite

java.lang.Object
  extended by org.eclipse.swt.widgets.Widget
      extended by org.eclipse.swt.widgets.Control
          extended by org.eclipse.swt.widgets.Scrollable
              extended by org.eclipse.swt.widgets.Composite
                  extended by org.eclipse.emf.cdo.ui.widgets.SelectBranchComposite
All Implemented Interfaces:
ValidationParticipant, Drawable

public class SelectBranchComposite
extends Composite
implements ValidationParticipant

UI widget that provides visualization of all available branches, and with the capability to select one.

Since:
4.0

Field Summary
 
Fields inherited from class org.eclipse.swt.widgets.Control
view
 
Constructor Summary
SelectBranchComposite(Composite parent, int style, CDOSession session, CDOBranch branch)
           
 
Method Summary
 void addListener(int eventType, Listener listener)
           
protected  void branchChanged(CDOBranch newBranch)
           
 CDOBranch getBranch()
           
 HistoryText getBranchText()
           
 TreeViewer getBranchViewer()
           
 CDOSession getSession()
           
 ValidationContext getValidationContext()
           
 void rememberSettings()
           
 void removeListener(int eventType, Listener listener)
           
 void setValidationContext(ValidationContext validationContext)
           
 
Methods inherited from class org.eclipse.swt.widgets.Composite
changed, checkSubclass, computeSize, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
 
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
 
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
 
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, reskin, setData, setData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SelectBranchComposite

public SelectBranchComposite(Composite parent,
                             int style,
                             CDOSession session,
                             CDOBranch branch)
Method Detail

getValidationContext

public ValidationContext getValidationContext()
Specified by:
getValidationContext in interface ValidationParticipant

setValidationContext

public void setValidationContext(ValidationContext validationContext)
Specified by:
setValidationContext in interface ValidationParticipant

getSession

public CDOSession getSession()

getBranch

public CDOBranch getBranch()

getBranchText

public HistoryText getBranchText()

getBranchViewer

public TreeViewer getBranchViewer()

rememberSettings

public void rememberSettings()

addListener

public void addListener(int eventType,
                        Listener listener)
Overrides:
addListener in class Widget

removeListener

public void removeListener(int eventType,
                           Listener listener)
Overrides:
removeListener in class Widget

branchChanged

protected void branchChanged(CDOBranch newBranch)


Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.