public class TransGraph 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 |
static String |
PAUSE_TEXT |
static String |
RESUME_TEXT |
static String |
START_TEXT |
static String |
STOP_TEXT |
org.pentaho.di.trans.Trans |
trans |
TransGridDelegate |
transGridDelegate |
TransHistoryDelegate |
transHistoryDelegate |
TransLogDelegate |
transLogDelegate |
TransMetricsDelegate |
transMetricsDelegate |
TransPerfDelegate |
transPerfDelegate |
TransPreviewDelegate |
transPreviewDelegate |
Constructor and Description |
---|
TransGraph(org.eclipse.swt.widgets.Composite parent,
Spoon spoon,
org.pentaho.di.trans.TransMeta transMeta) |
Modifier and Type | Method and Description |
---|---|
void |
addAllTabs() |
void |
addExtraView()
Add an extra view to the main composite SashForm
|
void |
addStepToChain(org.pentaho.di.core.plugins.PluginInterface stepPlugin,
boolean shift) |
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() |
void |
analyseImpact() |
boolean |
applyChanges() |
org.pentaho.di.trans.step.RowDistributionInterface |
askUserForCustomDistributionMethod() |
void |
autoLayout()
Perform an automatic layout of a transformation based on "Force-based algorithms".
|
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.
|
void |
checkErrors() |
void |
checkSelectedSteps() |
void |
checkTrans() |
void |
clearSelection() |
void |
clearSettings() |
void |
clustering() |
void |
copies() |
void |
copies(org.pentaho.di.trans.step.StepMeta stepMeta) |
void |
copyStep() |
void |
debug(org.pentaho.di.trans.TransExecutionConfiguration executionConfiguration,
org.pentaho.di.trans.debug.TransDebugMeta transDebugMeta) |
void |
debugFile() |
void |
deleteHop() |
void |
deleteNote() |
void |
delSelected() |
void |
delSelected(org.pentaho.di.trans.step.StepMeta stMeta) |
void |
detachStep() |
void |
disableHopsBetweenSelectedSteps() |
void |
disableHopsDownstream() |
void |
distributehorizontal() |
void |
distributevertical() |
void |
dumpLoggingRegistry() |
void |
dupeStep() |
void |
editDescription() |
void |
editDescription(org.pentaho.di.trans.step.StepMeta stepMeta) |
void |
editHop() |
void |
editNote() |
static boolean |
editProperties(org.pentaho.di.trans.TransMeta transMeta,
Spoon spoon,
org.pentaho.di.repository.Repository rep,
boolean allowDirectoryChange) |
static boolean |
editProperties(org.pentaho.di.trans.TransMeta transMeta,
Spoon spoon,
org.pentaho.di.repository.Repository rep,
boolean allowDirectoryChange,
TransDialog.Tabs currentTab) |
void |
editStep() |
void |
enableDisableHopsDownstream(boolean enabled) |
void |
enableHop() |
void |
enableHopsBetweenSelectedSteps() |
void |
enableHopsBetweenSelectedSteps(boolean enabled)
This method enables or disables all the hops between the selected steps.
|
void |
enableHopsDownstream() |
void |
errorHandling() |
void |
exploreDatabase() |
void |
fieldsAfter() |
void |
fieldsBefore() |
void |
fieldsLineage() |
void |
flipHopDirection() |
void |
generateMappingToThisStep() |
org.pentaho.di.trans.TransHopMeta |
getCurrentHop() |
org.pentaho.di.core.NotePadMeta |
getCurrentNote() |
org.pentaho.di.trans.step.StepMeta |
getCurrentStep() |
String[] |
getDropStrings(String str,
String sep) |
List<org.pentaho.di.trans.DatabaseImpact> |
getImpact() |
org.pentaho.di.core.gui.Point |
getLastMove() |
org.pentaho.di.trans.debug.TransDebugMeta |
getLastTransDebugMeta() |
org.pentaho.di.core.logging.HasLogChannelInterface |
getLogChannelProvider() |
org.pentaho.di.trans.TransMeta |
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<org.pentaho.di.core.CheckResultInterface> |
getRemarks() |
Spoon |
getSpoon() |
void |
getSQL() |
Map<org.pentaho.di.trans.step.StepMeta,String> |
getStepLogMap() |
org.pentaho.ui.xul.containers.XulToolbar |
getToolbar() |
org.pentaho.di.trans.Trans |
getTrans() |
org.eclipse.swt.graphics.Image |
getTransformationImage(org.eclipse.swt.graphics.Device device,
int x,
int y,
float magnificationFactor) |
org.pentaho.di.trans.TransMeta |
getTransMeta() |
org.pentaho.di.core.gui.AreaOwner |
getVisibleAreaOwner(int x,
int y) |
org.pentaho.ui.xul.XulDomContainer |
getXulDomContainer() |
void |
handleTransMetaChanges(org.pentaho.di.trans.TransMeta transMeta) |
boolean |
hasContentChanged() |
void |
hideStep() |
boolean |
isExecutionResultsPaneVisible() |
boolean |
isHalting() |
boolean |
isImpactFinished() |
boolean |
isRunning() |
void |
keyPressed(org.eclipse.swt.events.KeyEvent e) |
void |
keyReleased(org.eclipse.swt.events.KeyEvent e) |
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 arg0) |
void |
mouseExit(org.eclipse.swt.events.MouseEvent arg0) |
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 |
newHopChoice() |
void |
newNote() |
void |
newProps() |
void |
newStep(String description) |
void |
openFile() |
void |
openMapping()
XUL dummy menu entry
|
void |
openMapping(org.pentaho.di.trans.step.StepMeta stepMeta,
int index)
Open the transformation mentioned in the mapping...
|
void |
paintControl(org.eclipse.swt.events.PaintEvent e) |
void |
partitioning() |
void |
paste() |
void |
pauseResume() |
void |
pauseTransformation() |
void |
preview() |
void |
previewFile() |
void |
printFile() |
void |
raiseNote() |
void |
renameStep(org.pentaho.di.trans.step.StepMeta stepMeta,
String stepname) |
void |
runTransformation() |
void |
saveFile() |
void |
saveFileAs() |
void |
saveXMLFileToVfs() |
void |
selectAll() |
void |
selectInRect(org.pentaho.di.trans.TransMeta transMeta,
org.pentaho.di.core.gui.Rectangle rect)
Select all the steps in a certain (screen) rectangle
|
void |
setControlStates() |
void |
setCopies() |
void |
setCurrentHop(org.pentaho.di.trans.TransHopMeta currentHop) |
void |
setCurrentNote(org.pentaho.di.core.NotePadMeta ni) |
void |
setCurrentStep(org.pentaho.di.trans.step.StepMeta currentStep) |
void |
setCustomRowDistribution() |
void |
setDistributes() |
boolean |
setFocus() |
void |
setHalting(boolean halting) |
void |
setImpact(List<org.pentaho.di.trans.DatabaseImpact> impact) |
void |
setImpactFinished(boolean impactHasRun) |
void |
setName(String arg0) |
void |
setRemarks(List<org.pentaho.di.core.CheckResultInterface> remarks) |
void |
setRunning(boolean running) |
void |
setSpoon(Spoon spoon) |
void |
setStepLogMap(Map<org.pentaho.di.trans.step.StepMeta,String> stepLogMap) |
void |
settings() |
void |
setToolbar(org.pentaho.ui.xul.containers.XulToolbar toolbar) |
void |
setTrans(org.pentaho.di.trans.Trans trans) |
void |
setTransMeta(org.pentaho.di.trans.TransMeta transMeta) |
void |
setXulDomContainer(org.pentaho.ui.xul.XulDomContainer xulDomContainer) |
int |
showChangedWarning() |
void |
showExecutionResults() |
void |
showLastPreviewResults() |
void |
showPreview(org.pentaho.di.trans.debug.TransDebugMeta transDebugMeta,
org.pentaho.di.trans.debug.StepDebugMeta stepDebugMeta,
org.pentaho.di.core.row.RowMetaInterface rowBufferMeta,
List<Object[]> rowBuffer) |
void |
snaptogrid() |
void |
sniff(boolean input,
boolean output,
boolean error) |
void |
sniffError() |
void |
sniffInput() |
void |
sniffOutput() |
void |
start(org.pentaho.di.trans.TransExecutionConfiguration executionConfiguration) |
void |
stop() |
void |
stopTransformation() |
void |
transReplay() |
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, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChangedWarning
public static final String START_TEXT
public static final String PAUSE_TEXT
public static final String RESUME_TEXT
public static final String STOP_TEXT
public org.pentaho.di.trans.Trans trans
public org.eclipse.swt.widgets.Composite extraViewComposite
public org.eclipse.swt.custom.CTabFolder extraViewTabFolder
public TransLogDelegate transLogDelegate
public TransGridDelegate transGridDelegate
public TransHistoryDelegate transHistoryDelegate
public TransPerfDelegate transPerfDelegate
public TransMetricsDelegate transMetricsDelegate
public TransPreviewDelegate transPreviewDelegate
public TransGraph(org.eclipse.swt.widgets.Composite parent, Spoon spoon, org.pentaho.di.trans.TransMeta transMeta)
public void setCurrentNote(org.pentaho.di.core.NotePadMeta ni)
public org.pentaho.di.core.NotePadMeta getCurrentNote()
public org.pentaho.di.trans.TransHopMeta getCurrentHop()
public void setCurrentHop(org.pentaho.di.trans.TransHopMeta currentHop)
public org.pentaho.di.trans.step.StepMeta getCurrentStep()
public void setCurrentStep(org.pentaho.di.trans.step.StepMeta currentStep)
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 mouseScrolled(org.eclipse.swt.events.MouseEvent e)
mouseScrolled
in interface org.eclipse.swt.events.MouseWheelListener
public void mouseEnter(org.eclipse.swt.events.MouseEvent arg0)
mouseEnter
in interface org.eclipse.swt.events.MouseTrackListener
public void mouseExit(org.eclipse.swt.events.MouseEvent arg0)
mouseExit
in interface org.eclipse.swt.events.MouseTrackListener
public void selectInRect(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.core.gui.Rectangle rect)
rect
- The selection area as a rectanglepublic 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 org.eclipse.swt.widgets.Composite
public void renameStep(org.pentaho.di.trans.step.StepMeta stepMeta, String stepname)
public void clearSettings()
public org.pentaho.di.core.gui.Point getRealPosition(org.eclipse.swt.widgets.Composite canvas, int x, int y)
public void hideStep()
public void checkSelectedSteps()
public void detachStep()
public void generateMappingToThisStep()
public void partitioning()
public void clustering()
public void errorHandling()
public void newHopChoice()
public void editStep()
public void editDescription()
public void setDistributes()
public void setCustomRowDistribution()
public org.pentaho.di.trans.step.RowDistributionInterface askUserForCustomDistributionMethod()
public void setCopies()
public void copies()
public void copies(org.pentaho.di.trans.step.StepMeta stepMeta)
public void dupeStep()
public void copyStep()
public void delSelected()
public void fieldsBefore()
public void fieldsAfter()
public void fieldsLineage()
public void editHop()
public void flipHopDirection()
public void enableHop()
public void deleteHop()
public void enableHopsBetweenSelectedSteps()
public void disableHopsBetweenSelectedSteps()
public void enableHopsBetweenSelectedSteps(boolean enabled)
public void enableHopsDownstream()
public void disableHopsDownstream()
public void enableDisableHopsDownstream(boolean enabled)
public void editNote()
public void deleteNote()
public void raiseNote()
public void lowerNote()
public void newNote()
public void paste()
public void settings()
public void newStep(String description)
public void selectAll()
public void clearSelection()
public org.pentaho.di.core.gui.AreaOwner getVisibleAreaOwner(int x, int y)
public void delSelected(org.pentaho.di.trans.step.StepMeta stMeta)
public void editDescription(org.pentaho.di.trans.step.StepMeta stepMeta)
public void paintControl(org.eclipse.swt.events.PaintEvent e)
public org.eclipse.swt.graphics.Image getTransformationImage(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 preview()
public void newProps()
public org.pentaho.di.core.EngineMetaInterface getMeta()
getMeta
in interface TabItemInterface
public void setTransMeta(org.pentaho.di.trans.TransMeta transMeta)
transMeta
- the transMeta to setpublic 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 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.trans.TransMeta getManagedObject()
getManagedObject
in interface TabItemInterface
public boolean hasContentChanged()
hasContentChanged
in interface TabItemInterface
public List<org.pentaho.di.core.CheckResultInterface> getRemarks()
public void setRemarks(List<org.pentaho.di.core.CheckResultInterface> remarks)
public List<org.pentaho.di.trans.DatabaseImpact> getImpact()
public void setImpact(List<org.pentaho.di.trans.DatabaseImpact> impact)
public boolean isImpactFinished()
public void setImpactFinished(boolean impactHasRun)
public org.pentaho.di.core.gui.Point getLastMove()
public static boolean editProperties(org.pentaho.di.trans.TransMeta transMeta, Spoon spoon, org.pentaho.di.repository.Repository rep, boolean allowDirectoryChange)
public static boolean editProperties(org.pentaho.di.trans.TransMeta transMeta, Spoon spoon, org.pentaho.di.repository.Repository rep, boolean allowDirectoryChange, TransDialog.Tabs currentTab)
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 runTransformation()
public void pauseTransformation()
public void stopTransformation()
public void previewFile()
public void debugFile()
public void transReplay()
public void checkTrans()
public void analyseImpact()
public void getSQL()
public void exploreDatabase()
public boolean isExecutionResultsPaneVisible()
public void showExecutionResults()
public void browseVersionHistory()
public void checkEmptyExtraView()
public org.pentaho.ui.xul.containers.XulToolbar getToolbar()
public void setToolbar(org.pentaho.ui.xul.containers.XulToolbar toolbar)
toolbar
- the toolbar to setpublic void addExtraView()
public void checkErrors()
public void start(org.pentaho.di.trans.TransExecutionConfiguration executionConfiguration) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public void addAllTabs()
public void debug(org.pentaho.di.trans.TransExecutionConfiguration executionConfiguration, org.pentaho.di.trans.debug.TransDebugMeta transDebugMeta)
public void showPreview(org.pentaho.di.trans.debug.TransDebugMeta transDebugMeta, org.pentaho.di.trans.debug.StepDebugMeta stepDebugMeta, org.pentaho.di.core.row.RowMetaInterface rowBufferMeta, List<Object[]> rowBuffer)
public void stop()
public void pauseResume()
public void setControlStates()
setControlStates
in interface TabItemInterface
public void showLastPreviewResults()
public void openMapping()
public void openMapping(org.pentaho.di.trans.step.StepMeta stepMeta, int index)
public boolean isRunning()
public void setRunning(boolean running)
running
- the running to setpublic org.pentaho.di.trans.debug.TransDebugMeta getLastTransDebugMeta()
public boolean isHalting()
public void setHalting(boolean halting)
halting
- the halting to setpublic Map<org.pentaho.di.trans.step.StepMeta,String> getStepLogMap()
public void setStepLogMap(Map<org.pentaho.di.trans.step.StepMeta,String> stepLogMap)
stepLogMap
- the stepLogMap to setpublic void dumpLoggingRegistry()
public org.pentaho.di.core.logging.HasLogChannelInterface getLogChannelProvider()
getLogChannelProvider
in interface org.pentaho.di.core.logging.LogParentProvidedInterface
public void setTrans(org.pentaho.di.trans.Trans trans)
public void sniffInput()
public void sniffOutput()
public void sniffError()
public void sniff(boolean input, boolean output, boolean error)
public 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 arg0)
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 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 autoLayout()
public void handleTransMetaChanges(org.pentaho.di.trans.TransMeta transMeta) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public void addStepToChain(org.pentaho.di.core.plugins.PluginInterface stepPlugin, boolean shift)
public Spoon getSpoon()
public void setSpoon(Spoon spoon)
public org.pentaho.di.trans.TransMeta getTransMeta()
public org.pentaho.di.trans.Trans getTrans()