Class WorkflowExecutionViewer
- 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
-
- org.apache.hop.ui.hopgui.perspective.execution.WorkflowExecutionViewer
-
- All Implemented Interfaces:
EventListener,IExecutionViewer,org.eclipse.swt.events.MouseListener,org.eclipse.swt.events.MouseMoveListener,org.eclipse.swt.events.PaintListener,org.eclipse.swt.graphics.Drawable,org.eclipse.swt.internal.SWTEventListener
@GuiPlugin public class WorkflowExecutionViewer extends BaseExecutionViewer implements IExecutionViewer, org.eclipse.swt.events.PaintListener, org.eclipse.swt.events.MouseListener
-
-
Field Summary
Fields Modifier and Type Field Description static StringGUI_PLUGIN_TOOLBAR_PARENT_IDprotected ActionMetaselectedActionprotected ExecutionDataselectedExecutionDatastatic StringTOOLBAR_ITEM_DRILL_DOWNstatic StringTOOLBAR_ITEM_GO_UPstatic StringTOOLBAR_ITEM_REFRESHstatic StringTOOLBAR_ITEM_TO_EDITORstatic StringTOOLBAR_ITEM_VIEW_EXECUTORstatic StringTOOLBAR_ITEM_VIEW_METADATAstatic StringTOOLBAR_ITEM_ZOOM_FIT_TO_SCREENstatic StringTOOLBAR_ITEM_ZOOM_LEVELstatic StringWORKFLOW_EXECUTION_VIEWER_TABSprotected WorkflowMetaworkflowMeta-
Fields inherited from class org.apache.hop.ui.hopgui.shared.BaseExecutionViewer
areaOwners, execution, executionState, hopGui, iconSize, lastClick, locationName, loggingText, perspective, props, sash, STRING_STATE_STALE, tabFolder, toolBar, toolBarWidgets
-
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 WorkflowExecutionViewer(org.eclipse.swt.widgets.Composite parent, HopGui hopGui, WorkflowMeta workflowMeta, String locationName, ExecutionPerspective perspective, Execution execution, ExecutionState executionState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddWidgets()Add the widgets in the execution perspective parent tab foldervoiddrawWorkflowImage(org.eclipse.swt.graphics.GC swtGc, int width, int height, float magnificationFactor)voiddrillDown()voiddrillDownOnLocation(Point location)StringgetActiveId()protected PointgetArea()org.eclipse.swt.widgets.ControlgetControl()StringgetLogChannelId()Gets logChannelIdStringgetName()Gets nameorg.eclipse.swt.graphics.ImagegetTitleImage()StringgetTitleToolTip()List<String>getZoomLevels()voidgoUp()voidmouseDown(org.eclipse.swt.events.MouseEvent e)voidnavigateToEditor()voidpaintControl(org.eclipse.swt.events.PaintEvent e)voidrefresh()Refresh the information in the execution panesvoidrefreshActionData()voidsetZoomLabel()voidviewExecutor()voidviewMetadata()voidzoomFitToScreen()voidzoomLevel()-
Methods inherited from class org.apache.hop.ui.hopgui.shared.BaseExecutionViewer
calculateCorrectedMagnification, formatDate, getAreaOwners, getExecution, getExecutionState, getLastClick, getLocationName, getPerspective, getSash, getTabFolder, getToolBar, getToolBarWidgets, getVisibleAreaOwner, hopDisplay, mouseDoubleClick, mouseHover, mouseMove, mouseUp, redraw, refreshLoggingText, setExecutionState, setFocus, setLastClick, setSash, setTabFolder, setToolBar, setToolBarWidgets, viewMetadata
-
Methods inherited from class org.apache.hop.ui.hopgui.perspective.execution.DragViewZoomBase
dragView, dragViewPort, mouseScrolled, screen2real, setupDragView, validateOffset, viewDown, viewLeft, viewReset, viewRight, viewUp, zoom100Percent, zoom100Percent2, 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.hop.ui.hopgui.perspective.execution.IExecutionViewer
setFocus
-
-
-
-
Field Detail
-
GUI_PLUGIN_TOOLBAR_PARENT_ID
public static final String GUI_PLUGIN_TOOLBAR_PARENT_ID
- See Also:
- Constant Field Values
-
TOOLBAR_ITEM_REFRESH
public static final String TOOLBAR_ITEM_REFRESH
- See Also:
- Constant Field Values
-
TOOLBAR_ITEM_ZOOM_LEVEL
public static final String TOOLBAR_ITEM_ZOOM_LEVEL
- See Also:
- Constant Field Values
-
TOOLBAR_ITEM_ZOOM_FIT_TO_SCREEN
public static final String TOOLBAR_ITEM_ZOOM_FIT_TO_SCREEN
- See Also:
- Constant Field Values
-
TOOLBAR_ITEM_TO_EDITOR
public static final String TOOLBAR_ITEM_TO_EDITOR
- See Also:
- Constant Field Values
-
TOOLBAR_ITEM_DRILL_DOWN
public static final String TOOLBAR_ITEM_DRILL_DOWN
- See Also:
- Constant Field Values
-
TOOLBAR_ITEM_GO_UP
public static final String TOOLBAR_ITEM_GO_UP
- See Also:
- Constant Field Values
-
TOOLBAR_ITEM_VIEW_EXECUTOR
public static final String TOOLBAR_ITEM_VIEW_EXECUTOR
- See Also:
- Constant Field Values
-
TOOLBAR_ITEM_VIEW_METADATA
public static final String TOOLBAR_ITEM_VIEW_METADATA
- See Also:
- Constant Field Values
-
WORKFLOW_EXECUTION_VIEWER_TABS
public static final String WORKFLOW_EXECUTION_VIEWER_TABS
- See Also:
- Constant Field Values
-
workflowMeta
protected final WorkflowMeta workflowMeta
-
selectedAction
protected ActionMeta selectedAction
-
selectedExecutionData
protected ExecutionData selectedExecutionData
-
-
Constructor Detail
-
WorkflowExecutionViewer
public WorkflowExecutionViewer(org.eclipse.swt.widgets.Composite parent, HopGui hopGui, WorkflowMeta workflowMeta, String locationName, ExecutionPerspective perspective, Execution execution, ExecutionState executionState)
-
-
Method Detail
-
addWidgets
public void addWidgets()
Add the widgets in the execution perspective parent tab folder
-
getTitleImage
public org.eclipse.swt.graphics.Image getTitleImage()
- Specified by:
getTitleImagein interfaceIExecutionViewer
-
getTitleToolTip
public String getTitleToolTip()
- Specified by:
getTitleToolTipin interfaceIExecutionViewer
-
paintControl
public void paintControl(org.eclipse.swt.events.PaintEvent e)
- Specified by:
paintControlin interfaceorg.eclipse.swt.events.PaintListener
-
setZoomLabel
public void setZoomLabel()
- Specified by:
setZoomLabelin classDragViewZoomBase
-
zoomFitToScreen
@GuiToolbarElement(root="WorkflowExecutionViewer-Toolbar", id="WorkflowExecutionViewer-ToolBar-10600-Zoom-Fit-To-Screen", toolTip="i18n::ExecutionViewer.GuiAction.ZoomFitToScreen.Tooltip", type=BUTTON, image="ui/images/zoom-fit.svg") public void zoomFitToScreen()
- Overrides:
zoomFitToScreenin classDragViewZoomBase
-
getArea
protected Point getArea()
- Overrides:
getAreain classDragViewZoomBase
-
drawWorkflowImage
public void drawWorkflowImage(org.eclipse.swt.graphics.GC swtGc, int width, int height, float magnificationFactor)
-
getControl
public org.eclipse.swt.widgets.Control getControl()
- Specified by:
getControlin interfaceIExecutionViewer
-
refresh
@GuiToolbarElement(root="WorkflowExecutionViewer-Toolbar", id="WorkflowExecutionViewer-Toolbar-10100-Refresh", toolTip="i18n::WorkflowExecutionViewer.ToolbarElement.Refresh.Tooltip", image="ui/images/refresh.svg") @GuiKeyboardShortcut(key=16777230) @GuiOsxKeyboardShortcut(key=16777230) public void refresh()
Refresh the information in the execution panes- Specified by:
refreshin interfaceIExecutionViewer
-
zoomLevel
@GuiToolbarElement(root="WorkflowExecutionViewer-Toolbar", id="WorkflowExecutionViewer-ToolBar-10500-Zoom-Level", label="i18n:org.apache.hop.ui.hopgui:HopGui.Toolbar.Zoom", toolTip="i18n::HopGuiPipelineGraph.GuiAction.ZoomInOut.Tooltip", type=COMBO, alignRight=true, comboValuesMethod="getZoomLevels") public void zoomLevel()
-
navigateToEditor
@GuiToolbarElement(root="WorkflowExecutionViewer-Toolbar", id="WorkflowExecutionViewer-Toolbar-11100-GoToEditor", toolTip="i18n::WorkflowExecutionViewer.ToolbarElement.NavigateToEditor.Tooltip", image="ui/images/data_orch.svg") public void navigateToEditor()
-
getName
public String getName()
Gets name- Specified by:
getNamein interfaceIExecutionViewer- Returns:
- value of name
-
getLogChannelId
public String getLogChannelId()
Gets logChannelId- Specified by:
getLogChannelIdin interfaceIExecutionViewer- Returns:
- value of logChannelId
-
getActiveId
public String getActiveId()
- Specified by:
getActiveIdin classBaseExecutionViewer
-
mouseDown
public void mouseDown(org.eclipse.swt.events.MouseEvent e)
- Specified by:
mouseDownin interfaceorg.eclipse.swt.events.MouseListener
-
refreshActionData
public void refreshActionData()
-
drillDownOnLocation
public void drillDownOnLocation(Point location)
- Specified by:
drillDownOnLocationin classBaseExecutionViewer
-
drillDown
@GuiToolbarElement(root="WorkflowExecutionViewer-Toolbar", id="WorkflowExecutionViewer-Toolbar-11200-DrillDown", toolTip="i18n::WorkflowExecutionViewer.ToolbarElement.DrillDown.Tooltip", image="ui/images/down.svg") public void drillDown()
-
goUp
@GuiToolbarElement(root="WorkflowExecutionViewer-Toolbar", id="WorkflowExecutionViewer-Toolbar-11300-GoUp", toolTip="i18n::WorkflowExecutionViewer.ToolbarElement.GoUp.Tooltip", image="ui/images/up.svg") public void goUp()
-
viewExecutor
@GuiToolbarElement(root="WorkflowExecutionViewer-Toolbar", id="WorkflowExecutionViewer-Toolbar-12000-ViewExecutor", toolTip="i18n::WorkflowExecutionViewer.ToolbarElement.ViewExecutor.Tooltip", image="ui/images/view.svg", separator=true) public void viewExecutor()
-
viewMetadata
@GuiToolbarElement(root="WorkflowExecutionViewer-Toolbar", id="WorkflowExecutionViewer-Toolbar-12100-ViewMetadata", toolTip="i18n::WorkflowExecutionViewer.ToolbarElement.ViewMetadata.Tooltip", image="ui/images/metadata.svg") public void viewMetadata()
-
-