Package org.apache.hop.ui.hopgui.shared
Class BaseExecutionViewer
- java.lang.Object
-
- org.eclipse.swt.widgets.Widget
-
- org.eclipse.swt.widgets.Control
-
- org.eclipse.swt.widgets.Scrollable
-
- org.eclipse.swt.widgets.Composite
-
- org.apache.hop.ui.hopgui.perspective.execution.DragViewZoomBase
-
- org.apache.hop.ui.hopgui.shared.BaseExecutionViewer
-
- All Implemented Interfaces:
EventListener,org.eclipse.swt.events.MouseListener,org.eclipse.swt.events.MouseMoveListener,org.eclipse.swt.graphics.Drawable,org.eclipse.swt.internal.SWTEventListener
- Direct Known Subclasses:
PipelineExecutionViewer,WorkflowExecutionViewer
public abstract class BaseExecutionViewer extends DragViewZoomBase implements org.eclipse.swt.events.MouseListener, org.eclipse.swt.events.MouseMoveListener
-
-
Field Summary
Fields Modifier and Type Field Description protected List<AreaOwner>areaOwnersprotected Executionexecutionprotected ExecutionStateexecutionStateprotected HopGuihopGuiprotected inticonSizeprotected PointlastClickprotected StringlocationNameprotected org.eclipse.swt.widgets.TextloggingTextprotected ExecutionPerspectiveperspectiveprotected PropsUipropsprotected org.eclipse.swt.custom.SashFormsashstatic StringSTRING_STATE_STALEprotected org.eclipse.swt.custom.CTabFoldertabFolderprotected org.eclipse.swt.widgets.ToolBartoolBarprotected GuiToolbarWidgetstoolBarWidgets-
Fields inherited from class org.apache.hop.ui.hopgui.perspective.execution.DragViewZoomBase
canvas, graphPort, magnification, maximum, offset, viewDrag, viewDragBaseOffset, viewDragStart, viewPort, viewPortNavigation, viewPortStart
-
-
Constructor Summary
Constructors Constructor Description BaseExecutionViewer(org.eclipse.swt.widgets.Composite parent, HopGui hopGui, ExecutionPerspective perspective, String locationName, Execution execution, ExecutionState executionState)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected floatcalculateCorrectedMagnification()abstract voiddrillDownOnLocation(Point location)protected StringformatDate(Date date)abstract StringgetActiveId()List<AreaOwner>getAreaOwners()Gets areaOwnersExecutiongetExecution()Gets executionExecutionStategetExecutionState()Gets executionStatePointgetLastClick()Gets lastClickStringgetLocationName()Gets locationNameExecutionPerspectivegetPerspective()Gets perspectiveorg.eclipse.swt.custom.SashFormgetSash()Gets sashorg.eclipse.swt.custom.CTabFoldergetTabFolder()Gets tabFolderorg.eclipse.swt.widgets.ToolBargetToolBar()Gets toolBarGuiToolbarWidgetsgetToolBarWidgets()Gets toolBarWidgetsAreaOwnergetVisibleAreaOwner(int x, int y)protected org.eclipse.swt.widgets.DisplayhopDisplay()voidmouseDoubleClick(org.eclipse.swt.events.MouseEvent mouseEvent)voidmouseHover(org.eclipse.swt.events.MouseEvent e)voidmouseMove(org.eclipse.swt.events.MouseEvent e)voidmouseUp(org.eclipse.swt.events.MouseEvent e)voidredraw()protected voidrefreshLoggingText()voidsetExecutionState(ExecutionState executionState)Sets executionStatebooleansetFocus()voidsetLastClick(Point lastClick)Sets lastClickvoidsetSash(org.eclipse.swt.custom.SashForm sash)Sets sashvoidsetTabFolder(org.eclipse.swt.custom.CTabFolder tabFolder)Sets tabFoldervoidsetToolBar(org.eclipse.swt.widgets.ToolBar toolBar)Sets toolBarvoidsetToolBarWidgets(GuiToolbarWidgets toolBarWidgets)Sets toolBarWidgetsprotected voidviewMetadata(Execution execution)-
Methods inherited from class org.apache.hop.ui.hopgui.perspective.execution.DragViewZoomBase
dragView, dragViewPort, getArea, mouseScrolled, screen2real, setupDragView, setZoomLabel, validateOffset, viewDown, viewLeft, viewReset, viewRight, viewUp, zoom100Percent, zoom100Percent2, zoomFitToScreen, zoomFitToScreen2, zoomIn, zoomIn2, zoomOut
-
Methods inherited from class org.eclipse.swt.widgets.Composite
changed, checkSubclass, computeSize, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, redraw, setBackgroundMode, setLayout, setLayoutDeferred, setTabList, toString
-
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, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
-
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData
-
-
-
-
Field Detail
-
STRING_STATE_STALE
public static final String STRING_STATE_STALE
- See Also:
- Constant Field Values
-
hopGui
protected final HopGui hopGui
-
perspective
protected final ExecutionPerspective perspective
-
props
protected final PropsUi props
-
iconSize
protected final int iconSize
-
locationName
protected final String locationName
-
execution
protected final Execution execution
-
executionState
protected ExecutionState executionState
-
toolBar
protected org.eclipse.swt.widgets.ToolBar toolBar
-
toolBarWidgets
protected GuiToolbarWidgets toolBarWidgets
-
sash
protected org.eclipse.swt.custom.SashForm sash
-
tabFolder
protected org.eclipse.swt.custom.CTabFolder tabFolder
-
loggingText
protected org.eclipse.swt.widgets.Text loggingText
-
lastClick
protected Point lastClick
-
-
Constructor Detail
-
BaseExecutionViewer
public BaseExecutionViewer(org.eclipse.swt.widgets.Composite parent, HopGui hopGui, ExecutionPerspective perspective, String locationName, Execution execution, ExecutionState executionState)
-
-
Method Detail
-
hopDisplay
protected org.eclipse.swt.widgets.Display hopDisplay()
-
setFocus
public boolean setFocus()
- Overrides:
setFocusin classorg.eclipse.swt.widgets.Composite
-
redraw
public void redraw()
- Specified by:
redrawin classDragViewZoomBase
-
calculateCorrectedMagnification
protected float calculateCorrectedMagnification()
- Overrides:
calculateCorrectedMagnificationin classDragViewZoomBase
-
getVisibleAreaOwner
public AreaOwner getVisibleAreaOwner(int x, int y)
-
drillDownOnLocation
public abstract void drillDownOnLocation(Point location)
-
mouseDoubleClick
public void mouseDoubleClick(org.eclipse.swt.events.MouseEvent mouseEvent)
- Specified by:
mouseDoubleClickin interfaceorg.eclipse.swt.events.MouseListener
-
mouseMove
public void mouseMove(org.eclipse.swt.events.MouseEvent e)
- Specified by:
mouseMovein interfaceorg.eclipse.swt.events.MouseMoveListener
-
mouseUp
public void mouseUp(org.eclipse.swt.events.MouseEvent e)
- Specified by:
mouseUpin interfaceorg.eclipse.swt.events.MouseListener
-
mouseHover
public void mouseHover(org.eclipse.swt.events.MouseEvent e)
-
getToolBarWidgets
public GuiToolbarWidgets getToolBarWidgets()
Gets toolBarWidgets- Returns:
- value of toolBarWidgets
-
viewMetadata
protected void viewMetadata(Execution execution)
-
refreshLoggingText
protected void refreshLoggingText()
-
getActiveId
public abstract String getActiveId()
-
getPerspective
public ExecutionPerspective getPerspective()
Gets perspective- Returns:
- value of perspective
-
getLocationName
public String getLocationName()
Gets locationName- Returns:
- value of locationName
-
getExecution
public Execution getExecution()
Gets execution- Returns:
- value of execution
-
getToolBar
public org.eclipse.swt.widgets.ToolBar getToolBar()
Gets toolBar- Returns:
- value of toolBar
-
setToolBar
public void setToolBar(org.eclipse.swt.widgets.ToolBar toolBar)
Sets toolBar- Parameters:
toolBar- value of toolBar
-
setToolBarWidgets
public void setToolBarWidgets(GuiToolbarWidgets toolBarWidgets)
Sets toolBarWidgets- Parameters:
toolBarWidgets- value of toolBarWidgets
-
getSash
public org.eclipse.swt.custom.SashForm getSash()
Gets sash- Returns:
- value of sash
-
setSash
public void setSash(org.eclipse.swt.custom.SashForm sash)
Sets sash- Parameters:
sash- value of sash
-
getTabFolder
public org.eclipse.swt.custom.CTabFolder getTabFolder()
Gets tabFolder- Returns:
- value of tabFolder
-
setTabFolder
public void setTabFolder(org.eclipse.swt.custom.CTabFolder tabFolder)
Sets tabFolder- Parameters:
tabFolder- value of tabFolder
-
getLastClick
public Point getLastClick()
Gets lastClick- Returns:
- value of lastClick
-
setLastClick
public void setLastClick(Point lastClick)
Sets lastClick- Parameters:
lastClick- value of lastClick
-
getExecutionState
public ExecutionState getExecutionState()
Gets executionState- Returns:
- value of executionState
-
setExecutionState
public void setExecutionState(ExecutionState executionState)
Sets executionState- Parameters:
executionState- value of executionState
-
-