public class JobGraph extends AbstractGraph implements org.pentaho.ui.xul.impl.XulEventHandler, Redrawable, TabItemInterface, 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
canvas, hori, iconoffset, magnification, noteoffset, offset, vert, xulDomContainer, zoomLabel
Constructor and Description |
---|
JobGraph(org.eclipse.swt.widgets.Composite par,
Spoon spoon,
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,
Point[] prev,
Point[] curr) |
void |
addUndoPosition(Object[] obj,
int[] pos,
Point[] prev,
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(JobMeta jobMeta,
JobHopMeta newHop) |
void |
clearSelection() |
void |
clearSettings() |
void |
copyEntry() |
static void |
copyInternalJobVariables(JobMeta sourceJobMeta,
TransMeta targetTransMeta) |
protected SnapAllignDistribute |
createSnapAllignDistribute() |
void |
deleteEntry() |
void |
deleteHop() |
void |
deleteNote() |
void |
delSelected() |
void |
delSelected(JobEntryCopy clickedEntry) |
protected void |
detach(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(JobEntryCopy je) |
void |
editEntryClick() |
void |
editEntryDescription() |
void |
editEntryParallel()
Go from serial to parallel to serial execution
|
void |
editJobProperties() |
void |
editNote() |
protected void |
editNote(NotePadMeta ni) |
static boolean |
editProperties(JobMeta jobMeta,
Spoon spoon,
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 JobHopMeta |
getCurrentHop() |
NotePadMeta |
getCurrentNote() |
Job |
getJob() |
JobEntryCopy |
getJobEntry() |
org.eclipse.swt.graphics.Image |
getJobImage(org.eclipse.swt.graphics.Device device,
int x,
int y,
float magnificationFactor) |
JobMeta |
getJobMeta() |
Point |
getLastMove() |
protected int[] |
getLine(JobEntryCopy fs,
JobEntryCopy ts) |
HasLogChannelInterface |
getLogChannelProvider() |
JobMeta |
getManagedObject() |
EngineMetaInterface |
getMeta() |
String |
getName() |
protected Point |
getOffset() |
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() |
AreaOwner |
getVisibleAreaOwner(int x,
int y) |
org.pentaho.ui.xul.XulDomContainer |
getXulDomContainer() |
void |
handleJobMetaChanges(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(JobEntryCopy jobEntryCopy) |
protected void |
loadReferencedObject(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(JobEntryJob entry,
JobEntryCopy jobEntryCopy) |
void |
openTransformation() |
protected void |
openTransformation(JobEntryTrans 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(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(JobMeta jobMeta,
Rectangle rect) |
void |
setControlStates() |
protected void |
setCurrentHop(JobHopMeta hop) |
void |
setCurrentNote(NotePadMeta ni) |
boolean |
setFocus() |
void |
setHopEvaluationFalse() |
void |
setHopEvaluationTrue() |
void |
setHopUnconditional() |
void |
setJob(Job job) |
void |
setJobEntry(JobEntryCopy jobEntry) |
void |
setJobMeta(JobMeta jobMeta) |
void |
setLastMove(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(JobExecutionConfiguration executionConfiguration) |
void |
stopJob() |
String |
toString() |
dispose, doRightClickSelection, forceFocus, getArea, getChangedWarning, getOffset, getThumb, magnifyPoint, real2screen, redraw, screen2real, setZoomLabel, showChangedWarning, sign, zoom100Percent, zoomIn, zoomOut
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setLayout, setLayoutDeferred, setTabList
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
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
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
redraw
getChangedWarning
public static final String START_TEXT
public static final String STOP_TEXT
protected org.eclipse.swt.widgets.Shell shell
protected LogChannelInterface log
protected JobMeta jobMeta
public Job job
protected PropsUI props
protected int iconsize
protected int linewidth
protected Point lastclick
protected List<JobEntryCopy> selectedEntries
protected JobEntryCopy selectedEntry
protected Point[] previousLocations
protected NotePadMeta selectedNote
protected Point previous_note_location
protected Point lastMove
protected JobHopMeta hop_candidate
protected Point drop_candidate
protected Spoon spoon
protected boolean split_hop
protected int lastButton
protected JobHopMeta last_hop_split
protected Rectangle selectionRegion
protected static final double theta
protected static final int size
protected int shadowsize
protected int currentMouseX
protected int currentMouseY
protected JobEntryCopy jobEntry
protected NotePadMeta ni
protected JobHopMeta currentHop
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
protected void hideToolTips()
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(JobMeta jobMeta, JobHopMeta newHop)
public AreaOwner getVisibleAreaOwner(int x, int y)
protected void asyncRedraw()
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 boolean setFocus()
setFocus
in interface TabItemInterface
setFocus
in class AbstractGraph
public void renameJobEntry(JobEntryCopy jobEntry, String newName)
jobEntry
- newName
- public static void showOnlyStartOnceMessage(org.eclipse.swt.widgets.Shell shell)
public void delSelected()
public void delSelected(JobEntryCopy clickedEntry)
public void clearSettings()
public Point getRealPosition(org.eclipse.swt.widgets.Composite canvas, int x, int y)
protected int[] getLine(JobEntryCopy fs, JobEntryCopy ts)
public void setJobEntry(JobEntryCopy jobEntry)
public JobEntryCopy getJobEntry()
public void openTransformation()
public void openJob()
public void newHopClick()
public void editEntryClick()
public void editEntryDescription()
public void editEntryParallel()
public void duplicateEntry() throws KettleException
KettleException
public void copyEntry()
public void detachEntry()
public void hideEntry()
public void deleteEntry()
protected void setMenu(int x, int y)
public void selectAll()
public void clearSelection()
public void editJobProperties()
public void pasteNote()
public void newNote()
public void setCurrentNote(NotePadMeta ni)
public 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()
protected void setCurrentHop(JobHopMeta hop)
protected JobHopMeta getCurrentHop()
public void enableHopsBetweenSelectedEntries()
public void disableHopsBetweenSelectedEntries()
public void enableHopsBetweenSelectedEntries(boolean enabled)
public void enableHopsDownstream()
public void disableHopsDownstream()
public void enableDisableHopsDownstream(boolean enabled)
protected void setToolTip(int x, int y, int screenX, int screenY)
public void launchStuff(JobEntryCopy jobEntryCopy)
public void launchStuff()
protected void loadReferencedObject(JobEntryCopy jobEntryCopy, int index)
protected void openTransformation(JobEntryTrans entry, JobEntryCopy jobEntryCopy)
public void openJob(JobEntryJob entry, JobEntryCopy jobEntryCopy)
public void setJob(Job job)
public static void copyInternalJobVariables(JobMeta sourceJobMeta, 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)
protected Point getOffset()
getOffset
in class AbstractGraph
protected void newHop()
protected void editEntry(JobEntryCopy je)
protected void editNote(NotePadMeta ni)
protected void drawArrow(org.eclipse.swt.graphics.GC gc, int[] line)
protected boolean pointOnLine(int x, int y, int[] line)
protected boolean pointOnThinLine(int x, int y, int[] line)
protected SnapAllignDistribute createSnapAllignDistribute()
public void snaptogrid()
protected void snaptogrid(int size)
public void allignleft()
public void allignright()
public void alligntop()
public void allignbottom()
public void distributehorizontal()
public void distributevertical()
protected void drawRect(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle rect)
protected void detach(JobEntryCopy je)
public void newProps()
public String toString()
toString
in class org.eclipse.swt.widgets.Widget
public EngineMetaInterface getMeta()
getMeta
in interface TabItemInterface
public void setJobMeta(JobMeta jobMeta)
jobMeta
- the jobMeta to setpublic boolean applyChanges() throws KettleException
applyChanges
in interface TabItemInterface
KettleException
public boolean canBeClosed()
TabItemInterface
canBeClosed
in interface TabItemInterface
public 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(JobMeta jobMeta, Spoon spoon, Repository rep, boolean allowDirectoryChange)
public Point getLastMove()
public void setLastMove(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 KettleException
KettleException
public void saveFileAs() throws KettleException
KettleException
public void saveXMLFileToVfs()
public void printFile()
public void runJob()
public void runOptionsJob()
public void getSQL()
public org.pentaho.ui.xul.containers.XulToolbar getToolbar()
public void exploreDatabase()
public void browseVersionHistory()
public void startJob(JobExecutionConfiguration executionConfiguration) throws KettleException
KettleException
public void showSaveFileMessage()
protected void jobFinished()
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 HasLogChannelInterface getLogChannelProvider()
getLogChannelProvider
in interface LogParentProvidedInterface
public void addUndoPosition(Object[] obj, int[] pos, Point[] prev, Point[] curr, boolean nextAlso)
public int showChangedWarning() throws KettleException
showChangedWarning
in interface TabItemInterface
showChangedWarning
in class AbstractGraph
KettleException
public void replayJob()
public void handleJobMetaChanges(JobMeta jobMeta) throws KettleException
KettleException
public void addJobEntryToChain(String typeDesc, boolean shift)
public Spoon getSpoon()
public void setSpoon(Spoon spoon)
public JobMeta getJobMeta()
public Job getJob()
Copyright © 2019 Hitachi Vantara. All rights reserved.