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
Modifier and Type | Field and Description |
---|---|
org.eclipse.swt.widgets.Composite |
extraViewComposite |
org.eclipse.swt.custom.CTabFolder |
extraViewTabFolder |
org.pentaho.di.job.Job |
job |
JobGridDelegate |
jobGridDelegate |
JobHistoryDelegate |
jobHistoryDelegate |
JobLogDelegate |
jobLogDelegate |
JobMetricsDelegate |
jobMetricsDelegate |
static String |
START_TEXT |
static String |
STOP_TEXT |
Constructor and Description |
---|
JobGraph(org.eclipse.swt.widgets.Composite par,
Spoon spoon,
org.pentaho.di.job.JobMeta jobMeta) |
Modifier and Type | Method and Description |
---|---|
void |
addAllTabs() |
void |
addExtraView()
Add an extra view to the main composite SashForm
|
void |
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() |
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) |
void |
deleteEntry() |
void |
deleteHop() |
void |
deleteNote() |
void |
delSelected() |
void |
detachEntry() |
void |
disableHop() |
void |
disableHopsBetweenSelectedEntries() |
void |
disableHopsDownstream() |
void |
distributehorizontal() |
void |
distributevertical() |
void |
duplicateEntry() |
void |
editEntryClick() |
void |
editEntryDescription() |
void |
editEntryParallel()
Go from serial to parallel to serial execution
|
void |
editJobProperties() |
void |
editNote() |
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() |
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() |
org.pentaho.di.core.logging.HasLogChannelInterface |
getLogChannelProvider() |
org.pentaho.di.job.JobMeta |
getManagedObject() |
org.pentaho.di.core.EngineMetaInterface |
getMeta() |
String |
getName() |
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() |
boolean |
isExecutionResultsPaneVisible() |
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) |
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) |
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() |
void |
paintControl(org.eclipse.swt.events.PaintEvent e) |
void |
pasteNote() |
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 |
saveFile() |
void |
saveFileAs() |
void |
saveXMLFileToVfs() |
void |
selectAll() |
void |
selectInRect(org.pentaho.di.job.JobMeta jobMeta,
org.pentaho.di.core.gui.Rectangle rect) |
void |
setControlStates() |
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) |
void |
setName(String name) |
void |
setRefreshListeners(List<RefreshListener> refreshListeners) |
void |
setSpoon(Spoon spoon) |
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 |
snaptogrid() |
void |
startJob(org.pentaho.di.job.JobExecutionConfiguration executionConfiguration) |
void |
stopJob() |
String |
toString() |
dispose, forceFocus, getChangedWarning, real2screen, redraw, screen2real, showChangedWarning, sign, zoom100Percent, zoomIn, zoomOut
changed, computeSize, drawBackground, getBackgroundMode, getChildren, getClientArea, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setLayout, setLayoutDeferred, setTabList
computeTrim, getBorderWidth, getHorizontalBar, getScrollbarsMode, getVerticalBar
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, getAccessible, getBackground, getBackgroundImage, 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, 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
addDisposeListener, addListener, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, reskin, setData, setData
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChangedWarning
public static final String START_TEXT
public static final String STOP_TEXT
public org.pentaho.di.job.Job job
public org.eclipse.swt.widgets.Composite extraViewComposite
public org.eclipse.swt.custom.CTabFolder extraViewTabFolder
public JobLogDelegate jobLogDelegate
public JobHistoryDelegate jobHistoryDelegate
public JobGridDelegate jobGridDelegate
public JobMetricsDelegate jobMetricsDelegate
public JobGraph(org.eclipse.swt.widgets.Composite par, Spoon spoon, org.pentaho.di.job.JobMeta jobMeta)
public void mouseDoubleClick(org.eclipse.swt.events.MouseEvent e)
mouseDoubleClick
in interface org.eclipse.swt.events.MouseListener
public void mouseDown(org.eclipse.swt.events.MouseEvent e)
mouseDown
in interface org.eclipse.swt.events.MouseListener
public void mouseUp(org.eclipse.swt.events.MouseEvent e)
mouseUp
in interface org.eclipse.swt.events.MouseListener
public void mouseMove(org.eclipse.swt.events.MouseEvent e)
mouseMove
in interface org.eclipse.swt.events.MouseMoveListener
public void mouseHover(org.eclipse.swt.events.MouseEvent e)
mouseHover
in interface org.eclipse.swt.events.MouseTrackListener
public void mouseEnter(org.eclipse.swt.events.MouseEvent event)
mouseEnter
in interface org.eclipse.swt.events.MouseTrackListener
public void mouseExit(org.eclipse.swt.events.MouseEvent event)
mouseExit
in interface org.eclipse.swt.events.MouseTrackListener
public void mouseScrolled(org.eclipse.swt.events.MouseEvent e)
mouseScrolled
in interface org.eclipse.swt.events.MouseWheelListener
public boolean checkIfHopAlreadyExists(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.job.JobHopMeta newHop)
public org.pentaho.di.core.gui.AreaOwner getVisibleAreaOwner(int x, int y)
public void keyPressed(org.eclipse.swt.events.KeyEvent e)
keyPressed
in interface org.eclipse.swt.events.KeyListener
public void keyReleased(org.eclipse.swt.events.KeyEvent e)
keyReleased
in interface org.eclipse.swt.events.KeyListener
public void selectInRect(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.core.gui.Rectangle rect)
public boolean setFocus()
setFocus
in interface TabItemInterface
setFocus
in class org.eclipse.swt.widgets.Composite
public void renameJobEntry(org.pentaho.di.job.entry.JobEntryCopy jobEntry, String newName)
jobEntry
- newName
- public static void showOnlyStartOnceMessage(org.eclipse.swt.widgets.Shell shell)
public void delSelected()
public void clearSettings()
public org.pentaho.di.core.gui.Point getRealPosition(org.eclipse.swt.widgets.Composite canvas, int x, int y)
public void setJobEntry(org.pentaho.di.job.entry.JobEntryCopy jobEntry)
public org.pentaho.di.job.entry.JobEntryCopy getJobEntry()
public void openTransformation()
public void openJob()
public void newHopClick()
public void editEntryClick()
public void editEntryDescription()
public void editEntryParallel()
public void duplicateEntry() throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public void copyEntry()
public void detachEntry()
public void hideEntry()
public void deleteEntry()
public void selectAll()
public void clearSelection()
public void editJobProperties()
public void pasteNote()
public void newNote()
public void setCurrentNote(org.pentaho.di.core.NotePadMeta ni)
public org.pentaho.di.core.NotePadMeta getCurrentNote()
public void editNote()
public void deleteNote()
public void raiseNote()
public void lowerNote()
public void flipHop()
public void disableHop()
public void deleteHop()
public void setHopUnconditional()
public void setHopEvaluationTrue()
public void setHopEvaluationFalse()
public void enableHopsBetweenSelectedEntries()
public void disableHopsBetweenSelectedEntries()
public void enableHopsBetweenSelectedEntries(boolean enabled)
public void enableHopsDownstream()
public void disableHopsDownstream()
public void enableDisableHopsDownstream(boolean enabled)
public void launchStuff(org.pentaho.di.job.entry.JobEntryCopy jobEntryCopy)
public void launchStuff()
public void openJob(org.pentaho.di.job.entries.job.JobEntryJob entry, org.pentaho.di.job.entry.JobEntryCopy jobEntryCopy)
public void setJob(org.pentaho.di.job.Job job)
public static void copyInternalJobVariables(org.pentaho.di.job.JobMeta sourceJobMeta, org.pentaho.di.trans.TransMeta targetTransMeta)
public void paintControl(org.eclipse.swt.events.PaintEvent e)
public org.eclipse.swt.graphics.Image getJobImage(org.eclipse.swt.graphics.Device device, int x, int y, float magnificationFactor)
public void snaptogrid()
public void allignleft()
public void allignright()
public void alligntop()
public void allignbottom()
public void distributehorizontal()
public void distributevertical()
public void newProps()
public String toString()
toString
in class org.eclipse.swt.widgets.Widget
public org.pentaho.di.core.EngineMetaInterface getMeta()
getMeta
in interface TabItemInterface
public void setJobMeta(org.pentaho.di.job.JobMeta jobMeta)
jobMeta
- the jobMeta to setpublic boolean applyChanges() throws org.pentaho.di.core.exception.KettleException
applyChanges
in interface TabItemInterface
org.pentaho.di.core.exception.KettleException
public boolean canBeClosed()
TabItemInterface
canBeClosed
in interface TabItemInterface
public org.pentaho.di.job.JobMeta getManagedObject()
getManagedObject
in interface TabItemInterface
public boolean hasContentChanged()
hasContentChanged
in interface TabItemInterface
public static int showChangedWarning(org.eclipse.swt.widgets.Shell shell, String name)
public static boolean editProperties(org.pentaho.di.job.JobMeta jobMeta, Spoon spoon, org.pentaho.di.repository.Repository rep, boolean allowDirectoryChange)
public org.pentaho.di.core.gui.Point getLastMove()
public void setLastMove(org.pentaho.di.core.gui.Point lastMove)
lastMove
- the lastMove to setpublic void addExtraView()
public void checkEmptyExtraView()
public boolean isExecutionResultsPaneVisible()
public void showExecutionResults()
public void addAllTabs()
public void openFile()
public void saveFile() throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public void saveFileAs() throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public void saveXMLFileToVfs()
public void printFile()
public void runJob()
public void getSQL()
public org.pentaho.ui.xul.containers.XulToolbar getToolbar()
public void exploreDatabase()
public void browseVersionHistory()
public void startJob(org.pentaho.di.job.JobExecutionConfiguration executionConfiguration) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public void stopJob()
public void setControlStates()
setControlStates
in interface TabItemInterface
public List<RefreshListener> getRefreshListeners()
public void setRefreshListeners(List<RefreshListener> refreshListeners)
refreshListeners
- the refresh listeners to setpublic void addRefreshListener(RefreshListener refreshListener)
refreshListener
- the job refresh listener to addpublic String getName()
getName
in interface org.pentaho.ui.xul.impl.XulEventHandler
public org.pentaho.ui.xul.XulDomContainer getXulDomContainer()
getXulDomContainer
in interface org.pentaho.ui.xul.impl.XulEventHandler
public void setName(String name)
setName
in interface org.pentaho.ui.xul.impl.XulEventHandler
public void setXulDomContainer(org.pentaho.ui.xul.XulDomContainer xulDomContainer)
setXulDomContainer
in interface org.pentaho.ui.xul.impl.XulEventHandler
public boolean canHandleSave()
canHandleSave
in interface TabItemInterface
public org.pentaho.di.core.logging.HasLogChannelInterface getLogChannelProvider()
getLogChannelProvider
in interface org.pentaho.di.core.logging.LogParentProvidedInterface
public void addUndoPosition(Object[] obj, int[] pos, org.pentaho.di.core.gui.Point[] prev, org.pentaho.di.core.gui.Point[] curr)
public void addUndoPosition(Object[] obj, int[] pos, org.pentaho.di.core.gui.Point[] prev, org.pentaho.di.core.gui.Point[] curr, boolean nextAlso)
public int showChangedWarning() throws org.pentaho.di.core.exception.KettleException
showChangedWarning
in interface TabItemInterface
showChangedWarning
in class AbstractGraph
org.pentaho.di.core.exception.KettleException
public void replayJob()
public void handleJobMetaChanges(org.pentaho.di.job.JobMeta jobMeta) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public void addJobEntryToChain(String typeDesc, boolean shift)
public Spoon getSpoon()
public void setSpoon(Spoon spoon)
public org.pentaho.di.job.JobMeta getJobMeta()
public org.pentaho.di.job.Job getJob()