Package org.pentaho.di.ui.spoon.job
Class JobGraph
- java.lang.Object
-
- org.eclipse.swt.widgets.Widget
-
- org.eclipse.swt.widgets.Control
-
- org.eclipse.swt.widgets.Scrollable
-
- org.eclipse.swt.widgets.Composite
-
- org.pentaho.di.ui.spoon.AbstractGraph
-
- org.pentaho.di.ui.spoon.job.JobGraph
-
- All Implemented Interfaces:
EventListener,org.eclipse.swt.events.KeyListener,org.eclipse.swt.events.MouseListener,org.eclipse.swt.events.MouseMoveListener,org.eclipse.swt.events.MouseTrackListener,org.eclipse.swt.events.MouseWheelListener,org.eclipse.swt.graphics.Drawable,org.eclipse.swt.internal.SWTEventListener,org.pentaho.di.core.gui.Redrawable,org.pentaho.di.core.logging.LogParentProvidedInterface,TabItemInterface,org.pentaho.ui.xul.impl.XulEventHandler
public class JobGraph extends AbstractGraph implements org.pentaho.ui.xul.impl.XulEventHandler, org.pentaho.di.core.gui.Redrawable, TabItemInterface, org.pentaho.di.core.logging.LogParentProvidedInterface, org.eclipse.swt.events.MouseListener, org.eclipse.swt.events.MouseMoveListener, org.eclipse.swt.events.MouseTrackListener, org.eclipse.swt.events.MouseWheelListener, org.eclipse.swt.events.KeyListener
Handles the display of Jobs in Spoon, in a graphical form.- Author:
- Matt Created on 17-may-2003
-
-
Field Summary
Fields Modifier and Type Field Description protected org.pentaho.di.job.JobHopMetacurrentHopprotected intcurrentMouseXprotected intcurrentMouseYprotected org.pentaho.di.core.gui.Pointdrop_candidateorg.eclipse.swt.widgets.CompositeextraViewCompositeorg.eclipse.swt.custom.CTabFolderextraViewTabFolderprotected org.pentaho.di.job.JobHopMetahop_candidateprotected inticonsizeorg.pentaho.di.job.Jobjobprotected org.pentaho.di.job.entry.JobEntryCopyjobEntryJobGridDelegatejobGridDelegateJobHistoryDelegatejobHistoryDelegateJobLogDelegatejobLogDelegateprotected org.pentaho.di.job.JobMetajobMetaJobMetricsDelegatejobMetricsDelegateprotected org.pentaho.di.job.JobHopMetalast_hop_splitprotected intlastButtonprotected org.pentaho.di.core.gui.Pointlastclickprotected org.pentaho.di.core.gui.PointlastMoveprotected intlinewidthprotected org.pentaho.di.core.logging.LogChannelInterfacelogprotected Map<String,org.pentaho.ui.xul.containers.XulMenupopup>menuMapprotected org.pentaho.di.core.NotePadMetaniprotected org.pentaho.di.core.gui.Pointprevious_note_locationprotected org.pentaho.di.core.gui.Point[]previousLocationsprotected PropsUIpropsprotected List<org.pentaho.di.job.entry.JobEntryCopy>selectedEntriesprotected org.pentaho.di.job.entry.JobEntryCopyselectedEntryprotected org.pentaho.di.core.NotePadMetaselectedNoteprotected org.pentaho.di.core.gui.RectangleselectionRegionprotected intshadowsizeprotected org.eclipse.swt.widgets.Shellshellprotected static intsizeprotected booleansplit_hopprotected Spoonspoonstatic StringSTART_TEXTstatic StringSTOP_TEXTprotected static doubletheta-
Fields inherited from class org.pentaho.di.ui.spoon.AbstractGraph
canvas, hori, iconoffset, magnification, noteoffset, offset, vert, xulDomContainer, zoomLabel
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAllTabs()voidaddExtraView()Add an extra view to the main composite SashFormvoidaddJobEntryToChain(String typeDesc, boolean shift)voidaddRefreshListener(RefreshListener refreshListener)voidaddUndoPosition(Object[] obj, int[] pos, org.pentaho.di.core.gui.Point[] prev, org.pentaho.di.core.gui.Point[] curr)voidaddUndoPosition(Object[] obj, int[] pos, org.pentaho.di.core.gui.Point[] prev, org.pentaho.di.core.gui.Point[] curr, boolean nextAlso)voidallignbottom()voidallignleft()voidallignright()voidalligntop()booleanapplyChanges()protected voidasyncRedraw()voidbrowseVersionHistory()booleancanBeClosed()Closes the content behind the tab, de-allocates resources.booleancanHandleSave()voidcheckEmptyExtraView()If the extra tab view at the bottom is empty, we close it.booleancheckIfHopAlreadyExists(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.job.JobHopMeta newHop)voidclearSelection()voidclearSettings()voidcopyEntry()static voidcopyInternalJobVariables(org.pentaho.di.job.JobMeta sourceJobMeta, org.pentaho.di.trans.TransMeta targetTransMeta)protected org.pentaho.di.core.gui.SnapAllignDistributecreateSnapAllignDistribute()voiddeleteEntry()voiddeleteHop()voiddeleteNote()voiddelSelected()voiddelSelected(org.pentaho.di.job.entry.JobEntryCopy clickedEntry)protected voiddetach(org.pentaho.di.job.entry.JobEntryCopy je)voiddetachEntry()voiddisableHop()voiddisableHopsBetweenSelectedEntries()voiddisableHopsDownstream()voiddistributehorizontal()voiddistributevertical()protected voiddrawArrow(org.eclipse.swt.graphics.GC gc, int[] line)protected voiddrawRect(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle rect)voidduplicateEntry()protected voideditEntry(org.pentaho.di.job.entry.JobEntryCopy je)voideditEntryClick()voideditEntryDescription()voideditEntryParallel()Go from serial to parallel to serial executionvoideditJobProperties()voideditNote()protected voideditNote(org.pentaho.di.core.NotePadMeta ni)static booleaneditProperties(org.pentaho.di.job.JobMeta jobMeta, Spoon spoon, org.pentaho.di.repository.Repository rep, boolean allowDirectoryChange)voidenableDisableHopsDownstream(boolean enabled)voidenableHopsBetweenSelectedEntries()voidenableHopsBetweenSelectedEntries(boolean enabled)This method enables or disables all the hops between the selected Entries.voidenableHopsDownstream()voidexploreDatabase()voidflipHop()protected org.pentaho.di.job.JobHopMetagetCurrentHop()org.pentaho.di.core.NotePadMetagetCurrentNote()org.pentaho.di.job.JobgetJob()org.pentaho.di.job.entry.JobEntryCopygetJobEntry()org.eclipse.swt.graphics.ImagegetJobImage(org.eclipse.swt.graphics.Device device, int x, int y, float magnificationFactor)org.pentaho.di.job.JobMetagetJobMeta()org.pentaho.di.core.gui.PointgetLastMove()protected int[]getLine(org.pentaho.di.job.entry.JobEntryCopy fs, org.pentaho.di.job.entry.JobEntryCopy ts)org.pentaho.di.core.logging.HasLogChannelInterfacegetLogChannelProvider()org.pentaho.di.job.JobMetagetManagedObject()org.pentaho.di.core.EngineMetaInterfacegetMeta()StringgetName()protected org.pentaho.di.core.gui.PointgetOffset()org.pentaho.di.core.gui.PointgetRealPosition(org.eclipse.swt.widgets.Composite canvas, int x, int y)List<RefreshListener>getRefreshListeners()SpoongetSpoon()voidgetSQL()org.pentaho.ui.xul.containers.XulToolbargetToolbar()org.pentaho.di.core.gui.AreaOwnergetVisibleAreaOwner(int x, int y)org.pentaho.ui.xul.XulDomContainergetXulDomContainer()voidhandleJobMetaChanges(org.pentaho.di.job.JobMeta jobMeta)booleanhasContentChanged()voidhideEntry()protected voidhideToolTips()booleanisExecutionResultsPaneVisible()protected voidjobFinished()This gets called at the very end, when everything is done.voidkeyPressed(org.eclipse.swt.events.KeyEvent e)voidkeyReleased(org.eclipse.swt.events.KeyEvent e)voidlaunchStuff()voidlaunchStuff(org.pentaho.di.job.entry.JobEntryCopy jobEntryCopy)protected voidloadReferencedObject(org.pentaho.di.job.entry.JobEntryCopy jobEntryCopy, 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)voidmouseScrolled(org.eclipse.swt.events.MouseEvent e)voidmouseUp(org.eclipse.swt.events.MouseEvent e)protected voidnewHop()voidnewHopClick()voidnewNote()voidnewProps()voidopenFile()voidopenJob()voidopenJob(org.pentaho.di.job.entries.job.JobEntryJob entry, org.pentaho.di.job.entry.JobEntryCopy jobEntryCopy)voidopenTransformation()protected voidopenTransformation(org.pentaho.di.job.entries.trans.JobEntryTrans entry, org.pentaho.di.job.entry.JobEntryCopy jobEntryCopy)voidpaintControl(org.eclipse.swt.events.PaintEvent e)voidpasteNote()protected booleanpointOnLine(int x, int y, int[] line)protected booleanpointOnThinLine(int x, int y, int[] line)voidprintFile()voidraiseNote()voidrenameJobEntry(org.pentaho.di.job.entry.JobEntryCopy jobEntry, String newName)Method gets called, when the user wants to change a job entries name and he indeed entered a different name then the old one.voidreplayJob()voidrunJob()voidrunOptionsJob()voidsaveFile()voidsaveFileAs()voidsaveXMLFileToVfs()voidselectAll()voidselectInRect(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.core.gui.Rectangle rect)voidsetControlStates()protected voidsetCurrentHop(org.pentaho.di.job.JobHopMeta hop)voidsetCurrentNote(org.pentaho.di.core.NotePadMeta ni)booleansetFocus()voidsetHopEvaluationFalse()voidsetHopEvaluationTrue()voidsetHopUnconditional()voidsetJob(org.pentaho.di.job.Job job)voidsetJobEntry(org.pentaho.di.job.entry.JobEntryCopy jobEntry)voidsetJobMeta(org.pentaho.di.job.JobMeta jobMeta)voidsetLastMove(org.pentaho.di.core.gui.Point lastMove)protected voidsetMenu(int x, int y)voidsetName(String name)voidsetRefreshListeners(List<RefreshListener> refreshListeners)voidsetSpoon(Spoon spoon)protected voidsetToolTip(int x, int y, int screenX, int screenY)voidsetXulDomContainer(org.pentaho.ui.xul.XulDomContainer xulDomContainer)intshowChangedWarning()static intshowChangedWarning(org.eclipse.swt.widgets.Shell shell, String name)voidshowExecutionResults()static voidshowOnlyStartOnceMessage(org.eclipse.swt.widgets.Shell shell)voidshowSaveFileMessage()voidsnaptogrid()protected voidsnaptogrid(int size)voidstartJob(org.pentaho.di.job.JobExecutionConfiguration executionConfiguration)voidstopJob()StringtoString()-
Methods inherited from class org.pentaho.di.ui.spoon.AbstractGraph
dispose, doRightClickSelection, forceFocus, getArea, getChangedWarning, getOffset, getThumb, magnifyPoint, real2screen, redraw, screen2real, setZoomLabel, showChangedWarning, sign, zoom100Percent, zoomIn, zoomOut
-
Methods inherited from class org.eclipse.swt.widgets.Composite
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, 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, 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, redraw, 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.pentaho.di.ui.spoon.TabItemInterface
getChangedWarning
-
-
-
-
Field Detail
-
START_TEXT
public static final String START_TEXT
-
STOP_TEXT
public static final String STOP_TEXT
-
shell
protected org.eclipse.swt.widgets.Shell shell
-
log
protected org.pentaho.di.core.logging.LogChannelInterface log
-
jobMeta
protected org.pentaho.di.job.JobMeta jobMeta
-
job
public org.pentaho.di.job.Job job
-
props
protected PropsUI props
-
iconsize
protected int iconsize
-
linewidth
protected int linewidth
-
lastclick
protected org.pentaho.di.core.gui.Point lastclick
-
selectedEntries
protected List<org.pentaho.di.job.entry.JobEntryCopy> selectedEntries
-
selectedEntry
protected org.pentaho.di.job.entry.JobEntryCopy selectedEntry
-
previousLocations
protected org.pentaho.di.core.gui.Point[] previousLocations
-
selectedNote
protected org.pentaho.di.core.NotePadMeta selectedNote
-
previous_note_location
protected org.pentaho.di.core.gui.Point previous_note_location
-
lastMove
protected org.pentaho.di.core.gui.Point lastMove
-
hop_candidate
protected org.pentaho.di.job.JobHopMeta hop_candidate
-
drop_candidate
protected org.pentaho.di.core.gui.Point drop_candidate
-
spoon
protected Spoon spoon
-
split_hop
protected boolean split_hop
-
lastButton
protected int lastButton
-
last_hop_split
protected org.pentaho.di.job.JobHopMeta last_hop_split
-
selectionRegion
protected org.pentaho.di.core.gui.Rectangle selectionRegion
-
theta
protected static final double theta
-
size
protected static final int size
- See Also:
- Constant Field Values
-
shadowsize
protected int shadowsize
-
currentMouseX
protected int currentMouseX
-
currentMouseY
protected int currentMouseY
-
jobEntry
protected org.pentaho.di.job.entry.JobEntryCopy jobEntry
-
ni
protected org.pentaho.di.core.NotePadMeta ni
-
currentHop
protected org.pentaho.di.job.JobHopMeta currentHop
-
extraViewComposite
public org.eclipse.swt.widgets.Composite extraViewComposite
-
extraViewTabFolder
public org.eclipse.swt.custom.CTabFolder extraViewTabFolder
-
jobLogDelegate
public JobLogDelegate jobLogDelegate
-
jobHistoryDelegate
public JobHistoryDelegate jobHistoryDelegate
-
jobGridDelegate
public JobGridDelegate jobGridDelegate
-
jobMetricsDelegate
public JobMetricsDelegate jobMetricsDelegate
-
-
Constructor Detail
-
JobGraph
public JobGraph(org.eclipse.swt.widgets.Composite par, Spoon spoon, org.pentaho.di.job.JobMeta jobMeta)
-
-
Method Detail
-
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
-
mouseScrolled
public void mouseScrolled(org.eclipse.swt.events.MouseEvent e)
- Specified by:
mouseScrolledin interfaceorg.eclipse.swt.events.MouseWheelListener
-
checkIfHopAlreadyExists
public boolean checkIfHopAlreadyExists(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.job.JobHopMeta newHop)
-
getVisibleAreaOwner
public org.pentaho.di.core.gui.AreaOwner getVisibleAreaOwner(int x, int y)
-
asyncRedraw
protected void asyncRedraw()
-
keyPressed
public void keyPressed(org.eclipse.swt.events.KeyEvent e)
- Specified by:
keyPressedin interfaceorg.eclipse.swt.events.KeyListener
-
keyReleased
public void keyReleased(org.eclipse.swt.events.KeyEvent e)
- Specified by:
keyReleasedin interfaceorg.eclipse.swt.events.KeyListener
-
selectInRect
public void selectInRect(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.core.gui.Rectangle rect)
-
setFocus
public boolean setFocus()
- Specified by:
setFocusin interfaceTabItemInterface- Overrides:
setFocusin classAbstractGraph
-
renameJobEntry
public void renameJobEntry(org.pentaho.di.job.entry.JobEntryCopy jobEntry, String newName)Method gets called, when the user wants to change a job entries name and he indeed entered a different name then the old one. Make sure that no other job entry matches this name and rename in case of uniqueness.- Parameters:
jobEntry-newName-
-
showOnlyStartOnceMessage
public static void showOnlyStartOnceMessage(org.eclipse.swt.widgets.Shell shell)
-
delSelected
public void delSelected()
-
delSelected
public void delSelected(org.pentaho.di.job.entry.JobEntryCopy clickedEntry)
-
clearSettings
public void clearSettings()
-
getRealPosition
public org.pentaho.di.core.gui.Point getRealPosition(org.eclipse.swt.widgets.Composite canvas, int x, int y)
-
getLine
protected int[] getLine(org.pentaho.di.job.entry.JobEntryCopy fs, org.pentaho.di.job.entry.JobEntryCopy ts)
-
setJobEntry
public void setJobEntry(org.pentaho.di.job.entry.JobEntryCopy jobEntry)
-
getJobEntry
public org.pentaho.di.job.entry.JobEntryCopy getJobEntry()
-
openTransformation
public void openTransformation()
-
openJob
public void openJob()
-
newHopClick
public void newHopClick()
-
editEntryClick
public void editEntryClick()
-
editEntryDescription
public void editEntryDescription()
-
editEntryParallel
public void editEntryParallel()
Go from serial to parallel to serial execution
-
duplicateEntry
public void duplicateEntry() throws org.pentaho.di.core.exception.KettleException- Throws:
org.pentaho.di.core.exception.KettleException
-
copyEntry
public void copyEntry()
-
detachEntry
public void detachEntry()
-
hideEntry
public void hideEntry()
-
deleteEntry
public void deleteEntry()
-
setMenu
protected void setMenu(int x, int y)
-
selectAll
public void selectAll()
-
clearSelection
public void clearSelection()
-
editJobProperties
public void editJobProperties()
-
pasteNote
public void pasteNote()
-
newNote
public void newNote()
-
setCurrentNote
public void setCurrentNote(org.pentaho.di.core.NotePadMeta ni)
-
getCurrentNote
public org.pentaho.di.core.NotePadMeta getCurrentNote()
-
editNote
public void editNote()
-
deleteNote
public void deleteNote()
-
raiseNote
public void raiseNote()
-
lowerNote
public void lowerNote()
-
flipHop
public void flipHop()
-
disableHop
public void disableHop()
-
deleteHop
public void deleteHop()
-
setHopUnconditional
public void setHopUnconditional()
-
setHopEvaluationTrue
public void setHopEvaluationTrue()
-
setHopEvaluationFalse
public void setHopEvaluationFalse()
-
setCurrentHop
protected void setCurrentHop(org.pentaho.di.job.JobHopMeta hop)
-
getCurrentHop
protected org.pentaho.di.job.JobHopMeta getCurrentHop()
-
enableHopsBetweenSelectedEntries
public void enableHopsBetweenSelectedEntries()
-
disableHopsBetweenSelectedEntries
public void disableHopsBetweenSelectedEntries()
-
enableHopsBetweenSelectedEntries
public void enableHopsBetweenSelectedEntries(boolean enabled)
This method enables or disables all the hops between the selected Entries.
-
enableHopsDownstream
public void enableHopsDownstream()
-
disableHopsDownstream
public void disableHopsDownstream()
-
enableDisableHopsDownstream
public void enableDisableHopsDownstream(boolean enabled)
-
setToolTip
protected void setToolTip(int x, int y, int screenX, int screenY)
-
launchStuff
public void launchStuff(org.pentaho.di.job.entry.JobEntryCopy jobEntryCopy)
-
launchStuff
public void launchStuff()
-
loadReferencedObject
protected void loadReferencedObject(org.pentaho.di.job.entry.JobEntryCopy jobEntryCopy, int index)
-
openTransformation
protected void openTransformation(org.pentaho.di.job.entries.trans.JobEntryTrans entry, org.pentaho.di.job.entry.JobEntryCopy jobEntryCopy)
-
openJob
public void openJob(org.pentaho.di.job.entries.job.JobEntryJob entry, org.pentaho.di.job.entry.JobEntryCopy jobEntryCopy)
-
setJob
public void setJob(org.pentaho.di.job.Job job)
-
copyInternalJobVariables
public static void copyInternalJobVariables(org.pentaho.di.job.JobMeta sourceJobMeta, org.pentaho.di.trans.TransMeta targetTransMeta)
-
paintControl
public void paintControl(org.eclipse.swt.events.PaintEvent e)
-
getJobImage
public org.eclipse.swt.graphics.Image getJobImage(org.eclipse.swt.graphics.Device device, int x, int y, float magnificationFactor)
-
getOffset
protected org.pentaho.di.core.gui.Point getOffset()
- Specified by:
getOffsetin classAbstractGraph
-
newHop
protected void newHop()
-
editEntry
protected void editEntry(org.pentaho.di.job.entry.JobEntryCopy je)
-
editNote
protected void editNote(org.pentaho.di.core.NotePadMeta ni)
-
drawArrow
protected void drawArrow(org.eclipse.swt.graphics.GC gc, int[] line)
-
pointOnLine
protected boolean pointOnLine(int x, int y, int[] line)
-
pointOnThinLine
protected boolean pointOnThinLine(int x, int y, int[] line)
-
createSnapAllignDistribute
protected org.pentaho.di.core.gui.SnapAllignDistribute createSnapAllignDistribute()
-
snaptogrid
public void snaptogrid()
-
snaptogrid
protected void snaptogrid(int size)
-
allignleft
public void allignleft()
-
allignright
public void allignright()
-
alligntop
public void alligntop()
-
allignbottom
public void allignbottom()
-
distributehorizontal
public void distributehorizontal()
-
distributevertical
public void distributevertical()
-
drawRect
protected void drawRect(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle rect)
-
detach
protected void detach(org.pentaho.di.job.entry.JobEntryCopy je)
-
newProps
public void newProps()
-
toString
public String toString()
- Overrides:
toStringin classorg.eclipse.swt.widgets.Widget
-
getMeta
public org.pentaho.di.core.EngineMetaInterface getMeta()
- Specified by:
getMetain interfaceTabItemInterface
-
setJobMeta
public void setJobMeta(org.pentaho.di.job.JobMeta jobMeta)
- Parameters:
jobMeta- the jobMeta to set
-
applyChanges
public boolean applyChanges() throws org.pentaho.di.core.exception.KettleException- Specified by:
applyChangesin interfaceTabItemInterface- Throws:
org.pentaho.di.core.exception.KettleException
-
canBeClosed
public boolean canBeClosed()
Description copied from interface:TabItemInterfaceCloses the content behind the tab, de-allocates resources.- Specified by:
canBeClosedin interfaceTabItemInterface- Returns:
- true if the tab was closed, false if it was prevented by the user. (are you sure dialog)
-
getManagedObject
public org.pentaho.di.job.JobMeta getManagedObject()
- Specified by:
getManagedObjectin interfaceTabItemInterface
-
hasContentChanged
public boolean hasContentChanged()
- Specified by:
hasContentChangedin interfaceTabItemInterface
-
showChangedWarning
public static int showChangedWarning(org.eclipse.swt.widgets.Shell shell, String name)
-
editProperties
public static boolean editProperties(org.pentaho.di.job.JobMeta jobMeta, Spoon spoon, org.pentaho.di.repository.Repository rep, boolean allowDirectoryChange)
-
getLastMove
public org.pentaho.di.core.gui.Point getLastMove()
- Returns:
- the lastMove
-
setLastMove
public void setLastMove(org.pentaho.di.core.gui.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
public void showExecutionResults()
-
addAllTabs
public void addAllTabs()
-
openFile
public void openFile()
-
saveFile
public void saveFile() throws org.pentaho.di.core.exception.KettleException- Throws:
org.pentaho.di.core.exception.KettleException
-
saveFileAs
public void saveFileAs() throws org.pentaho.di.core.exception.KettleException- Throws:
org.pentaho.di.core.exception.KettleException
-
saveXMLFileToVfs
public void saveXMLFileToVfs()
-
printFile
public void printFile()
-
runJob
public void runJob()
-
runOptionsJob
public void runOptionsJob()
-
getSQL
public void getSQL()
-
getToolbar
public org.pentaho.ui.xul.containers.XulToolbar getToolbar()
-
exploreDatabase
public void exploreDatabase()
-
browseVersionHistory
public void browseVersionHistory()
-
startJob
public void startJob(org.pentaho.di.job.JobExecutionConfiguration executionConfiguration) throws org.pentaho.di.core.exception.KettleException- Throws:
org.pentaho.di.core.exception.KettleException
-
showSaveFileMessage
public void showSaveFileMessage()
-
jobFinished
protected void jobFinished()
This gets called at the very end, when everything is done.
-
stopJob
public void stopJob()
-
setControlStates
public void setControlStates()
- Specified by:
setControlStatesin interfaceTabItemInterface
-
getRefreshListeners
public List<RefreshListener> getRefreshListeners()
- Returns:
- the refresh listeners
-
setRefreshListeners
public void setRefreshListeners(List<RefreshListener> refreshListeners)
- Parameters:
refreshListeners- the refresh listeners to set
-
addRefreshListener
public void addRefreshListener(RefreshListener refreshListener)
- Parameters:
refreshListener- the job refresh listener to add
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.pentaho.ui.xul.impl.XulEventHandler
-
getXulDomContainer
public org.pentaho.ui.xul.XulDomContainer getXulDomContainer()
- Specified by:
getXulDomContainerin interfaceorg.pentaho.ui.xul.impl.XulEventHandler
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceorg.pentaho.ui.xul.impl.XulEventHandler
-
setXulDomContainer
public void setXulDomContainer(org.pentaho.ui.xul.XulDomContainer xulDomContainer)
- Specified by:
setXulDomContainerin interfaceorg.pentaho.ui.xul.impl.XulEventHandler
-
canHandleSave
public boolean canHandleSave()
- Specified by:
canHandleSavein interfaceTabItemInterface
-
getLogChannelProvider
public org.pentaho.di.core.logging.HasLogChannelInterface getLogChannelProvider()
- Specified by:
getLogChannelProviderin interfaceorg.pentaho.di.core.logging.LogParentProvidedInterface
-
addUndoPosition
public void addUndoPosition(Object[] obj, int[] pos, org.pentaho.di.core.gui.Point[] prev, org.pentaho.di.core.gui.Point[] curr)
-
addUndoPosition
public void addUndoPosition(Object[] obj, int[] pos, org.pentaho.di.core.gui.Point[] prev, org.pentaho.di.core.gui.Point[] curr, boolean nextAlso)
-
showChangedWarning
public int showChangedWarning() throws org.pentaho.di.core.exception.KettleException- Specified by:
showChangedWarningin interfaceTabItemInterface- Overrides:
showChangedWarningin classAbstractGraph- Throws:
org.pentaho.di.core.exception.KettleException
-
replayJob
public void replayJob()
-
handleJobMetaChanges
public void handleJobMetaChanges(org.pentaho.di.job.JobMeta jobMeta) throws org.pentaho.di.core.exception.KettleException- Throws:
org.pentaho.di.core.exception.KettleException
-
addJobEntryToChain
public void addJobEntryToChain(String typeDesc, boolean shift)
-
getSpoon
public Spoon getSpoon()
-
setSpoon
public void setSpoon(Spoon spoon)
-
getJobMeta
public org.pentaho.di.job.JobMeta getJobMeta()
-
getJob
public org.pentaho.di.job.Job getJob()
-
-