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.JobHopMeta
currentHop
protected int
currentMouseX
protected int
currentMouseY
protected org.pentaho.di.core.gui.Point
drop_candidate
org.eclipse.swt.widgets.Composite
extraViewComposite
org.eclipse.swt.custom.CTabFolder
extraViewTabFolder
protected org.pentaho.di.job.JobHopMeta
hop_candidate
protected int
iconsize
org.pentaho.di.job.Job
job
protected org.pentaho.di.job.entry.JobEntryCopy
jobEntry
JobGridDelegate
jobGridDelegate
JobHistoryDelegate
jobHistoryDelegate
JobLogDelegate
jobLogDelegate
protected org.pentaho.di.job.JobMeta
jobMeta
JobMetricsDelegate
jobMetricsDelegate
protected org.pentaho.di.job.JobHopMeta
last_hop_split
protected int
lastButton
protected org.pentaho.di.core.gui.Point
lastclick
protected org.pentaho.di.core.gui.Point
lastMove
protected int
linewidth
protected org.pentaho.di.core.logging.LogChannelInterface
log
protected Map<String,org.pentaho.ui.xul.containers.XulMenupopup>
menuMap
protected org.pentaho.di.core.NotePadMeta
ni
protected org.pentaho.di.core.gui.Point
previous_note_location
protected org.pentaho.di.core.gui.Point[]
previousLocations
protected PropsUI
props
protected List<org.pentaho.di.job.entry.JobEntryCopy>
selectedEntries
protected org.pentaho.di.job.entry.JobEntryCopy
selectedEntry
protected org.pentaho.di.core.NotePadMeta
selectedNote
protected org.pentaho.di.core.gui.Rectangle
selectionRegion
protected int
shadowsize
protected org.eclipse.swt.widgets.Shell
shell
protected static int
size
protected boolean
split_hop
protected Spoon
spoon
static String
START_TEXT
static String
STOP_TEXT
protected static double
theta
-
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 void
addAllTabs()
void
addExtraView()
Add an extra view to the main composite SashFormvoid
addJobEntryToChain(String typeDesc, boolean shift)
void
addRefreshListener(RefreshListener refreshListener)
void
addUndoPosition(Object[] obj, int[] pos, org.pentaho.di.core.gui.Point[] prev, org.pentaho.di.core.gui.Point[] curr)
void
addUndoPosition(Object[] obj, int[] pos, org.pentaho.di.core.gui.Point[] prev, org.pentaho.di.core.gui.Point[] curr, boolean nextAlso)
void
allignbottom()
void
allignleft()
void
allignright()
void
alligntop()
boolean
applyChanges()
protected void
asyncRedraw()
void
browseVersionHistory()
boolean
canBeClosed()
Closes the content behind the tab, de-allocates resources.boolean
canHandleSave()
void
checkEmptyExtraView()
If the extra tab view at the bottom is empty, we close it.boolean
checkIfHopAlreadyExists(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.job.JobHopMeta newHop)
void
clearSelection()
void
clearSettings()
void
copyEntry()
static void
copyInternalJobVariables(org.pentaho.di.job.JobMeta sourceJobMeta, org.pentaho.di.trans.TransMeta targetTransMeta)
protected org.pentaho.di.core.gui.SnapAllignDistribute
createSnapAllignDistribute()
void
deleteEntry()
void
deleteHop()
void
deleteNote()
void
delSelected()
void
delSelected(org.pentaho.di.job.entry.JobEntryCopy clickedEntry)
protected void
detach(org.pentaho.di.job.entry.JobEntryCopy je)
void
detachEntry()
void
disableHop()
void
disableHopsBetweenSelectedEntries()
void
disableHopsDownstream()
void
distributehorizontal()
void
distributevertical()
protected void
drawArrow(org.eclipse.swt.graphics.GC gc, int[] line)
protected void
drawRect(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle rect)
void
duplicateEntry()
protected void
editEntry(org.pentaho.di.job.entry.JobEntryCopy je)
void
editEntryClick()
void
editEntryDescription()
void
editEntryParallel()
Go from serial to parallel to serial executionvoid
editJobProperties()
void
editNote()
protected void
editNote(org.pentaho.di.core.NotePadMeta ni)
static boolean
editProperties(org.pentaho.di.job.JobMeta jobMeta, Spoon spoon, org.pentaho.di.repository.Repository rep, boolean allowDirectoryChange)
void
enableDisableHopsDownstream(boolean enabled)
void
enableHopsBetweenSelectedEntries()
void
enableHopsBetweenSelectedEntries(boolean enabled)
This method enables or disables all the hops between the selected Entries.void
enableHopsDownstream()
void
exploreDatabase()
void
flipHop()
protected org.pentaho.di.job.JobHopMeta
getCurrentHop()
org.pentaho.di.core.NotePadMeta
getCurrentNote()
org.pentaho.di.job.Job
getJob()
org.pentaho.di.job.entry.JobEntryCopy
getJobEntry()
org.eclipse.swt.graphics.Image
getJobImage(org.eclipse.swt.graphics.Device device, int x, int y, float magnificationFactor)
org.pentaho.di.job.JobMeta
getJobMeta()
org.pentaho.di.core.gui.Point
getLastMove()
protected int[]
getLine(org.pentaho.di.job.entry.JobEntryCopy fs, org.pentaho.di.job.entry.JobEntryCopy ts)
org.pentaho.di.core.logging.HasLogChannelInterface
getLogChannelProvider()
org.pentaho.di.job.JobMeta
getManagedObject()
org.pentaho.di.core.EngineMetaInterface
getMeta()
String
getName()
protected org.pentaho.di.core.gui.Point
getOffset()
org.pentaho.di.core.gui.Point
getRealPosition(org.eclipse.swt.widgets.Composite canvas, int x, int y)
List<RefreshListener>
getRefreshListeners()
Spoon
getSpoon()
void
getSQL()
org.pentaho.ui.xul.containers.XulToolbar
getToolbar()
org.pentaho.di.core.gui.AreaOwner
getVisibleAreaOwner(int x, int y)
org.pentaho.ui.xul.XulDomContainer
getXulDomContainer()
void
handleJobMetaChanges(org.pentaho.di.job.JobMeta jobMeta)
boolean
hasContentChanged()
void
hideEntry()
protected void
hideToolTips()
boolean
isExecutionResultsPaneVisible()
protected void
jobFinished()
This gets called at the very end, when everything is done.void
keyPressed(org.eclipse.swt.events.KeyEvent e)
void
keyReleased(org.eclipse.swt.events.KeyEvent e)
void
launchStuff()
void
launchStuff(org.pentaho.di.job.entry.JobEntryCopy jobEntryCopy)
protected void
loadReferencedObject(org.pentaho.di.job.entry.JobEntryCopy jobEntryCopy, int index)
void
lowerNote()
void
mouseDoubleClick(org.eclipse.swt.events.MouseEvent e)
void
mouseDown(org.eclipse.swt.events.MouseEvent e)
void
mouseEnter(org.eclipse.swt.events.MouseEvent event)
void
mouseExit(org.eclipse.swt.events.MouseEvent event)
void
mouseHover(org.eclipse.swt.events.MouseEvent e)
void
mouseMove(org.eclipse.swt.events.MouseEvent e)
void
mouseScrolled(org.eclipse.swt.events.MouseEvent e)
void
mouseUp(org.eclipse.swt.events.MouseEvent e)
protected void
newHop()
void
newHopClick()
void
newNote()
void
newProps()
void
openFile()
void
openJob()
void
openJob(org.pentaho.di.job.entries.job.JobEntryJob entry, org.pentaho.di.job.entry.JobEntryCopy jobEntryCopy)
void
openTransformation()
protected void
openTransformation(org.pentaho.di.job.entries.trans.JobEntryTrans entry, org.pentaho.di.job.entry.JobEntryCopy jobEntryCopy)
void
paintControl(org.eclipse.swt.events.PaintEvent e)
void
pasteNote()
protected boolean
pointOnLine(int x, int y, int[] line)
protected boolean
pointOnThinLine(int x, int y, int[] line)
void
printFile()
void
raiseNote()
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.void
replayJob()
void
runJob()
void
runOptionsJob()
void
saveFile()
void
saveFileAs()
void
saveXMLFileToVfs()
void
selectAll()
void
selectInRect(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.core.gui.Rectangle rect)
void
setControlStates()
protected void
setCurrentHop(org.pentaho.di.job.JobHopMeta hop)
void
setCurrentNote(org.pentaho.di.core.NotePadMeta ni)
boolean
setFocus()
void
setHopEvaluationFalse()
void
setHopEvaluationTrue()
void
setHopUnconditional()
void
setJob(org.pentaho.di.job.Job job)
void
setJobEntry(org.pentaho.di.job.entry.JobEntryCopy jobEntry)
void
setJobMeta(org.pentaho.di.job.JobMeta jobMeta)
void
setLastMove(org.pentaho.di.core.gui.Point lastMove)
protected void
setMenu(int x, int y)
void
setName(String name)
void
setRefreshListeners(List<RefreshListener> refreshListeners)
void
setSpoon(Spoon spoon)
protected void
setToolTip(int x, int y, int screenX, int screenY)
void
setXulDomContainer(org.pentaho.ui.xul.XulDomContainer xulDomContainer)
int
showChangedWarning()
static int
showChangedWarning(org.eclipse.swt.widgets.Shell shell, String name)
void
showExecutionResults()
static void
showOnlyStartOnceMessage(org.eclipse.swt.widgets.Shell shell)
void
showSaveFileMessage()
void
snaptogrid()
protected void
snaptogrid(int size)
void
startJob(org.pentaho.di.job.JobExecutionConfiguration executionConfiguration)
void
stopJob()
String
toString()
-
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:
mouseDoubleClick
in interfaceorg.eclipse.swt.events.MouseListener
-
mouseDown
public void mouseDown(org.eclipse.swt.events.MouseEvent e)
- Specified by:
mouseDown
in interfaceorg.eclipse.swt.events.MouseListener
-
mouseUp
public void mouseUp(org.eclipse.swt.events.MouseEvent e)
- Specified by:
mouseUp
in interfaceorg.eclipse.swt.events.MouseListener
-
mouseMove
public void mouseMove(org.eclipse.swt.events.MouseEvent e)
- Specified by:
mouseMove
in interfaceorg.eclipse.swt.events.MouseMoveListener
-
mouseHover
public void mouseHover(org.eclipse.swt.events.MouseEvent e)
- Specified by:
mouseHover
in interfaceorg.eclipse.swt.events.MouseTrackListener
-
mouseEnter
public void mouseEnter(org.eclipse.swt.events.MouseEvent event)
- Specified by:
mouseEnter
in interfaceorg.eclipse.swt.events.MouseTrackListener
-
mouseExit
public void mouseExit(org.eclipse.swt.events.MouseEvent event)
- Specified by:
mouseExit
in interfaceorg.eclipse.swt.events.MouseTrackListener
-
mouseScrolled
public void mouseScrolled(org.eclipse.swt.events.MouseEvent e)
- Specified by:
mouseScrolled
in 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:
keyPressed
in interfaceorg.eclipse.swt.events.KeyListener
-
keyReleased
public void keyReleased(org.eclipse.swt.events.KeyEvent e)
- Specified by:
keyReleased
in 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:
setFocus
in interfaceTabItemInterface
- Overrides:
setFocus
in 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:
getOffset
in 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:
toString
in classorg.eclipse.swt.widgets.Widget
-
getMeta
public org.pentaho.di.core.EngineMetaInterface getMeta()
- Specified by:
getMeta
in 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:
applyChanges
in interfaceTabItemInterface
- Throws:
org.pentaho.di.core.exception.KettleException
-
canBeClosed
public boolean canBeClosed()
Description copied from interface:TabItemInterface
Closes the content behind the tab, de-allocates resources.- Specified by:
canBeClosed
in 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:
getManagedObject
in interfaceTabItemInterface
-
hasContentChanged
public boolean hasContentChanged()
- Specified by:
hasContentChanged
in 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:
setControlStates
in 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:
getName
in interfaceorg.pentaho.ui.xul.impl.XulEventHandler
-
getXulDomContainer
public org.pentaho.ui.xul.XulDomContainer getXulDomContainer()
- Specified by:
getXulDomContainer
in interfaceorg.pentaho.ui.xul.impl.XulEventHandler
-
setName
public void setName(String name)
- Specified by:
setName
in interfaceorg.pentaho.ui.xul.impl.XulEventHandler
-
setXulDomContainer
public void setXulDomContainer(org.pentaho.ui.xul.XulDomContainer xulDomContainer)
- Specified by:
setXulDomContainer
in interfaceorg.pentaho.ui.xul.impl.XulEventHandler
-
canHandleSave
public boolean canHandleSave()
- Specified by:
canHandleSave
in interfaceTabItemInterface
-
getLogChannelProvider
public org.pentaho.di.core.logging.HasLogChannelInterface getLogChannelProvider()
- Specified by:
getLogChannelProvider
in 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:
showChangedWarning
in interfaceTabItemInterface
- Overrides:
showChangedWarning
in 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()
-
-