org.eclipse.emf.emfstore.internal.client.ui.dialogs.merge.ui
Class DecisionBox

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.emfstore.internal.client.ui.dialogs.merge.ui.DecisionBox
All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable

public class DecisionBox
extends org.eclipse.swt.widgets.Composite

Generic container for conflicts.

Author:
wesendon

Field Summary
 
Fields inherited from class org.eclipse.swt.widgets.Composite
embeddedHandle
 
Fields inherited from class org.eclipse.swt.widgets.Widget
handle
 
Constructor Summary
DecisionBox(org.eclipse.swt.widgets.Composite parent, DecisionManager decisionManager, org.eclipse.swt.graphics.Color color, VisualConflict conflict)
          Default constructor.
 
Method Summary
 VisualConflict getConflict()
          Returns the conflict of the box.
 DecisionManager getDecisionManager()
          Returns the decisionmanager.
 void layoutPage(int heightSizeChange)
          Relayouts the box.
 void setSolution(ConflictOption option)
          Set the solution of this conflict.
 
Methods inherited from class org.eclipse.swt.widgets.Composite
changed, computeSize, drawBackground, getBackgroundMode, getChildren, getClientArea, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
 
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getBorderWidth, 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, 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, addListener, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, reskin, setData, setData, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DecisionBox

public DecisionBox(org.eclipse.swt.widgets.Composite parent,
                   DecisionManager decisionManager,
                   org.eclipse.swt.graphics.Color color,
                   VisualConflict conflict)
Default constructor.

Parameters:
parent - parent
decisionManager - decisionManager
color - background color
conflict - the conflict
Method Detail

getDecisionManager

public DecisionManager getDecisionManager()
Returns the decisionmanager.

Returns:
decisionmanager

setSolution

public void setSolution(ConflictOption option)
Set the solution of this conflict.

Parameters:
option - the option

layoutPage

public void layoutPage(int heightSizeChange)
Relayouts the box. Needed when box is dynamically resized. This is NOT a nice solution.

Parameters:
heightSizeChange - size delta

getConflict

public VisualConflict getConflict()
Returns the conflict of the box.

Returns:
conflict


Copyright © 2015. All Rights Reserved.