Class HopGuiWorkflowGraph
- 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.perspective.dataorch.HopGuiAbstractGraph
-
- org.apache.hop.ui.hopgui.file.workflow.HopGuiWorkflowGraph
-
- All Implemented Interfaces:
EventListener,IRedrawable,IGuiRefresher,IHasLogChannel,ILogParentProvided,IActionContextHandlersProvider,IGraphSnapAlignDistribute,IHopFileTypeHandler,org.eclipse.swt.events.MouseListener,org.eclipse.swt.events.MouseMoveListener,org.eclipse.swt.events.MouseTrackListener,org.eclipse.swt.graphics.Drawable,org.eclipse.swt.internal.SWTEventListener
@GuiPlugin(description="Workflow Graph tab") public class HopGuiWorkflowGraph extends HopGuiAbstractGraph implements IRedrawable, org.eclipse.swt.events.MouseListener, org.eclipse.swt.events.MouseMoveListener, org.eclipse.swt.events.MouseTrackListener, IHasLogChannel, ILogParentProvided, IHopFileTypeHandler, IGuiRefresher
Handles the display of Workflows in HopGui, in a graphical form.
-
-
Field Summary
-
Fields inherited from class org.apache.hop.ui.hopgui.perspective.dataorch.HopGuiAbstractGraph
iconOffset, id, noteOffset, parentComposite, parentTabItem, STATE_MAGNIFICATION, STATE_SCROLL_X_SELECTION, STATE_SCROLL_Y_SELECTION, stateMap, toolTip, variables
-
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 HopGuiWorkflowGraph(org.eclipse.swt.widgets.Composite parent, HopGui hopGui, org.eclipse.swt.custom.CTabItem parentTabItem, HopDataOrchestrationPerspective perspective, WorkflowMeta workflowMeta, HopWorkflowFileType<WorkflowMeta> fileType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddActionToChain(String typeDesc, boolean shift)voidaddAllTabs()voidaddExtraView()Add an extra view to the main composite SashFormvoidaddUndoPosition(Object[] obj, int[] pos, Point[] prev, Point[] curr)voidaddUndoPosition(Object[] obj, int[] pos, Point[] prev, Point[] curr, boolean nextAlso)protected voidasyncRedraw()StringbuildTabName()booleancanBeClosed()voidcheckEmptyExtraView()If the extra tab view at the bottom is empty, we close it.booleancheckIfHopAlreadyExists(WorkflowMeta workflowMeta, WorkflowHopMeta newHop)voidclearSettings()voidclose()Actually close the file, remove it from the user interface.voidcopyActionToClipboard(HopGuiWorkflowActionContext context)voidcopySelectedToClipboard()Copy the selected items to the clipboardSnapAllignDistributecreateSnapAlignDistribute()voidcutSelectedToClipboard()Cut the selected items to the clipboardvoiddebug()Debug the filevoiddeleteAction(HopGuiWorkflowActionContext context)voiddeleteHop(HopGuiWorkflowHopContext context)voiddeleteNote(HopGuiWorkflowNoteContext context)voiddeleteSelected()Delete the selected itemsvoiddeleteSelected(ActionMeta selectedAction)voiddetachAction(HopGuiWorkflowActionContext context)voiddisableHop(HopGuiWorkflowHopContext context)voiddisableHopsBetweenSelectedActions(HopGuiWorkflowHopContext context)voiddisableHopsDownstream(HopGuiWorkflowHopContext context)voiddrawWorkflowImage(org.eclipse.swt.graphics.GC swtGc, int width, int height, float magnificationFactor)voideditAction(HopGuiWorkflowActionContext context)voideditAction(ActionMeta je)voideditAction(WorkflowMeta workflowMeta, ActionMeta actionCopy)voideditActionDescription(HopGuiWorkflowActionContext context)voideditActionParallel(HopGuiWorkflowActionContext context)Go from serial to parallel to serial executionprotected voideditNote(NotePadMeta notePadMeta)voideditNote(HopGuiWorkflowNoteContext context)booleaneditProperties(WorkflowMeta workflowMeta, HopGui hopGui, boolean allowDirectoryChange)voideditWorkflowProperties()voideditWorkflowProperties(HopGuiWorkflowContext context)voidenableDisableHopsDownstream(WorkflowHopMeta hop, boolean enabled)voidenableHop(HopGuiWorkflowHopContext context)voidenableHopsBetweenSelectedActions(boolean enabled)This method enables or disables all the hops between the selected Actions.voidenableHopsBetweenSelectedActions(HopGuiWorkflowHopContext context)voidenableHopsDownstream(HopGuiWorkflowHopContext context)booleanfilterWorkflowAction(String contextActionId, HopGuiWorkflowActionContext context)booleanfilterWorkflowHopActions(String contextActionId, HopGuiWorkflowHopContext context)We're filtering out the disable action for hops which are already disabled.List<IGuiContextHandler>getContextHandlers()NotePadMetagetCurrentNote()StringgetFilename()HopWorkflowFileType<WorkflowMeta>getFileType()Gets fileTypeHopGuigetHopGui()Gets hopGuiStringgetId()Gets idstatic HopGuiWorkflowGraphgetInstance()PointgetLastMove()protected int[]getLine(ActionMeta fs, ActionMeta ts)ILogChannelgetLog()Gets logILogChannelgetLogChannel()IHasLogChannelgetLogChannelProvider()WorkflowMetagetManagedObject()IEngineMetagetMeta()StringgetName()Get the user friendly name of the file being handledHopDataOrchestrationPerspectivegetPerspective()Gets perspectivePropsUigetProps()Gets propsPointgetRealPosition(org.eclipse.swt.widgets.Composite canvas, int x, int y)ObjectgetSubject()What is this handling? (pipeline, workflow, ...)AreaOwnergetVisibleAreaOwner(int x, int y)IWorkflowEngine<WorkflowMeta>getWorkflow()WorkflowMetagetWorkflowMeta()ThreadgetWorkflowThread()Gets workflowThreadList<String>getZoomLevels()booleanhandleWorkflowMetaChanges(WorkflowMeta workflowMeta)Handle if workflow filename is set and changed savedbooleanhasChanged()See if there anything has been changed by the userbooleanhasContentChanged()protected voidhideToolTips()voidinsertAction(HopGuiWorkflowHopContext context)booleanisCloseable()Perform any task needed to close a file, save it if neededbooleanisExecutionResultsPaneVisible()booleanisRunning()protected voidjobFinished()This gets called at the very end, when everything is done.voidlaunchStuff(ActionMeta actionCopy)protected voidloadReferencedObject(ActionMeta actionCopy, int index)voidlowerNote()voidmouseDoubleClick(org.eclipse.swt.events.MouseEvent e)voidmouseDown(org.eclipse.swt.events.MouseEvent e)voidmouseEnter(org.eclipse.swt.events.MouseEvent event)voidmouseExit(org.eclipse.swt.events.MouseEvent event)voidmouseHover(org.eclipse.swt.events.MouseEvent e)voidmouseMove(org.eclipse.swt.events.MouseEvent e)voidmouseUp(org.eclipse.swt.events.MouseEvent e)voidnavigateToExecutionInfo()voidnavigateToExecutionInfo(HopGuiWorkflowContext context)protected voidnewHop()voidnewHopCandidate(HopGuiWorkflowActionContext context)voidnewNote(HopGuiWorkflowContext context)voidnewProps()voidopenActionHelp(HopGuiWorkflowActionContext context)voidopenReferencedObject()voidpaintControl(org.eclipse.swt.events.PaintEvent e)voidpasteFromClipboard()Paste items from the clipboardvoidpasteFromClipboard(HopGuiWorkflowContext context)voidpause()Pause executionprotected booleanpointOnLine(int x, int y, int[] line)protected booleanpointOnThinLine(int x, int y, int[] line)voidpreview()Preview this filevoidraiseNote()voidredo()Redo a change to the filevoidreload()Reload the filevoidresume()Resume executionvoidsave()Save the file without asking for a new filenamevoidsaveAs(String filename)Save the file after asking for a filenamevoidselectAll()Select all items in the current filesvoidselectInRect(WorkflowMeta workflowMeta, Rectangle rect)voidsetCurrentNote(NotePadMeta ni)voidsetFilename(String filename)Change the filename of the hop filevoidsetFileType(HopWorkflowFileType<WorkflowMeta> fileType)booleansetFocus()voidsetHopEvaluationFalse(HopGuiWorkflowHopContext context)voidsetHopEvaluationTrue(HopGuiWorkflowHopContext context)voidsetHopGui(HopGui hopGui)voidsetHopUnconditional(HopGuiWorkflowHopContext context)voidsetLastMove(Point lastMove)voidsetLog(ILogChannel log)voidsetName(String name)Set the user friendly name of the underlying filevoidsetProps(PropsUi props)protected voidsetToolTip(int x, int y, int screenX, int screenY)voidsetWorkflow(IWorkflowEngine<WorkflowMeta> workflow)voidsetWorkflowMeta(WorkflowMeta workflowMeta)voidsetZoomLabel()static intshowChangedWarning(org.eclipse.swt.widgets.Shell shell, String name)voidshowExecutionResults()static voidshowOnlyStartOnceMessage(org.eclipse.swt.widgets.Shell shell)voidshowSaveFileMessage()voidstart()Start executionvoidstart(WorkflowExecutionConfiguration executionConfiguration)voidstartWorkflowHere(HopGuiWorkflowActionContext context)voidstop()Stop executionStringtoString()voidundo()Undo a change to the filevoidunselectAll()Unselect all items in the current filevoidupdateGui()Update the representation, toolbar, menus and so on.voidviewActionExecutionInfo(HopGuiWorkflowActionContext context)voidzoom100Percent()voidzoomFitToScreen()voidzoomIn()voidzoomLevel()voidzoomOut()-
Methods inherited from class org.apache.hop.ui.hopgui.perspective.dataorch.HopGuiAbstractGraph
alignBottom, alignLeft, alignRight, alignTop, applyStateProperties, dispose, distributeHorizontal, distributeVertical, enableSnapAlignDistributeMenuItems, forceFocus, getGraphPort, getMagnification, getParentComposite, getParentTabItem, getStateMap, getStateProperties, getVariables, getViewPort, hopDisplay, hopShell, redraw, setGraphPort, setMagnification, setParentComposite, setParentTabItem, setStateMap, setVariables, setViewPort, showToolTip, snapToGrid
-
Methods inherited from class org.apache.hop.ui.hopgui.perspective.execution.DragViewZoomBase
calculateCorrectedMagnification, dragView, dragViewPort, getArea, mouseScrolled, screen2real, setupDragView, validateOffset, viewDown, viewLeft, viewReset, viewRight, viewUp, zoom100Percent2, zoomFitToScreen2, zoomIn2
-
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
-
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, 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, 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.file.IHopFileTypeHandler
applyStateProperties, getStateProperties, getVariables, markDeleted, redraw
-
Methods inherited from interface org.apache.hop.core.gui.IRedrawable
redraw
-
-
-
-
Field Detail
-
GUI_PLUGIN_TOOLBAR_PARENT_ID
public static final String GUI_PLUGIN_TOOLBAR_PARENT_ID
- See Also:
- Constant Field Values
-
TOOLBAR_ITEM_START
public static final String TOOLBAR_ITEM_START
- See Also:
- Constant Field Values
-
TOOLBAR_ITEM_STOP
public static final String TOOLBAR_ITEM_STOP
- See Also:
- Constant Field Values
-
TOOLBAR_ITEM_UNDO_ID
public static final String TOOLBAR_ITEM_UNDO_ID
- See Also:
- Constant Field Values
-
TOOLBAR_ITEM_REDO_ID
public static final String TOOLBAR_ITEM_REDO_ID
- See Also:
- Constant Field Values
-
TOOLBAR_ITEM_SNAP_TO_GRID
public static final String TOOLBAR_ITEM_SNAP_TO_GRID
- See Also:
- Constant Field Values
-
TOOLBAR_ITEM_ALIGN_LEFT
public static final String TOOLBAR_ITEM_ALIGN_LEFT
- See Also:
- Constant Field Values
-
TOOLBAR_ITEM_ALIGN_RIGHT
public static final String TOOLBAR_ITEM_ALIGN_RIGHT
- See Also:
- Constant Field Values
-
TOOLBAR_ITEM_ALIGN_TOP
public static final String TOOLBAR_ITEM_ALIGN_TOP
- See Also:
- Constant Field Values
-
TOOLBAR_ITEM_ALIGN_BOTTOM
public static final String TOOLBAR_ITEM_ALIGN_BOTTOM
- See Also:
- Constant Field Values
-
TOOLBAR_ITEM_DISTRIBUTE_HORIZONTALLY
public static final String TOOLBAR_ITEM_DISTRIBUTE_HORIZONTALLY
- See Also:
- Constant Field Values
-
TOOLBAR_ITEM_DISTRIBUTE_VERTICALLY
public static final String TOOLBAR_ITEM_DISTRIBUTE_VERTICALLY
- See Also:
- Constant Field Values
-
TOOLBAR_ITEM_SHOW_EXECUTION_RESULTS
public static final String TOOLBAR_ITEM_SHOW_EXECUTION_RESULTS
- 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_IN
public static final String TOOLBAR_ITEM_ZOOM_IN
- See Also:
- Constant Field Values
-
TOOLBAR_ITEM_ZOOM_OUT
public static final String TOOLBAR_ITEM_ZOOM_OUT
- See Also:
- Constant Field Values
-
TOOLBAR_ITEM_ZOOM_100PCT
public static final String TOOLBAR_ITEM_ZOOM_100PCT
- See Also:
- Constant Field Values
-
TOOLBAR_ITEM_ZOOM_TO_FIT
public static final String TOOLBAR_ITEM_ZOOM_TO_FIT
- See Also:
- Constant Field Values
-
TOOLBAR_ITEM_EDIT_WORKFLOW
public static final String TOOLBAR_ITEM_EDIT_WORKFLOW
- See Also:
- Constant Field Values
-
TOOLBAR_ITEM_TO_EXECUTION_INFO
public static final String TOOLBAR_ITEM_TO_EXECUTION_INFO
- See Also:
- Constant Field Values
-
ACTION_ID_WORKFLOW_GRAPH_HOP_ENABLE
public static final String ACTION_ID_WORKFLOW_GRAPH_HOP_ENABLE
- See Also:
- Constant Field Values
-
ACTION_ID_WORKFLOW_GRAPH_HOP_DISABLE
public static final String ACTION_ID_WORKFLOW_GRAPH_HOP_DISABLE
- See Also:
- Constant Field Values
-
ACTION_ID_WORKFLOW_GRAPH_HOP_HOP_UNCONDITIONAL
public static final String ACTION_ID_WORKFLOW_GRAPH_HOP_HOP_UNCONDITIONAL
- See Also:
- Constant Field Values
-
ACTION_ID_WORKFLOW_GRAPH_HOP_HOP_EVALUATION_SUCCESS
public static final String ACTION_ID_WORKFLOW_GRAPH_HOP_HOP_EVALUATION_SUCCESS
- See Also:
- Constant Field Values
-
ACTION_ID_WORKFLOW_GRAPH_HOP_HOP_EVALUATION_FAILURE
public static final String ACTION_ID_WORKFLOW_GRAPH_HOP_HOP_EVALUATION_FAILURE
- See Also:
- Constant Field Values
-
ACTION_ID_WORKFLOW_GRAPH_ACTION_VIEW_EXECUTION_INFO
public static final String ACTION_ID_WORKFLOW_GRAPH_ACTION_VIEW_EXECUTION_INFO
- See Also:
- Constant Field Values
-
log
protected ILogChannel log
-
workflowMeta
protected WorkflowMeta workflowMeta
-
workflow
protected IWorkflowEngine<WorkflowMeta> workflow
-
workflowThread
protected Thread workflowThread
-
props
protected PropsUi props
-
iconSize
protected int iconSize
-
lineWidth
protected int lineWidth
-
lastClick
protected Point lastClick
-
selectedActions
protected List<ActionMeta> selectedActions
-
selectedAction
protected ActionMeta selectedAction
-
selectedNote
protected NotePadMeta selectedNote
-
lastMove
protected Point lastMove
-
hopCandidate
protected WorkflowHopMeta hopCandidate
-
hopGui
protected HopGui hopGui
-
splitHop
protected boolean splitHop
-
lastButton
protected int lastButton
-
lastHopSplit
protected WorkflowHopMeta lastHopSplit
-
selectionRegion
protected Rectangle selectionRegion
-
theta
protected static final double theta
-
size
protected static final int size
- See Also:
- Constant Field Values
-
currentMouseX
protected int currentMouseX
-
currentMouseY
protected int currentMouseY
-
ni
protected NotePadMeta ni
-
extraViewTabFolder
public org.eclipse.swt.custom.CTabFolder extraViewTabFolder
-
workflowLogDelegate
public HopGuiWorkflowLogDelegate workflowLogDelegate
-
workflowGridDelegate
public HopGuiWorkflowGridDelegate workflowGridDelegate
-
workflowClipboardDelegate
public HopGuiWorkflowClipboardDelegate workflowClipboardDelegate
-
workflowRunDelegate
public HopGuiWorkflowRunDelegate workflowRunDelegate
-
workflowUndoDelegate
public HopGuiWorkflowUndoDelegate workflowUndoDelegate
-
workflowActionDelegate
public HopGuiWorkflowActionDelegate workflowActionDelegate
-
workflowHopDelegate
public HopGuiWorkflowHopDelegate workflowHopDelegate
-
notePadDelegate
public HopGuiNotePadDelegate notePadDelegate
-
-
Constructor Detail
-
HopGuiWorkflowGraph
public HopGuiWorkflowGraph(org.eclipse.swt.widgets.Composite parent, HopGui hopGui, org.eclipse.swt.custom.CTabItem parentTabItem, HopDataOrchestrationPerspective perspective, WorkflowMeta workflowMeta, HopWorkflowFileType<WorkflowMeta> fileType)
-
-
Method Detail
-
getInstance
public static HopGuiWorkflowGraph getInstance()
-
hideToolTips
protected void hideToolTips()
-
mouseDoubleClick
public void mouseDoubleClick(org.eclipse.swt.events.MouseEvent e)
- Specified by:
mouseDoubleClickin interfaceorg.eclipse.swt.events.MouseListener
-
mouseDown
public void mouseDown(org.eclipse.swt.events.MouseEvent e)
- Specified by:
mouseDownin interfaceorg.eclipse.swt.events.MouseListener
-
mouseUp
public void mouseUp(org.eclipse.swt.events.MouseEvent e)
- Specified by:
mouseUpin interfaceorg.eclipse.swt.events.MouseListener
-
mouseMove
public void mouseMove(org.eclipse.swt.events.MouseEvent e)
- Specified by:
mouseMovein interfaceorg.eclipse.swt.events.MouseMoveListener
-
mouseHover
public void mouseHover(org.eclipse.swt.events.MouseEvent e)
- Specified by:
mouseHoverin interfaceorg.eclipse.swt.events.MouseTrackListener
-
mouseEnter
public void mouseEnter(org.eclipse.swt.events.MouseEvent event)
- Specified by:
mouseEnterin interfaceorg.eclipse.swt.events.MouseTrackListener
-
mouseExit
public void mouseExit(org.eclipse.swt.events.MouseEvent event)
- Specified by:
mouseExitin interfaceorg.eclipse.swt.events.MouseTrackListener
-
checkIfHopAlreadyExists
public boolean checkIfHopAlreadyExists(WorkflowMeta workflowMeta, WorkflowHopMeta newHop)
-
getVisibleAreaOwner
public AreaOwner getVisibleAreaOwner(int x, int y)
-
asyncRedraw
protected void asyncRedraw()
-
zoomLevel
@GuiToolbarElement(root="HopGuiWorkflowGraph-Toolbar", id="HopGuiWorkflowGraph-ToolBar-10500-Zoom-Level", label="i18n:org.apache.hop.ui.hopgui:HopGui.Toolbar.Zoom", toolTip="i18n::HopGuiWorkflowGraph.GuiAction.ZoomInOut.Tooltip", type=COMBO, alignRight=true, comboValuesMethod="getZoomLevels") public void zoomLevel()
-
zoomIn
@GuiToolbarElement(root="HopGuiWorkflowGraph-Toolbar", id="HopGuiWorkflowGraph-ToolBar-10510-Zoom-In", toolTip="i18n::HopGuiWorkflowGraph.GuiAction.ZoomIn.Tooltip", type=BUTTON, image="ui/images/zoom-in.svg") public void zoomIn()
- Overrides:
zoomInin classDragViewZoomBase
-
zoomOut
@GuiToolbarElement(root="HopGuiWorkflowGraph-Toolbar", id="HopGuiWorkflowGraph-ToolBar-10520-Zoom-Out", toolTip="i18n::HopGuiWorkflowGraph.GuiAction.ZoomOut.Tooltip", type=BUTTON, image="ui/images/zoom-out.svg") public void zoomOut()
- Overrides:
zoomOutin classDragViewZoomBase
-
zoom100Percent
@GuiToolbarElement(root="HopGuiWorkflowGraph-Toolbar", id="HopGuiWorkflowGraph-ToolBar-10530-Zoom-100Pct", toolTip="i18n::HopGuiWorkflowGraph.GuiAction.Zoom100.Tooltip", type=BUTTON, image="ui/images/zoom-100.svg") public void zoom100Percent()
- Overrides:
zoom100Percentin classDragViewZoomBase
-
zoomFitToScreen
@GuiToolbarElement(root="HopGuiWorkflowGraph-Toolbar", id="HopGuiWorkflowGraph-ToolBar-10530-Zoom-To-Fit", toolTip="i18n::HopGuiWorkflowGraph.GuiAction.ZoomFitToScreen.Tooltip", type=BUTTON, image="ui/images/zoom-fit.svg") public void zoomFitToScreen()
- Overrides:
zoomFitToScreenin classDragViewZoomBase
-
setZoomLabel
public void setZoomLabel()
- Specified by:
setZoomLabelin classDragViewZoomBase
-
start
@GuiToolbarElement(root="HopGuiWorkflowGraph-Toolbar", id="HopGuiWorkflowGraph-ToolBar-10010-Run", toolTip="i18n::WorkflowGraph.Toolbar.Start.Tooltip", image="ui/images/run.svg") public void start()
Description copied from interface:IHopFileTypeHandlerStart execution- Specified by:
startin interfaceIHopFileTypeHandler
-
stop
@GuiToolbarElement(root="HopGuiWorkflowGraph-Toolbar", id="HopGuiWorkflowGraph-ToolBar-10030-Stop", toolTip="i18n::WorkflowGraph.Toolbar.Stop.Tooltip", image="ui/images/stop.svg") public void stop()
Description copied from interface:IHopFileTypeHandlerStop execution- Specified by:
stopin interfaceIHopFileTypeHandler
-
pause
public void pause()
Description copied from interface:IHopFileTypeHandlerPause execution- Specified by:
pausein interfaceIHopFileTypeHandler
-
resume
public void resume()
Description copied from interface:IHopFileTypeHandlerResume execution- Specified by:
resumein interfaceIHopFileTypeHandler
-
preview
public void preview()
Description copied from interface:IHopFileTypeHandlerPreview this file- Specified by:
previewin interfaceIHopFileTypeHandler
-
debug
public void debug()
Description copied from interface:IHopFileTypeHandlerDebug the file- Specified by:
debugin interfaceIHopFileTypeHandler
-
selectInRect
public void selectInRect(WorkflowMeta workflowMeta, Rectangle rect)
-
setFocus
public boolean setFocus()
- Overrides:
setFocusin classorg.eclipse.swt.widgets.Composite
-
showOnlyStartOnceMessage
public static void showOnlyStartOnceMessage(org.eclipse.swt.widgets.Shell shell)
-
deleteSelected
public void deleteSelected(ActionMeta selectedAction)
-
clearSettings
public void clearSettings()
-
getRealPosition
public Point getRealPosition(org.eclipse.swt.widgets.Composite canvas, int x, int y)
-
getLine
protected int[] getLine(ActionMeta fs, ActionMeta ts)
-
startWorkflowHere
@GuiContextAction(id="workflow-graph-action-10040-start-workflow-here", parentId="HopGuiWorkflowActionContext", type=Info, name="i18n::HopGuiWorkflowGraph.ContextualAction.StartWorkflowHere.Text", tooltip="i18n::HopGuiWorkflowGraph.ContextualAction.StartWorkflowHere.Tooltip", image="ui/images/run.svg", category="i18n::HopGuiWorkflowGraph.ContextualAction.Category.Basic.Text", categoryOrder="1") public void startWorkflowHere(HopGuiWorkflowActionContext context)
-
newHopCandidate
@GuiContextAction(id="workflow-graph-action-10050-create-hop", parentId="HopGuiWorkflowActionContext", type=Create, name="i18n::HopGuiWorkflowGraph.ContextualAction.CreateHop.Text", tooltip="i18n::HopGuiWorkflowGraph.ContextualAction.CreateHop.Tooltip", image="ui/images/hop.svg", category="i18n::HopGuiWorkflowGraph.ContextualAction.Category.Basic.Text", categoryOrder="1") public void newHopCandidate(HopGuiWorkflowActionContext context)
-
editActionDescription
@GuiContextAction(id="workflow-graph-action-10800-edit-description", parentId="HopGuiWorkflowActionContext", type=Modify, name="i18n::HopGuiWorkflowGraph.ContextualAction.EditActionDescription.Text", tooltip="i18n::HopGuiWorkflowGraph.ContextualAction.EditActionDescription.Tooltip", image="ui/images/edit_description.svg", category="i18n::HopGuiWorkflowGraph.ContextualAction.Category.Basic.Text", categoryOrder="1") public void editActionDescription(HopGuiWorkflowActionContext context)
-
editActionParallel
@GuiContextAction(id="workflow-graph-transform-10600-parallel", parentId="HopGuiWorkflowActionContext", type=Modify, name="i18n::HopGuiWorkflowGraph.ContextualAction.ParallelExecution.Text", tooltip="i18n::HopGuiWorkflowGraph.ContextualAction.ParallelExecution.Tooltip", image="ui/images/parallel.svg", category="i18n::HopGuiWorkflowGraph.ContextualAction.Category.Advanced.Text", categoryOrder="3") public void editActionParallel(HopGuiWorkflowActionContext context)
Go from serial to parallel to serial execution
-
deleteAction
@GuiContextAction(id="workflow-graph-action-10900-delete", parentId="HopGuiWorkflowActionContext", type=Delete, name="i18n::HopGuiWorkflowGraph.ContextualAction.DeleteAction.Text", tooltip="i18n::HopGuiWorkflowGraph.ContextualAction.DeleteAction.Tooltip", image="ui/images/delete.svg", category="i18n::HopGuiWorkflowGraph.ContextualAction.Category.Basic.Text", categoryOrder="1") public void deleteAction(HopGuiWorkflowActionContext context)
-
openActionHelp
@GuiContextAction(id="workflow-graph-action-90000-help", parentId="HopGuiWorkflowActionContext", type=Info, name="i18n::System.Button.Help", tooltip="i18n::System.Tooltip.Help", image="ui/images/help.svg", category="Basic", categoryOrder="1") public void openActionHelp(HopGuiWorkflowActionContext context)
-
selectAll
@GuiKeyboardShortcut(control=true, key=97) @GuiOsxKeyboardShortcut(command=true, key=97) public void selectAll()
Description copied from interface:IHopFileTypeHandlerSelect all items in the current files- Specified by:
selectAllin interfaceIHopFileTypeHandler
-
unselectAll
@GuiKeyboardShortcut(key=27) public void unselectAll()
Description copied from interface:IHopFileTypeHandlerUnselect all items in the current file- Specified by:
unselectAllin interfaceIHopFileTypeHandler
-
copySelectedToClipboard
@GuiKeyboardShortcut(control=true, key=99) @GuiOsxKeyboardShortcut(command=true, key=99) public void copySelectedToClipboard()
Description copied from interface:IHopFileTypeHandlerCopy the selected items to the clipboard- Specified by:
copySelectedToClipboardin interfaceIHopFileTypeHandler
-
cutSelectedToClipboard
@GuiKeyboardShortcut(control=true, key=120) @GuiOsxKeyboardShortcut(command=true, key=120) public void cutSelectedToClipboard()
Description copied from interface:IHopFileTypeHandlerCut the selected items to the clipboard- Specified by:
cutSelectedToClipboardin interfaceIHopFileTypeHandler
-
deleteSelected
@GuiKeyboardShortcut(key=127) public void deleteSelected()
Description copied from interface:IHopFileTypeHandlerDelete the selected items- Specified by:
deleteSelectedin interfaceIHopFileTypeHandler
-
pasteFromClipboard
@GuiKeyboardShortcut(control=true, key=118) @GuiOsxKeyboardShortcut(command=true, key=118) public void pasteFromClipboard()
Description copied from interface:IHopFileTypeHandlerPaste items from the clipboard- Specified by:
pasteFromClipboardin interfaceIHopFileTypeHandler
-
pasteFromClipboard
@GuiContextAction(id="workflow-graph-workflow-clipboard-paste", parentId="HopGuiWorkflowContext", type=Modify, name="i18n::HopGuiWorkflowGraph.ContextualAction.PasteFromClipboard.Text", tooltip="i18n::HopGuiWorkflowGraph.ContextualAction.PasteFromClipboard.Tooltip", image="ui/images/paste.svg", category="i18n::HopGuiWorkflowGraph.ContextualAction.Category.Basic.Text", categoryOrder="1") public void pasteFromClipboard(HopGuiWorkflowContext context)
-
editWorkflowProperties
@GuiContextAction(id="workflow-graph-edit-workflow", parentId="HopGuiWorkflowContext", type=Modify, name="i18n::HopGuiWorkflowGraph.ContextualAction.EditWorkflow.Text", tooltip="i18n::HopGuiWorkflowGraph.ContextualAction.EditWorkflow.Tooltip", image="ui/images/workflow.svg", category="i18n::HopGuiWorkflowGraph.ContextualAction.Category.Basic.Text", categoryOrder="1") public void editWorkflowProperties(HopGuiWorkflowContext context)
-
editWorkflowProperties
@GuiToolbarElement(root="HopGuiWorkflowGraph-Toolbar", id="HopGuiWorkflowGraph-ToolBar-10450-EditWorkflow", toolTip="i18n::WorkflowGraph.Toolbar.EditWorkflow.Tooltip", image="ui/images/workflow.svg") @GuiKeyboardShortcut(control=true, key=108) @GuiOsxKeyboardShortcut(command=true, key=108) public void editWorkflowProperties()
-
newNote
@GuiContextAction(id="workflow-graph-new-note", parentId="HopGuiWorkflowContext", type=Create, name="i18n::HopGuiWorkflowGraph.ContextualAction.CreateNote.Text", tooltip="i18n::HopGuiWorkflowGraph.ContextualAction.CreateNote.Tooltip", image="ui/images/note-add.svg", category="i18n::HopGuiWorkflowGraph.ContextualAction.Category.Basic.Text", categoryOrder="1") public void newNote(HopGuiWorkflowContext context)
-
setCurrentNote
public void setCurrentNote(NotePadMeta ni)
-
getCurrentNote
public NotePadMeta getCurrentNote()
-
editNote
@GuiContextAction(id="workflow-graph-10-edit-note", parentId="HopGuiWorkflowNoteContext", type=Modify, name="i18n::HopGuiWorkflowGraph.ContextualAction.EditNote.Text", tooltip="i18n::HopGuiWorkflowGraph.ContextualAction.EditNote.Tooltip", image="ui/images/edit.svg", category="i18n::HopGuiWorkflowGraph.ContextualAction.Category.Basic.Text", categoryOrder="1") public void editNote(HopGuiWorkflowNoteContext context)
-
deleteNote
@GuiContextAction(id="workflow-graph-20-delete-note", parentId="HopGuiWorkflowNoteContext", type=Delete, name="i18n::HopGuiWorkflowGraph.ContextualAction.DeleteNote.Text", tooltip="i18n::HopGuiWorkflowGraph.ContextualAction.DeleteNote.Tooltip", image="ui/images/delete.svg", category="i18n::HopGuiWorkflowGraph.ContextualAction.Category.Basic.Text", categoryOrder="1") public void deleteNote(HopGuiWorkflowNoteContext context)
-
raiseNote
public void raiseNote()
-
lowerNote
public void lowerNote()
-
enableHop
@GuiContextAction(id="workflow-graph-hop-10010-hop-enable", parentId="HopGuiWorkflowHopContext", type=Modify, name="i18n::HopGuiWorkflowGraph.ContextualAction.EnableHop.Text", tooltip="i18n::HopGuiWorkflowGraph.ContextualAction.EnableHop.Tooltip", image="ui/images/hop.svg", category="i18n::HopGuiWorkflowGraph.ContextualAction.Category.Basic.Text", categoryOrder="1") public void enableHop(HopGuiWorkflowHopContext context)
-
disableHop
@GuiContextAction(id="workflow-graph-hop-10000-hop-disable", parentId="HopGuiWorkflowHopContext", type=Modify, name="i18n::HopGuiWorkflowGraph.ContextualAction.DisableHop.Text", tooltip="i18n::HopGuiWorkflowGraph.ContextualAction.DisableHop.Tooltip", image="ui/images/hop-disable.svg", category="i18n::HopGuiWorkflowGraph.ContextualAction.Category.Basic.Text", categoryOrder="1") public void disableHop(HopGuiWorkflowHopContext context)
-
deleteHop
@GuiContextAction(id="workflow-graph-hop-10020-hop-delete", parentId="HopGuiWorkflowHopContext", type=Delete, name="i18n::HopGuiWorkflowGraph.ContextualAction.DeleteHop.Text", tooltip="i18n::HopGuiWorkflowGraph.ContextualAction.DeleteHop.Tooltip", image="ui/images/hop-delete.svg", category="i18n::HopGuiWorkflowGraph.ContextualAction.Category.Basic.Text", categoryOrder="1") public void deleteHop(HopGuiWorkflowHopContext context)
-
setHopUnconditional
@GuiContextAction(id="workflow-graph-hop-10030-hop-unconditional", parentId="HopGuiWorkflowHopContext", type=Modify, name="i18n::HopGuiWorkflowGraph.ContextualAction.UnconditionalHop.Text", tooltip="i18n::HopGuiWorkflowGraph.ContextualAction.UnconditionalHop.Tooltip", image="ui/images/unconditional.svg", category="i18n::HopGuiWorkflowGraph.ContextualAction.Category.Routing.Text", categoryOrder="2") public void setHopUnconditional(HopGuiWorkflowHopContext context)
-
setHopEvaluationTrue
@GuiContextAction(id="workflow-graph-hop-10040-hop-evaluation-success", parentId="HopGuiWorkflowHopContext", type=Modify, name="i18n::HopGuiWorkflowGraph.ContextualAction.SuccessHop.Text", tooltip="i18n::HopGuiWorkflowGraph.ContextualAction.SuccessHop.Tooltip", image="ui/images/true.svg", category="i18n::HopGuiWorkflowGraph.ContextualAction.Category.Routing.Text", categoryOrder="2") public void setHopEvaluationTrue(HopGuiWorkflowHopContext context)
-
setHopEvaluationFalse
@GuiContextAction(id="workflow-graph-hop-10050-hop-evaluation-failure", parentId="HopGuiWorkflowHopContext", type=Modify, name="i18n::HopGuiWorkflowGraph.ContextualAction.FailureHop.Text", tooltip="i18n::HopGuiWorkflowGraph.ContextualAction.FailureHop.Tooltip", image="ui/images/false.svg", category="i18n::HopGuiWorkflowGraph.ContextualAction.Category.Routing.Text", categoryOrder="2") public void setHopEvaluationFalse(HopGuiWorkflowHopContext context)
-
filterWorkflowHopActions
@GuiContextActionFilter(parentId="HopGuiWorkflowHopContext") public boolean filterWorkflowHopActions(String contextActionId, HopGuiWorkflowHopContext context)
We're filtering out the disable action for hops which are already disabled. The same for the enabled hops.- Parameters:
contextActionId-context-- Returns:
- True if the action should be shown and false otherwise.
-
enableHopsBetweenSelectedActions
@GuiContextAction(id="workflow-graph-hop-10065-hop-enable-between-selected-actions", parentId="HopGuiWorkflowHopContext", type=Modify, name="i18n::HopGuiWorkflowGraph.ContextualAction.EnableBetweenSelectedActions.Text", tooltip="i18n::HopGuiWorkflowGraph.ContextualAction.EnableBetweenSelectedActions.Tooltip", image="ui/images/hop-enable-between-selected.svg", category="i18n::HopGuiWorkflowGraph.ContextualAction.Category.Bulk.Text", categoryOrder="3") public void enableHopsBetweenSelectedActions(HopGuiWorkflowHopContext context)
-
disableHopsBetweenSelectedActions
@GuiContextAction(id="workflow-graph-hop-10075-hop-disable-between-selected-actions", parentId="HopGuiWorkflowHopContext", type=Modify, name="i18n::HopGuiWorkflowGraph.ContextualAction.DisableBetweenSelectedActions.Text", tooltip="i18n::HopGuiWorkflowGraph.ContextualAction.DisableBetweenSelectedActions.Tooltip", image="ui/images/hop-disable-between-selected.svg", category="i18n::HopGuiWorkflowGraph.ContextualAction.Category.Bulk.Text", categoryOrder="3") public void disableHopsBetweenSelectedActions(HopGuiWorkflowHopContext context)
-
enableHopsBetweenSelectedActions
public void enableHopsBetweenSelectedActions(boolean enabled)
This method enables or disables all the hops between the selected Actions.
-
enableHopsDownstream
@GuiContextAction(id="workflow-graph-hop-10060-hop-enable-downstream", parentId="HopGuiWorkflowHopContext", type=Modify, name="i18n::HopGuiWorkflowGraph.ContextualAction.EnableDownstream.Text", tooltip="i18n::HopGuiWorkflowGraph.ContextualAction.EnableDownstream.Tooltip", image="ui/images/hop-enable-downstream.svg", category="i18n::HopGuiWorkflowGraph.ContextualAction.Category.Bulk.Text", categoryOrder="3") public void enableHopsDownstream(HopGuiWorkflowHopContext context)
-
disableHopsDownstream
@GuiContextAction(id="workflow-graph-hop-10070-hop-disable-downstream", parentId="HopGuiWorkflowHopContext", type=Modify, name="i18n::HopGuiWorkflowGraph.ContextualAction.DisableDownstream.Text", tooltip="i18n::HopGuiWorkflowGraph.ContextualAction.DisableDownstream.Tooltip", image="ui/images/hop-disable-downstream.svg", category="i18n::HopGuiWorkflowGraph.ContextualAction.Category.Bulk.Text", categoryOrder="3") public void disableHopsDownstream(HopGuiWorkflowHopContext context)
-
insertAction
@GuiContextAction(id="workflow-graph-hop-10080-hop-insert-action", parentId="HopGuiWorkflowHopContext", type=Modify, name="i18n::HopGuiWorkflowGraph.ContextualAction.InsetAction.Text", tooltip="i18n::HopGuiWorkflowGraph.ContextualAction.InsetAction.Tooltip", image="ui/images/add-item.svg", category="i18n::HopGuiWorkflowGraph.ContextualAction.Category.Basic.Text", categoryOrder="3") public void insertAction(HopGuiWorkflowHopContext context)
-
enableDisableHopsDownstream
public void enableDisableHopsDownstream(WorkflowHopMeta hop, boolean enabled)
-
setToolTip
protected void setToolTip(int x, int y, int screenX, int screenY)
-
launchStuff
public void launchStuff(ActionMeta actionCopy)
-
loadReferencedObject
protected void loadReferencedObject(ActionMeta actionCopy, int index)
-
setWorkflow
public void setWorkflow(IWorkflowEngine<WorkflowMeta> workflow)
-
paintControl
public void paintControl(org.eclipse.swt.events.PaintEvent e)
-
drawWorkflowImage
public void drawWorkflowImage(org.eclipse.swt.graphics.GC swtGc, int width, int height, float magnificationFactor) throws HopException- Throws:
HopException
-
hasChanged
public boolean hasChanged()
Description copied from interface:IHopFileTypeHandlerSee if there anything has been changed by the user- Specified by:
hasChangedin interfaceIHopFileTypeHandler- Specified by:
hasChangedin classHopGuiAbstractGraph- Returns:
- true if there were changes worth saving, false if nothing has been changed.
-
newHop
protected void newHop()
-
editAction
@GuiContextAction(id="workflow-graph-action-10000-edit", parentId="HopGuiWorkflowActionContext", type=Modify, name="i18n::HopGuiWorkflowGraph.ContextualAction.EditAction.Text", tooltip="i18n::HopGuiWorkflowGraph.ContextualAction.EditAction.Tooltip", image="ui/images/edit.svg", category="i18n::HopGuiWorkflowGraph.ContextualAction.Category.Basic.Text", categoryOrder="1") public void editAction(HopGuiWorkflowActionContext context)
-
editAction
public void editAction(ActionMeta je)
-
editNote
protected void editNote(NotePadMeta notePadMeta)
-
pointOnLine
protected boolean pointOnLine(int x, int y, int[] line)
-
pointOnThinLine
protected boolean pointOnThinLine(int x, int y, int[] line)
-
createSnapAlignDistribute
public SnapAllignDistribute createSnapAlignDistribute()
- Specified by:
createSnapAlignDistributein interfaceIGraphSnapAlignDistribute- Specified by:
createSnapAlignDistributein classHopGuiAbstractGraph
-
detachAction
@GuiContextAction(id="workflow-graph-action-10100-action-detach", parentId="HopGuiWorkflowActionContext", type=Modify, name="i18n::HopGuiWorkflowGraph.ContextualAction.DetachAction.Text", tooltip="i18n::HopGuiWorkflowGraph.ContextualAction.DetachAction.Tooltip", image="ui/images/hop-delete.svg", category="i18n::HopGuiWorkflowGraph.ContextualAction.Category.Basic.Text", categoryOrder="1") public void detachAction(HopGuiWorkflowActionContext context)
-
copyActionToClipboard
@GuiContextAction(id="pipeline-graph-transform-10010-copy-transform-to-clipboard", parentId="HopGuiWorkflowActionContext", type=Custom, name="i18n::HopGuiWorkflowGraph.ContextualAction.CopyAction.Text", tooltip="i18n::HopGuiWorkflowGraph.ContextualAction.CopyAction.Tooltip", image="ui/images/copy.svg", category="i18n::HopGuiWorkflowGraph.ContextualAction.Category.Basic.Text", categoryOrder="1") public void copyActionToClipboard(HopGuiWorkflowActionContext context)
-
newProps
public void newProps()
-
toString
public String toString()
- Overrides:
toStringin classorg.eclipse.swt.widgets.Composite
-
getMeta
public IEngineMeta getMeta()
-
setWorkflowMeta
public void setWorkflowMeta(WorkflowMeta workflowMeta)
- Parameters:
workflowMeta- the workflowMeta to set
-
undo
@GuiToolbarElement(root="HopGuiWorkflowGraph-Toolbar", id="HopGuiWorkflowGraph-ToolBar-10100-Undo", toolTip="i18n:org.apache.hop.ui.hopgui:HopGui.Toolbar.Undo.Tooltip", image="ui/images/undo.svg", separator=true) @GuiKeyboardShortcut(control=true, key=122) public void undo()
Description copied from interface:IHopFileTypeHandlerUndo a change to the file- Specified by:
undoin interfaceIHopFileTypeHandler
-
redo
@GuiToolbarElement(root="HopGuiWorkflowGraph-Toolbar", id="HopGuiWorkflowGraph-ToolBar-10110-Redo", toolTip="i18n:org.apache.hop.ui.hopgui:HopGui.Toolbar.Redo.Tooltip", image="ui/images/redo.svg") @GuiKeyboardShortcut(control=true, shift=true, key=122) public void redo()
Description copied from interface:IHopFileTypeHandlerRedo a change to the file- Specified by:
redoin interfaceIHopFileTypeHandler
-
isRunning
public boolean isRunning()
-
updateGui
public void updateGui()
Update the representation, toolbar, menus and so on. This is needed after a file, context or capabilities changes- Specified by:
updateGuiin interfaceIGuiRefresher- Specified by:
updateGuiin interfaceIHopFileTypeHandler
-
canBeClosed
public boolean canBeClosed()
-
getManagedObject
public WorkflowMeta getManagedObject()
-
hasContentChanged
public boolean hasContentChanged()
-
showChangedWarning
public static int showChangedWarning(org.eclipse.swt.widgets.Shell shell, String name)
-
editProperties
public boolean editProperties(WorkflowMeta workflowMeta, HopGui hopGui, boolean allowDirectoryChange)
-
save
public void save() throws HopExceptionDescription copied from interface:IHopFileTypeHandlerSave the file without asking for a new filename- Specified by:
savein interfaceIHopFileTypeHandler- Throws:
HopException
-
saveAs
public void saveAs(String filename) throws HopException
Description copied from interface:IHopFileTypeHandlerSave the file after asking for a filename- Specified by:
saveAsin interfaceIHopFileTypeHandler- Throws:
HopException
-
getLastMove
public Point getLastMove()
- Returns:
- the lastMove
-
setLastMove
public void setLastMove(Point lastMove)
- Parameters:
lastMove- the lastMove to set
-
addExtraView
public void addExtraView()
Add an extra view to the main composite SashForm
-
checkEmptyExtraView
public void checkEmptyExtraView()
If the extra tab view at the bottom is empty, we close it.
-
isExecutionResultsPaneVisible
public boolean isExecutionResultsPaneVisible()
-
showExecutionResults
@GuiToolbarElement(root="HopGuiWorkflowGraph-Toolbar", id="HopGuiWorkflowGraph-ToolBar-10400-Execution-Results", toolTip="i18n:org.apache.hop.ui.hopgui:HopGui.Tooltip.ShowExecutionResults", image="ui/images/show-results.svg", separator=true) public void showExecutionResults()
-
addAllTabs
public void addAllTabs()
-
close
public void close()
Description copied from interface:IHopFileTypeHandlerActually close the file, remove it from the user interface.- Specified by:
closein interfaceIHopFileTypeHandler
-
isCloseable
public boolean isCloseable()
Description copied from interface:IHopFileTypeHandlerPerform any task needed to close a file, save it if needed- Specified by:
isCloseablein interfaceIHopFileTypeHandler- Returns:
- true if the file is ready to close. Return false if there was a problem saving or any other issue.
-
buildTabName
public String buildTabName() throws HopException
- Throws:
HopException
-
start
public void start(WorkflowExecutionConfiguration executionConfiguration) throws HopException
- Throws:
HopException
-
showSaveFileMessage
public void showSaveFileMessage()
-
jobFinished
protected void jobFinished()
This gets called at the very end, when everything is done.
-
getLogChannelProvider
public IHasLogChannel getLogChannelProvider()
- Specified by:
getLogChannelProviderin interfaceILogParentProvided
-
addUndoPosition
public void addUndoPosition(Object[] obj, int[] pos, Point[] prev, Point[] curr, boolean nextAlso)
-
handleWorkflowMetaChanges
public boolean handleWorkflowMetaChanges(WorkflowMeta workflowMeta) throws HopException
Handle if workflow filename is set and changed savedPrompt auto save feature...
- Parameters:
workflowMeta-- Returns:
- true if workflow meta has name and if changed is saved
- Throws:
HopException
-
addActionToChain
public void addActionToChain(String typeDesc, boolean shift)
-
openReferencedObject
@GuiKeyboardShortcut(key=122) @GuiOsxKeyboardShortcut(key=122) public void openReferencedObject()
-
getSubject
public Object getSubject()
Description copied from interface:IHopFileTypeHandlerWhat is this handling? (pipeline, workflow, ...)- Specified by:
getSubjectin interfaceIHopFileTypeHandler- Returns:
- The subject being handled
-
getWorkflowMeta
public WorkflowMeta getWorkflowMeta()
-
getWorkflow
public IWorkflowEngine<WorkflowMeta> getWorkflow()
-
getLogChannel
public ILogChannel getLogChannel()
- Specified by:
getLogChannelin interfaceIHasLogChannel
-
editAction
public void editAction(WorkflowMeta workflowMeta, ActionMeta actionCopy)
-
getName
public String getName()
Description copied from interface:IHopFileTypeHandlerGet the user friendly name of the file being handled- Specified by:
getNamein interfaceIHopFileTypeHandler- Returns:
- The user friendly name
-
setName
public void setName(String name)
Description copied from interface:IHopFileTypeHandlerSet the user friendly name of the underlying file- Specified by:
setNamein interfaceIHopFileTypeHandler- Parameters:
name- The user friendly name
-
getFilename
public String getFilename()
- Specified by:
getFilenamein interfaceIHopFileTypeHandler- Returns:
- The filename of the hop file
-
setFilename
public void setFilename(String filename)
Description copied from interface:IHopFileTypeHandlerChange the filename of the hop file- Specified by:
setFilenamein interfaceIHopFileTypeHandler- Parameters:
filename- The new filename
-
getHopGui
public HopGui getHopGui()
Gets hopGui- Returns:
- value of hopGui
-
getPerspective
public HopDataOrchestrationPerspective getPerspective()
Gets perspective- Returns:
- value of perspective
-
getId
public String getId()
Gets id- Overrides:
getIdin classHopGuiAbstractGraph- Returns:
- value of id
-
getLog
public ILogChannel getLog()
Gets log- Returns:
- value of log
-
setLog
public void setLog(ILogChannel log)
- Parameters:
log- The log to set
-
getProps
public PropsUi getProps()
Gets props- Returns:
- value of props
-
setProps
public void setProps(PropsUi props)
- Parameters:
props- The props to set
-
setHopGui
public void setHopGui(HopGui hopGui)
- Parameters:
hopGui- The hopGui to set
-
getFileType
public HopWorkflowFileType<WorkflowMeta> getFileType()
Gets fileType- Specified by:
getFileTypein interfaceIHopFileTypeHandler- Returns:
- value of fileType
-
setFileType
public void setFileType(HopWorkflowFileType<WorkflowMeta> fileType)
- Parameters:
fileType- The fileType to set
-
getContextHandlers
public List<IGuiContextHandler> getContextHandlers()
- Specified by:
getContextHandlersin interfaceIActionContextHandlersProvider
-
getWorkflowThread
public Thread getWorkflowThread()
Gets workflowThread- Returns:
- value of workflowThread
-
navigateToExecutionInfo
@GuiContextAction(id="workflow-graph-navigate-to-execution-info", parentId="HopGuiWorkflowContext", type=Info, name="i18n::HopGuiWorkflowGraph.ContextualAction.NavigateToExecutionInfo.Text", tooltip="i18n::HopGuiWorkflowGraph.ContextualAction.NavigateToExecutionInfo.Tooltip", image="ui/images/location.svg", category="i18n::HopGuiWorkflowGraph.ContextualAction.Category.Basic.Text", categoryOrder="1") public void navigateToExecutionInfo(HopGuiWorkflowContext context)
-
navigateToExecutionInfo
@GuiToolbarElement(root="HopGuiWorkflowGraph-Toolbar", id="HopGuiWorkflowGraph-ToolBar-10475-ToExecutionInfo", toolTip="i18n:org.apache.hop.ui.hopgui:HopGui.Toolbar.ToExecutionInfo", type=BUTTON, image="ui/images/location.svg") public void navigateToExecutionInfo()
-
reload
public void reload()
Description copied from interface:IHopFileTypeHandlerReload the file- Specified by:
reloadin interfaceIHopFileTypeHandler
-
viewActionExecutionInfo
@GuiContextAction(id="workflow-graph-action-11000-view-execution-info", parentId="HopGuiWorkflowActionContext", type=Info, name="i18n::HopGuiWorkflowGraph.ActionAction.ViewExecutionInfo.Name", tooltip="i18n::HopGuiWorkflowGraph.ActionAction.ViewExecutionInfo.Tooltip", image="ui/images/location.svg", category="Basic", categoryOrder="1") public void viewActionExecutionInfo(HopGuiWorkflowActionContext context)
-
filterWorkflowAction
@GuiContextActionFilter(parentId="HopGuiWorkflowActionContext") public boolean filterWorkflowAction(String contextActionId, HopGuiWorkflowActionContext context)
-
-