Package org.pentaho.di.ui.spoon
Class Spoon
java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.window.ApplicationWindow
org.pentaho.di.ui.spoon.Spoon
- All Implemented Interfaces:
org.eclipse.jface.operation.IRunnableContext
,org.eclipse.jface.window.IShellProvider
,org.pentaho.di.core.AddUndoPositionInterface
,org.pentaho.di.core.changed.PDIObserver
,org.pentaho.di.core.gui.OverwritePrompter
,org.pentaho.di.core.gui.SpoonInterface
,org.pentaho.di.core.lifecycle.LifeEventHandler
,PartitionSchemasProvider
,org.pentaho.ui.xul.impl.XulEventHandler
,org.pentaho.ui.xul.XulEventSource
,TabListener
public class Spoon
extends org.eclipse.jface.window.ApplicationWindow
implements org.pentaho.di.core.AddUndoPositionInterface, TabListener, org.pentaho.di.core.gui.SpoonInterface, org.pentaho.di.core.gui.OverwritePrompter, org.pentaho.di.core.changed.PDIObserver, org.pentaho.di.core.lifecycle.LifeEventHandler, org.pentaho.ui.xul.XulEventSource, org.pentaho.ui.xul.impl.XulEventHandler, PartitionSchemasProvider
This class handles the main window of the Spoon graphical transformation editor.
- Since:
- 16-may-2003, i18n at 07-Feb-2006, redesign 01-Dec-2006
- Author:
- Matt
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
org.pentaho.di.repository.RepositoryCapabilities
protected PropertyChangeSupport
static final String
Deprecated.The connection name is in the URI since full "pvfs" paths are being used.static final String
static final String
protected Map<String,
FileListener> We can use this to set a default filter path in the open and save dialogsstatic final org.pentaho.di.core.logging.LoggingObjectInterface
static final String
static final int
static final int
static final int
static final String
org.pentaho.di.repository.Repository
org.eclipse.swt.widgets.Text
boolean
boolean
static final String
static final String
protected String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
org.pentaho.di.core.RowMetaAndData
static final String
static final String
static final String
Fields inherited from class org.eclipse.jface.window.ApplicationWindow
seperator1
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK, resizeHasOccurred
Fields inherited from interface org.pentaho.di.core.gui.SpoonInterface
STATE_CORE_OBJECTS_CHEF, STATE_CORE_OBJECTS_NONE, STATE_CORE_OBJECTS_SPOON, XUL_FILE_MENU_PROPERTIES, XUL_FILE_MENUBAR, XUL_FILE_MENUS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addDefaultKeyListeners
(org.eclipse.swt.widgets.Control control) void
addFileListener
(FileListener listener) void
addJobGraph
(org.pentaho.di.job.JobMeta jobMeta) void
void
addJobHistory
(org.pentaho.di.job.JobMeta jobMeta, boolean select) void
void
void
addMenuListener
(String id, Object listener, String methodName) void
void
addPropertyChangeListener
(String propertyName, PropertyChangeListener listener) boolean
addSpoonBrowser
(String name, String urlString) boolean
addSpoonBrowser
(String name, String urlString, boolean showControls) boolean
addSpoonBrowser
(String name, String urlString, boolean isURL, org.eclipse.swt.browser.LocationListener locationListener, Map<String, Runnable> functions, boolean showControls) boolean
addSpoonBrowser
(String name, String urlString, org.eclipse.swt.browser.LocationListener locationListener) boolean
addSpoonBrowser
(String name, String urlString, org.eclipse.swt.browser.LocationListener locationListener, boolean showControls) void
addSpoonMenuController
(ISpoonMenuController menuController) void
void
addSpoonSlave
(org.pentaho.di.cluster.SlaveServer slaveServer) void
addTransGraph
(org.pentaho.di.trans.TransMeta transMeta) void
void
void
addUndoChange
(org.pentaho.di.core.gui.UndoInterface undoInterface, Object[] from, Object[] to, int[] pos) void
addUndoChange
(org.pentaho.di.core.gui.UndoInterface undoInterface, Object[] from, Object[] to, int[] pos, boolean nextAlso) void
addUndoDelete
(org.pentaho.di.core.gui.UndoInterface undoInterface, Object[] obj, int[] position) void
addUndoDelete
(org.pentaho.di.core.gui.UndoInterface undoInterface, Object[] obj, int[] position, boolean nextAlso) void
addUndoNew
(org.pentaho.di.core.gui.UndoInterface undoInterface, Object[] obj, int[] position) void
addUndoNew
(org.pentaho.di.core.gui.UndoInterface undoInterface, Object[] obj, int[] position, boolean nextAlso) void
addUndoPosition
(org.pentaho.di.core.gui.UndoInterface undoInterface, Object[] obj, int[] pos, org.pentaho.di.core.gui.Point[] prev, org.pentaho.di.core.gui.Point[] curr) void
void
analyseImpact
(org.pentaho.di.trans.TransMeta transMeta) void
void
applyVariableToAllLoadedObjects
(String name, String value) void
void
boolean
checkIfHopAlreadyExists
(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.TransHopMeta newHop) void
void
checkTrans
(org.pentaho.di.trans.TransMeta transMeta) Checks *all* the steps in the transformation, puts the result in remarks listvoid
checkTrans
(org.pentaho.di.trans.TransMeta transMeta, boolean only_selected) Check the steps in a transformationvoid
clearDBCache
(String id) void
PDI-18997 - clear specific repository directory when connect and or disconnect from servervoid
void
void
boolean
boolean
closeAllFiles
(boolean force) boolean
boolean
closeAllJobsAndTransformations
(boolean force) Prompt user to close all open Jobs & Transformations if they have execute permissions.void
boolean
boolean
closeFile
(boolean force) void
void
consume
(org.pentaho.di.core.lifecycle.LifeEventInfo info) void
copy()
void
copyFile()
void
copyJob()
void
copyJob
(org.pentaho.di.job.JobMeta jobMeta) void
void
copyLogSelectedText
(org.eclipse.swt.custom.StyledText text) void
copySelected
(org.pentaho.di.trans.TransMeta transMeta, List<org.pentaho.di.trans.step.StepMeta> steps, List<org.pentaho.di.core.NotePadMeta> notes) void
It's called copySteps, but the job entries also arrive at this locationvoid
Create a transformation that extracts tables & data from a database.void
void
copyTransformation
(org.pentaho.di.trans.TransMeta transMeta) void
void
copyTransformationImage
(org.pentaho.di.trans.TransMeta transMeta) void
protected org.eclipse.swt.widgets.Control
createContents
(org.eclipse.swt.widgets.Composite parent) void
Shows a wizard that creates a new database connection...void
void
createKettleArchive
(org.pentaho.di.trans.TransMeta transMeta) void
void
cut()
void
void
void
void
void
void
deleteJobEntryCopies
(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.job.entry.JobEntryCopy jobEntry) void
deleteJobEntryCopies
(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.job.entry.JobEntryCopy[] jobEntry) void
delHop()
void
delHop
(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.TransHopMeta transHopMeta) void
void
void
delSlaveServer
(org.pentaho.di.trans.HasSlaveServersInterface hasSlaveServersInterface, org.pentaho.di.cluster.SlaveServer slaveServer) void
delStep()
void
delStep
(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.step.StepMeta stepMeta) void
delSteps
(org.pentaho.di.trans.TransMeta transformation, org.pentaho.di.trans.step.StepMeta[] steps) void
void
disableMenuItem
(String itemId) void
void
void
dispose()
boolean
void
void
void
dupeStep()
void
dupeStep
(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.step.StepMeta stepMeta) void
editClustering
(org.pentaho.di.trans.TransMeta transMeta, List<org.pentaho.di.trans.step.StepMeta> stepMetas) Select a clustering schema for this step.void
editClustering
(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.step.StepMeta stepMeta) Select a clustering schema for this step.void
void
void
editHop()
void
editHop
(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.TransHopMeta transHopMeta) void
void
editJobEntry
(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.job.entry.JobEntryCopy je) boolean
void
void
void
void
editPartitioning
(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.step.StepMeta stepMeta) void
boolean
void
void
protected void
editSlaveServer
(org.pentaho.di.cluster.SlaveServer slaveServer) void
editStep()
editStep
(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.step.StepMeta stepMeta) void
editStepErrorHandling
(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.step.StepMeta stepMeta) boolean
void
void
void
void
enableMenuItem
(String itemId) void
void
executeFile
(boolean local, boolean remote, boolean cluster, boolean preview, boolean debug, Date replayDate, boolean safe, boolean show) void
void
executeJob
(org.pentaho.di.job.JobMeta jobMeta, boolean local, boolean remote, Date replayDate, boolean safe, String startCopyName, int startCopyNr) void
void
executeTransformation
(org.pentaho.di.trans.TransMeta transMeta, boolean local, boolean remote, boolean cluster, boolean preview, boolean debug, Date replayDate, boolean safe, org.pentaho.di.core.logging.LogLevel logLevel) void
void
void
void
Export this job or transformation including all depending resources to a single ZIP file containing a file repository.void
Export this job or transformation including all depending resources to a single zip file.void
boolean
exportRepositoryDirectory
(org.pentaho.di.repository.RepositoryDirectory directoryToExport) boolean
org.pentaho.di.job.Job
findActiveJob
(org.pentaho.di.job.Job job, org.pentaho.di.job.entry.JobEntryCopy jobEntryCopy) org.pentaho.di.trans.Trans
findActiveTrans
(org.pentaho.di.job.Job job, org.pentaho.di.job.entry.JobEntryCopy jobEntryCopy) org.pentaho.di.job.JobMeta
org.pentaho.di.trans.TransMeta
findTransformation
(String tabItemText) void
protected void
firePropertyChange
(String attr, Object previousVal, Object newVal) void
generateFieldMapping
(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.step.StepMeta stepMeta) Create a new SelectValues step in between this step and the previous.List<org.pentaho.di.core.database.DatabaseMeta>
org.pentaho.di.trans.HasDatabasesInterface
org.pentaho.di.trans.HasSlaveServersInterface
org.pentaho.di.job.JobMeta
org.pentaho.di.core.EngineMetaInterface
org.pentaho.di.trans.TransMeta
org.pentaho.di.core.gui.UndoInterface
String[]
static String
org.pentaho.di.core.bowl.Bowl
getBowl()
static org.pentaho.di.pan.CommandLineOption[]
getCommandLineArgs
(List<String> args) static org.pentaho.di.pan.CommandLineOption
getCommandLineOption
(org.pentaho.di.pan.CommandLineOption[] options, String opt) int
Get the core object state.getData()
org.pentaho.di.repository.RepositoryDirectoryInterface
getDefaultSaveLocation
(org.pentaho.di.repository.RepositoryElementInterface repositoryElement) org.eclipse.swt.widgets.Composite
org.eclipse.swt.widgets.Display
org.eclipse.swt.widgets.FileDialog
local method to be able to use Spoon localization messages.protected static String
getFileType
(String fineName) static Spoon
org.pentaho.di.job.entry.JobEntryDialogInterface
getJobEntryDialog
(org.pentaho.di.job.entry.JobEntryInterface jei, org.pentaho.di.job.JobMeta jobMeta) org.pentaho.di.job.JobExecutionConfiguration
org.pentaho.di.core.LastUsedFile
getLastUsedRepoFile
(String repo, String indexStr) org.pentaho.di.job.JobMeta[]
org.pentaho.di.trans.TransMeta[]
org.pentaho.di.core.logging.LogChannelInterface
getLog()
org.pentaho.ui.xul.XulDomContainer
org.pentaho.metastore.api.IMetaStore
Supplier<org.pentaho.metastore.api.IMetaStore>
getName()
List<org.pentaho.di.partition.PartitionSchema>
getPartitionSchemas
(org.pentaho.di.trans.TransMeta transMeta) getPartitionSchemasNames
(org.pentaho.di.trans.TransMeta transMeta) org.pentaho.di.repository.Repository
org.pentaho.di.repository.RepositorySecurityManager
void
getSQL()
org.pentaho.di.trans.step.StepDialogInterface
getStepEntryDialog
(org.pentaho.di.trans.step.StepMetaInterface stepMeta, org.pentaho.di.trans.TransMeta transMeta, String stepName) org.pentaho.di.trans.TransExecutionConfiguration
org.pentaho.di.trans.TransExecutionConfiguration
org.pentaho.di.trans.TransExecutionConfiguration
getTreeObjects
(org.eclipse.swt.widgets.Tree tree) org.pentaho.vfs.ui.VfsFileChooserDialog
getVfsFileChooserDialog
(org.apache.commons.vfs2.FileObject rootFile, org.apache.commons.vfs2.FileObject initialFile) org.pentaho.ui.xul.XulDomContainer
void
handleMissingPluginsExceptionWithMarketplace
(org.pentaho.di.core.exception.KettleMissingPluginsException missingPluginsException) Shows a dialog listing the missing plugins, asking if you want to go into the marketplacevoid
handleRepositoryLost
(org.pentaho.di.repository.KettleRepositoryLostException e) protected void
void
handleStartOptions
(org.pentaho.di.pan.CommandLineOption[] options) void
void
void
helpStep()
void
void
void
void
void
Used when importing content from an xml file.void
init
(org.pentaho.di.trans.TransMeta ti) boolean
isDefinedSchemaExist
(String[] schemaNames) boolean
boolean
boolean
boolean
Check to see if any jobs or transformations are dirtystatic Boolean
static Boolean
void
lastFileSelect
(String id) void
lastFileSelect
(org.pentaho.di.core.LastUsedFile lastUsedFile) void
lastRepoFileSelect
(String repo, String id) void
loadLastUsedFile
(org.pentaho.di.core.LastUsedFile lastUsedFile, String repositoryName) Loads theLastUsedFile
residing the theRepository
withrepoName
, and "tracks" it by adding it to the "recent" files collection.void
loadLastUsedFileAtStartup
(org.pentaho.di.core.LastUsedFile lastUsedFile, String repositoryName) Loads theLastUsedFile
residing the theRepository
withrepoName
without "tracking it" - meaning that it is not explicitly added to the "recent" file collection, since it is expected to already exist in this collections.void
loadObjectFromRepository
(String objName, org.pentaho.di.repository.RepositoryObjectType objectType, org.pentaho.di.repository.RepositoryDirectoryInterface repDir, String versionLabel) void
loadObjectFromRepository
(org.pentaho.di.repository.ObjectId objectId, org.pentaho.di.repository.RepositoryObjectType objectType, String revision) void
loadPerspective
(int pos) void
void
loadRepositoryObjects
(org.pentaho.di.trans.TransMeta transMeta) Deprecated.is this ever used? functionality seems covered in loadSessionInformationvoid
static void
This is the main procedure for Spoon.makeTabName
(org.pentaho.di.core.EngineMetaInterface transMeta, boolean showingLocation) boolean
messageBox
(String message, String text, boolean allowCancel, int type) Object[]
messageDialogWithToggle
(String dialogTitle, Object image, String message, int dialogImageType, String[] buttonLabels, int defaultIndex, String toggleMessage, boolean toggleState) void
protected void
monitorClusterSchema
(org.pentaho.di.cluster.ClusterSchema clusterSchema) void
void
newClusteringSchema
(org.pentaho.di.trans.TransMeta transMeta) This creates a new clustering schema, edits it and adds it to the transformation metadata if its name is not a duplicate of any of existingvoid
void
void
void
newHop()
void
newHop
(org.pentaho.di.trans.TransMeta transMeta) void
newHop
(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.step.StepMeta fr, org.pentaho.di.trans.step.StepMeta to) void
newHop
(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.TransHopMeta transHopMeta) org.pentaho.di.job.entry.JobEntryCopy
newJobEntry
(org.pentaho.di.job.JobMeta jobMeta, String typeDesc, boolean openit) void
void
newJobHop
(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.job.entry.JobEntryCopy fr, org.pentaho.di.job.entry.JobEntryCopy to) void
newPartitioningSchema
(org.pentaho.di.trans.TransMeta transMeta) This creates a new partitioning schema, edits it and adds it to the transformation metadata if its name is not a duplicate of any of existingvoid
void
newSlaveServer
(org.pentaho.di.trans.HasSlaveServersInterface hasSlaveServersInterface) This creates a slave server, edits it and adds it to the transformation metadatavoid
newStep()
org.pentaho.di.trans.step.StepMeta
newStep
(org.pentaho.di.trans.TransMeta transMeta) org.pentaho.di.trans.step.StepMeta
newStep
(org.pentaho.di.trans.TransMeta transMeta, boolean openit, boolean rename) org.pentaho.di.trans.step.StepMeta
newStep
(org.pentaho.di.trans.TransMeta transMeta, String name, String description, boolean openit, boolean rename) Allocate new step, optionally open and rename it.org.pentaho.di.trans.step.StepMeta
newStep
(org.pentaho.di.trans.TransMeta transMeta, String id, String name, String description, boolean openit, boolean rename) Allocate new step, optionally open and rename it.void
void
openFile()
void
openFile
(boolean importfile) void
void
openFile
(String filename, org.pentaho.di.core.variables.VariableSpace variableSpace, boolean importFile) void
void
openFileNew
(String providerFilter, String fileFilterType, boolean importFile, String command) void
void
void
If available, this method will open the marketplace.void
void
boolean
overwritePrompt
(String message, String rememberText, String rememberPropertyName) void
paste()
void
pasteJob()
Paste job from the clipboard...void
Paste transformation from the clipboard...void
void
pasteXML
(org.pentaho.di.trans.TransMeta transMeta, String clipcontent, org.pentaho.di.core.gui.Point loc) boolean
performNewTransHopChecks
(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.TransHopMeta newHop) void
void
void
boolean
boolean
quitFile
(boolean canCancel) boolean
boolean
recentRepoFileExists
(String repo, String indexStr) Returns true if theLastUsedFile
at the givenindex
within thePropsUI.getLastUsedRepoFiles()
collection exists within the givenrepo
Repository
, and false otherwise.void
void
redoAction
(org.pentaho.di.core.gui.UndoInterface undoInterface) void
void
void
Refresh the object selection tree (on the left of the screen)void
refreshTree
(String folderName) void
refreshTree
(org.pentaho.di.base.AbstractMeta abstractMeta) void
registerViewTabPane
(TreePaneExtension extension) Add a pane to the view tabvoid
removeMenuItem
(String itemid, boolean removeTrailingSeparators) void
removeSpoonMenuController
(String menuControllerName) boolean
removeSpoonMenuController
(ISpoonMenuController menuController) void
org.pentaho.di.job.JobMeta
ripDB
(List<org.pentaho.di.core.database.DatabaseMeta> databases, String jobName, org.pentaho.di.repository.RepositoryDirectory repdir, String directory, org.pentaho.di.core.database.DatabaseMeta sourceDbInfo, org.pentaho.di.core.database.DatabaseMeta targetDbInfo, String[] tables) void
Create a job that extracts tables & data from a database.void
runFile()
void
boolean
boolean
boolean
boolean
saveAsNew
(org.pentaho.di.core.EngineMetaInterface meta, boolean export, String providerFilter, String fileFilterType, String command) boolean
saveFile()
boolean
saveFile
(boolean export) boolean
boolean
saveFileAs
(org.pentaho.di.core.EngineMetaInterface meta) boolean
saveJobRepository
(org.pentaho.di.job.JobMeta jobMeta) boolean
saveJobRepository
(org.pentaho.di.job.JobMeta jobMeta, boolean ask_name) boolean
boolean
void
boolean
saveToFile
(org.pentaho.di.core.EngineMetaInterface meta) boolean
saveToFile
(org.pentaho.di.core.EngineMetaInterface meta, boolean export) boolean
saveToRepository
(org.pentaho.di.core.EngineMetaInterface meta) boolean
saveToRepository
(org.pentaho.di.core.EngineMetaInterface meta, boolean ask_name) boolean
saveToRepositoryCheckSecurity
(org.pentaho.di.core.EngineMetaInterface meta) boolean
saveToRepositoryConfirmed
(org.pentaho.di.core.EngineMetaInterface meta) boolean
saveXMLFile
(boolean export, String fileFilterType, String command) boolean
saveXMLFile
(org.pentaho.di.core.EngineMetaInterface meta, boolean export) boolean
saveXMLFile
(org.pentaho.di.core.EngineMetaInterface meta, String filename, boolean export) boolean
boolean
saveXMLFileToVfs
(org.pentaho.di.core.EngineMetaInterface meta) void
Search the transformation meta-data.protected org.eclipse.swt.widgets.TreeItem
searchMouseOverTreeItem
(org.eclipse.swt.widgets.TreeItem[] treeItems, int x, int y) void
sendTransformationXMLToSlaveServer
(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.TransExecutionConfiguration executionConfiguration) Sends transformation to slave servervoid
setArguments
(String[] arguments) void
setBowl
(org.pentaho.di.core.bowl.Bowl bowl) void
setCoreObjectsState
(int state) Set the core object state.void
boolean
void
setDestroy
(boolean destroy) void
setJobExecutionConfiguration
(org.pentaho.di.job.JobExecutionConfiguration jobExecutionConfiguration) void
setJobMetaVariables
(org.pentaho.di.job.JobMeta jobMeta) Set previously defined variables (set variables dialog) on the specified jobvoid
setLastFileOpened
(String inLastFileOpened) void
setLog()
void
setMainToolbarVisible
(boolean visible) Hides or shows the main toolbarvoid
Set the method which can open the marketplace.void
setMenuBarVisible
(boolean visible) void
setMetaStoreSupplier
(Supplier<org.pentaho.metastore.api.IMetaStore> metaStoreSupplier) void
void
setParametersAsVariablesInUI
(org.pentaho.di.core.parameters.NamedParams namedParameters, org.pentaho.di.core.variables.VariableSpace space) void
setRepository
(org.pentaho.di.repository.Repository rep) void
setRepositoryName
(String repoName) void
void
setStopped
(boolean stopped) void
setTransDebugExecutionConfiguration
(org.pentaho.di.trans.TransExecutionConfiguration debugExecutionConfiguration) void
setTransExecutionConfiguration
(org.pentaho.di.trans.TransExecutionConfiguration executionConfiguration) void
setTransMetaVariables
(org.pentaho.di.trans.TransMeta transMeta) Set previously defined variables (set variables dialog) on the specified transformationvoid
setTransPreviewExecutionConfiguration
(org.pentaho.di.trans.TransExecutionConfiguration previewExecutionConfiguration) void
setUndoMenu
(org.pentaho.di.core.gui.UndoInterface undoInterface) Sets the text and enabled settings for the undo and redo menu itemsvoid
boolean
void
setXulDomContainer
(org.pentaho.ui.xul.XulDomContainer arg0) void
shareObject
(String id) protected void
shareObject
(org.pentaho.di.shared.SharedObjectInterface sharedObject) void
void
void
void
void
void
void
showLastImpactAnalyses
(org.pentaho.di.trans.TransMeta transMeta) void
Show the remarks of the last transformation check that was run.void
void
Show a plugin browservoid
If you click in the tree, you might want to show the corresponding window.void
void
void
sleep()
void
sortHops()
void
void
start()
void
start
(org.pentaho.di.pan.CommandLineOption[] options) boolean
boolean
boolean
boolean
tabCloseSelected
(boolean force) void
tabDeselected
(TabItem item) void
tabSelected
(TabItem item) void
toClipboard
(String clipText) toString()
void
void
undoAction
(org.pentaho.di.core.gui.UndoInterface undoInterface) protected void
unShareObject
(org.pentaho.di.shared.SharedObjectInterface sharedObject) void
void
void
verifyCopyDistribute
(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.step.StepMeta fr) void
void
zoomIn()
void
zoomOut()
Methods inherited from class org.eclipse.jface.window.ApplicationWindow
addCoolBar, addMenuBar, addStatusLine, addToolBar, canHandleShellCloseEvent, close, configureShell, coolBarChildrenExist, createCoolBarControl, createCoolBarManager, createCoolBarManager2, createMenuManager, createStatusLine, createStatusLineManager, createToolBarControl, createToolBarManager, createToolBarManager2, createTrimWidgets, getCoolBarControl, getCoolBarManager, getCoolBarManager2, getFont, getLayout, getMenuBarManager, getSeperator1, getStatusLineManager, getSymbolicFontName, getToolBarControl, getToolBarManager, getToolBarManager2, run, setStatus, showTopSeperator, toolBarChildrenExist
Methods inherited from class org.eclipse.jface.window.Window
constrainShellSize, create, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getInitialLocation, getInitialSize, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, initializeBounds, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
-
Field Details
-
CONNECTION
Deprecated.The connection name is in the URI since full "pvfs" paths are being used.Separate VFS connection name variable is no longer needed.- See Also:
-
SPOON_DIALOG_PROMPT_OVERWRITE_FILE
- See Also:
-
MESSAGE
- See Also:
-
SPOON_DIALOG_PROMPT_OVERWRITE_FILE_TITLE
- See Also:
-
loggingObject
public static final org.pentaho.di.core.logging.LoggingObjectInterface loggingObject -
STRING_TRANSFORMATIONS
-
STRING_JOBS
-
STRING_BUILDING_BLOCKS
-
STRING_ELEMENTS
-
STRING_CONNECTIONS
-
STRING_STEPS
-
STRING_JOB_ENTRIES
-
STRING_HOPS
-
STRING_PARTITIONS
-
STRING_SLAVES
-
STRING_CLUSTERS
-
STRING_TRANS_BASE
-
STRING_HISTORY
-
STRING_TRANS_NO_NAME
-
STRING_JOB_NO_NAME
-
STRING_TRANSFORMATION
-
STRING_JOB
-
APP_NAME
-
XML_TAG_TRANSFORMATION_STEPS
- See Also:
-
XML_TAG_JOB_JOB_ENTRIES
- See Also:
-
MESSAGE_DIALOG_WITH_TOGGLE_YES_BUTTON_ID
public static final int MESSAGE_DIALOG_WITH_TOGGLE_YES_BUTTON_ID- See Also:
-
MESSAGE_DIALOG_WITH_TOGGLE_NO_BUTTON_ID
public static final int MESSAGE_DIALOG_WITH_TOGGLE_NO_BUTTON_ID- See Also:
-
MESSAGE_DIALOG_WITH_TOGGLE_CUSTOM_DISTRIBUTION_BUTTON_ID
public static final int MESSAGE_DIALOG_WITH_TOGGLE_CUSTOM_DISTRIBUTION_BUTTON_ID- See Also:
-
tabfolder
-
delegates
-
variables
public org.pentaho.di.core.RowMetaAndData variables -
props
-
rep
public org.pentaho.di.repository.Repository rep -
capabilities
public org.pentaho.di.repository.RepositoryCapabilities capabilities -
DOCUMENTATION_URL
-
REFRESH_SELECTION_EXTENSION
- See Also:
-
EDIT_SELECTION_EXTENSION
- See Also:
-
fileExtensionMap
-
lastDirOpened
We can use this to set a default filter path in the open and save dialogs -
XUL_FILE_MAIN
- See Also:
-
startupPerspective
-
selectionFilter
public org.eclipse.swt.widgets.Text selectionFilter -
showTrans
public boolean showTrans -
showJob
public boolean showJob -
changeSupport
-
-
Constructor Details
-
Spoon
public Spoon() -
Spoon
public Spoon(org.pentaho.di.repository.Repository rep)
-
-
Method Details
-
main
This is the main procedure for Spoon.- Parameters:
a
- Arguments are available in the "Get System Info" step.- Throws:
org.pentaho.di.core.exception.KettleException
-
init
public void init(org.pentaho.di.trans.TransMeta ti) -
getMainSpoonContainer
public org.pentaho.ui.xul.XulDomContainer getMainSpoonContainer() -
loadPerspective
-
loadPerspective
public void loadPerspective(int pos) -
getInstance
-
getVfsFileChooserDialog
public org.pentaho.vfs.ui.VfsFileChooserDialog getVfsFileChooserDialog(org.apache.commons.vfs2.FileObject rootFile, org.apache.commons.vfs2.FileObject initialFile) -
closeFile
public boolean closeFile() -
closeFile
public boolean closeFile(boolean force) -
closeAllFiles
public boolean closeAllFiles() -
closeAllFiles
public boolean closeAllFiles(boolean force) -
closeAllJobsAndTransformations
public boolean closeAllJobsAndTransformations() -
closeAllJobsAndTransformations
public boolean closeAllJobsAndTransformations(boolean force) Prompt user to close all open Jobs & Transformations if they have execute permissions. If they don't have execute permission then warn user if they really want to disconnect from repository. If yes, close all tabs.- Returns:
- If user agrees with closing of tabs then return true so we can disconnect from the repo.
-
updateTreeForActiveAbstractMetas
public void updateTreeForActiveAbstractMetas() -
clearRepositoryDirectory
public void clearRepositoryDirectory()PDI-18997 - clear specific repository directory when connect and or disconnect from server -
searchMetaData
public void searchMetaData()Search the transformation meta-data. -
showArguments
public void showArguments() -
setVariables
public void setVariables() -
applyVariables
public void applyVariables() -
applyVariableToAllLoadedObjects
-
showVariables
public void showVariables() -
openSpoon
public void openSpoon() -
readAndDispatch
public boolean readAndDispatch() -
isStopped
public boolean isStopped()- Returns:
- check whether or not the application was stopped.
-
setStopped
public void setStopped(boolean stopped) - Parameters:
stopped
- True to stop this application.
-
setDestroy
public void setDestroy(boolean destroy) - Parameters:
destroy
- Whether or not to destroy the display.
-
doDestroy
public boolean doDestroy()- Returns:
- Returns whether or not we should destroy the display.
-
setArguments
- Parameters:
arguments
- The arguments to set.
-
getArguments
- Returns:
- Returns the arguments.
-
dispose
public void dispose() -
isDisposed
public boolean isDisposed() -
sleep
public void sleep() -
undoAction
public void undoAction() -
redoAction
public void redoAction() -
copySteps
public void copySteps()It's called copySteps, but the job entries also arrive at this location -
copyJobentries
public void copyJobentries() -
copy
public void copy() -
copyFile
public void copyFile() -
cut
public void cut() -
removeMenuItem
-
disableMenuItem
-
enableMenuItem
-
createPopupMenus
public void createPopupMenus() -
executeTransformation
public void executeTransformation() -
previewTransformation
public void previewTransformation() -
debugTransformation
public void debugTransformation() -
checkTrans
public void checkTrans() -
analyseImpact
public void analyseImpact() -
showLastImpactAnalyses
public void showLastImpactAnalyses() -
showLastTransPreview
public void showLastTransPreview() -
showExecutionResults
public void showExecutionResults() -
isExecutionResultsPaneVisible
public boolean isExecutionResultsPaneVisible() -
copyLogSelectedText
public void copyLogSelectedText(org.eclipse.swt.custom.StyledText text) -
copyTransformation
public void copyTransformation() -
copyTransformationImage
public void copyTransformationImage() -
editTransformationProperties
public boolean editTransformationProperties() -
editProperties
public boolean editProperties() -
executeJob
public void executeJob() -
copyJob
public void copyJob() -
showWelcomePage
public void showWelcomePage() -
showDocumentMap
public void showDocumentMap() -
addMenuLast
public void addMenuLast() -
lastRepoFileSelect
-
lastFileSelect
-
lastFileSelect
public void lastFileSelect(org.pentaho.di.core.LastUsedFile lastUsedFile) -
registerViewTabPane
public void registerViewTabPane(TreePaneExtension extension) throws org.pentaho.di.core.exception.KettleException Add a pane to the view tab- Throws:
org.pentaho.di.core.exception.KettleException
-
clearSearchFilter
public void clearSearchFilter() -
addDefaultKeyListeners
public void addDefaultKeyListeners(org.eclipse.swt.widgets.Control control) -
setViewMode
public boolean setViewMode() -
setDesignMode
public boolean setDesignMode() -
addCoreObjectsTree
public void addCoreObjectsTree() -
searchMouseOverTreeItem
protected org.eclipse.swt.widgets.TreeItem searchMouseOverTreeItem(org.eclipse.swt.widgets.TreeItem[] treeItems, int x, int y) -
refreshCoreObjects
public void refreshCoreObjects() -
getTreeObjects
- Returns:
- The object that is selected in the tree or null if we couldn't figure it out. (titles etc. == null)
-
hideToolTips
public void hideToolTips() -
showSelection
public void showSelection()If you click in the tree, you might want to show the corresponding window. -
newHop
public void newHop() -
sortHops
public void sortHops() -
newDatabasePartitioningSchema
public void newDatabasePartitioningSchema() -
newClusteringSchema
public void newClusteringSchema() -
newSlaveServer
public void newSlaveServer() -
editTransformationPropertiesPopup
public void editTransformationPropertiesPopup() -
addTransLog
public void addTransLog() -
addTransHistory
public void addTransHistory() -
editJobProperties
-
editJobPropertiesPopup
public void editJobPropertiesPopup() -
addJobLog
public void addJobLog() -
addJobHistory
public void addJobHistory() -
newStep
public void newStep() -
editConnection
public void editConnection() -
dupeConnection
public void dupeConnection() -
clipConnection
public void clipConnection() -
delConnection
public void delConnection() -
sqlConnection
public void sqlConnection() -
clearDBCache
-
exploreDatabase
public void exploreDatabase() -
exploreDB
public void exploreDB() -
editStep
public void editStep() -
dupeStep
public void dupeStep() -
delStep
public void delStep() -
helpStep
public void helpStep() -
editJobEntry
public void editJobEntry() -
dupeJobEntry
public void dupeJobEntry() -
deleteJobEntryCopies
public void deleteJobEntryCopies() -
helpJobEntry
public void helpJobEntry() -
editHop
public void editHop() -
delHop
public void delHop() -
editPartitionSchema
public void editPartitionSchema() -
delPartitionSchema
public void delPartitionSchema() -
editClusterSchema
public void editClusterSchema() -
delClusterSchema
public void delClusterSchema() -
monitorClusterSchema
public void monitorClusterSchema() throws org.pentaho.di.core.exception.KettleException- Throws:
org.pentaho.di.core.exception.KettleException
-
editSlaveServer
public void editSlaveServer() -
delSlaveServer
public void delSlaveServer() -
addSpoonSlave
public void addSpoonSlave() -
monitorClusterSchema
protected void monitorClusterSchema(org.pentaho.di.cluster.ClusterSchema clusterSchema) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-
tabDeselected
- Specified by:
tabDeselected
in interfaceTabListener
-
tabCloseSelected
public boolean tabCloseSelected() -
tabCloseSelected
public boolean tabCloseSelected(boolean force) -
tabClose
- Specified by:
tabClose
in interfaceTabListener
-
tabClose
-
getTabSet
-
tabSelected
- Specified by:
tabSelected
in interfaceTabListener
-
getRepositoryName
-
getUsername
-
pasteXML
public void pasteXML(org.pentaho.di.trans.TransMeta transMeta, String clipcontent, org.pentaho.di.core.gui.Point loc) -
copySelected
-
editHop
public void editHop(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.TransHopMeta transHopMeta) -
delHop
public void delHop(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.TransHopMeta transHopMeta) -
newHop
public void newHop(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.step.StepMeta fr, org.pentaho.di.trans.step.StepMeta to) -
newHop
public void newHop(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.TransHopMeta transHopMeta) -
checkIfHopAlreadyExists
public boolean checkIfHopAlreadyExists(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.TransHopMeta newHop) - Parameters:
transMeta
- transformation's metanewHop
- hop to be checked- Returns:
- true when the hop was added, false if there was an error
-
performNewTransHopChecks
public boolean performNewTransHopChecks(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.TransHopMeta newHop) - Parameters:
transMeta
- transformation's metanewHop
- hop to be checked- Returns:
- true when the hop was added, false if there was an error
-
verifyCopyDistribute
public void verifyCopyDistribute(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.step.StepMeta fr) -
newHop
public void newHop(org.pentaho.di.trans.TransMeta transMeta) -
openRepository
public void openRepository() -
exploreRepository
public void exploreRepository() -
loadObjectFromRepository
public void loadObjectFromRepository(org.pentaho.di.repository.ObjectId objectId, org.pentaho.di.repository.RepositoryObjectType objectType, String revision) throws Exception - Throws:
Exception
-
loadObjectFromRepository
public void loadObjectFromRepository(String objName, org.pentaho.di.repository.RepositoryObjectType objectType, org.pentaho.di.repository.RepositoryDirectoryInterface repDir, String versionLabel) throws Exception - Throws:
Exception
-
closeRepository
public void closeRepository() -
openFile
public void openFile() -
openFile
public void openFile(boolean importfile) -
getLastFileOpened
-
setLastFileOpened
-
displayCmdLine
public void displayCmdLine() -
createCmdLineFile
public void createCmdLineFile() -
openFileVFSFile
public void openFileVFSFile() -
openFileVFSFileNew
public void openFileVFSFileNew() -
importFileFromXML
Used when importing content from an xml file. We only expect to import the content from local or from a vfs store- Throws:
Exception
-
openFileNew
- Throws:
Exception
-
openFileNew
public void openFileNew(String providerFilter, String fileFilterType, boolean importFile, String command) throws Exception - Throws:
Exception
-
saveAsNew
public boolean saveAsNew() -
saveAsNew
public boolean saveAsNew(org.pentaho.di.core.EngineMetaInterface inputMeta, boolean export, String command) -
saveAsNew
-
addFileListener
-
getFileType
-
openFile
-
openFile
public void openFile(String filename, org.pentaho.di.core.variables.VariableSpace variableSpace, boolean importFile) -
setMarketMethod
Set the method which can open the marketplace. -
openMarketplace
public void openMarketplace()If available, this method will open the marketplace. -
handleMissingPluginsExceptionWithMarketplace
public void handleMissingPluginsExceptionWithMarketplace(org.pentaho.di.core.exception.KettleMissingPluginsException missingPluginsException) Shows a dialog listing the missing plugins, asking if you want to go into the marketplace- Parameters:
missingPluginsException
- The missing plugins exception
-
getProperties
-
newFileDropDown
public void newFileDropDown() -
newTransFile
public void newTransFile() -
newJobFile
public void newJobFile() -
setTransMetaVariables
public void setTransMetaVariables(org.pentaho.di.trans.TransMeta transMeta) Set previously defined variables (set variables dialog) on the specified transformation- Parameters:
transMeta
- transformation's meta
-
setJobMetaVariables
public void setJobMetaVariables(org.pentaho.di.job.JobMeta jobMeta) Set previously defined variables (set variables dialog) on the specified job- Parameters:
jobMeta
- job's meta
-
loadRepositoryObjects
public void loadRepositoryObjects(org.pentaho.di.trans.TransMeta transMeta) Deprecated.is this ever used? functionality seems covered in loadSessionInformation -
promptForSave
public boolean promptForSave() throws org.pentaho.di.core.exception.KettleException- Throws:
org.pentaho.di.core.exception.KettleException
-
quitFile
public boolean quitFile(boolean canCancel) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-
saveFile
public boolean saveFile() -
saveFile
public boolean saveFile(boolean export) -
saveToFile
public boolean saveToFile(org.pentaho.di.core.EngineMetaInterface meta) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-
saveToFile
public boolean saveToFile(org.pentaho.di.core.EngineMetaInterface meta, boolean export) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-
saveToRepository
public boolean saveToRepository(org.pentaho.di.core.EngineMetaInterface meta) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-
saveToRepository
public boolean saveToRepository(org.pentaho.di.core.EngineMetaInterface meta, boolean ask_name) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-
saveToRepositoryCheckSecurity
public boolean saveToRepositoryCheckSecurity(org.pentaho.di.core.EngineMetaInterface meta) -
saveToRepositoryConfirmed
public boolean saveToRepositoryConfirmed(org.pentaho.di.core.EngineMetaInterface meta) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-
saveJobRepository
public boolean saveJobRepository(org.pentaho.di.job.JobMeta jobMeta) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-
saveJobRepository
public boolean saveJobRepository(org.pentaho.di.job.JobMeta jobMeta, boolean ask_name) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-
saveFileAs
public boolean saveFileAs() throws org.pentaho.di.core.exception.KettleException- Throws:
org.pentaho.di.core.exception.KettleException
-
saveFileAs
public boolean saveFileAs(org.pentaho.di.core.EngineMetaInterface meta) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-
exportXMLFile
public boolean exportXMLFile() -
exportAllXMLFile
public void exportAllXMLFile()Export this job or transformation including all depending resources to a single zip file. -
exportAllFileRepository
public void exportAllFileRepository()Export this job or transformation including all depending resources to a single ZIP file containing a file repository. -
exportRepositoryAll
public void exportRepositoryAll() -
exportRepositoryDirectory
public boolean exportRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectory directoryToExport) - Parameters:
directoryToExport
- set to null to export the complete repository- Returns:
- false if we want to stop processing. true if we need to continue.
-
getExportFileDialog
public org.eclipse.swt.widgets.FileDialog getExportFileDialog()local method to be able to use Spoon localization messages.- Returns:
-
importDirectoryToRepository
public void importDirectoryToRepository() -
saveXMLFile
-
saveXMLFile
public boolean saveXMLFile(org.pentaho.di.core.EngineMetaInterface meta, boolean export) -
saveXMLFile
public boolean saveXMLFile(org.pentaho.di.core.EngineMetaInterface meta, String filename, boolean export) -
saveXMLFileToVfs
public boolean saveXMLFileToVfs() -
saveXMLFileToVfs
public boolean saveXMLFileToVfs(org.pentaho.di.core.EngineMetaInterface meta) -
save
-
saveMeta
-
saveMeta
public boolean saveMeta(org.pentaho.di.core.EngineMetaInterface meta, String filename, boolean export) -
helpAbout
public void helpAbout() -
showPluginInfo
public void showPluginInfo()Show a plugin browser -
editUnselectAll
public void editUnselectAll() -
editSelectAll
public void editSelectAll() -
editOptions
public void editOptions() -
editKettlePropertiesFile
public void editKettlePropertiesFile() -
getTreeManager
-
refreshTree
public void refreshTree(org.pentaho.di.base.AbstractMeta abstractMeta) -
refreshTree
-
refreshTree
public void refreshTree()Refresh the object selection tree (on the left of the screen) -
handleRepositoryLost
public void handleRepositoryLost(org.pentaho.di.repository.KettleRepositoryLostException e) -
getPartitionSchemasNames
public List<String> getPartitionSchemasNames(org.pentaho.di.trans.TransMeta transMeta) throws org.pentaho.di.core.exception.KettleException - Specified by:
getPartitionSchemasNames
in interfacePartitionSchemasProvider
- Throws:
org.pentaho.di.core.exception.KettleException
-
getPartitionSchemas
public List<org.pentaho.di.partition.PartitionSchema> getPartitionSchemas(org.pentaho.di.trans.TransMeta transMeta) throws org.pentaho.di.core.exception.KettleException - Specified by:
getPartitionSchemas
in interfacePartitionSchemasProvider
- Throws:
org.pentaho.di.core.exception.KettleException
-
getActiveTabText
-
refreshGraph
public void refreshGraph() -
newStep
public org.pentaho.di.trans.step.StepMeta newStep(org.pentaho.di.trans.TransMeta transMeta) -
newStep
public org.pentaho.di.trans.step.StepMeta newStep(org.pentaho.di.trans.TransMeta transMeta, boolean openit, boolean rename) -
newStep
public org.pentaho.di.trans.step.StepMeta newStep(org.pentaho.di.trans.TransMeta transMeta, String name, String description, boolean openit, boolean rename) Allocate new step, optionally open and rename it.- Parameters:
name
- Name of the new stepdescription
- Description of the type of stepopenit
- Open the dialog for this step?rename
- Rename this step?- Returns:
- The newly created StepMeta object.
-
newStep
public org.pentaho.di.trans.step.StepMeta newStep(org.pentaho.di.trans.TransMeta transMeta, String id, String name, String description, boolean openit, boolean rename) Allocate new step, optionally open and rename it.- Parameters:
id
- Id of the new stepname
- Name of the new stepdescription
- Description of the type of stepopenit
- Open the dialog for this step?rename
- Rename this step?- Returns:
- The newly created StepMeta object.
-
setShellText
public void setShellText() -
enableMenus
public void enableMenus() -
addSpoonMenuController
-
removeSpoonMenuController
-
removeSpoonMenuController
-
isTabsChanged
public boolean isTabsChanged()Check to see if any jobs or transformations are dirty- Returns:
- true if any of the open jobs or trans are marked dirty
-
printFile
public void printFile() -
getActiveTransGraph
-
getActiveJobGraph
-
getActiveMeta
public org.pentaho.di.core.EngineMetaInterface getActiveMeta() -
getActiveTabitem
-
getActiveTransformation
public org.pentaho.di.trans.TransMeta getActiveTransformation()- Returns:
- The active TransMeta object by looking at the selected TransGraph, TransLog, TransHist If nothing valueable is selected, we return null
-
getActiveJob
public org.pentaho.di.job.JobMeta getActiveJob()- Returns:
- The active JobMeta object by looking at the selected JobGraph, JobLog, JobHist If nothing valueable is selected, we return null
-
getActiveUndoInterface
public org.pentaho.di.core.gui.UndoInterface getActiveUndoInterface() -
findTransformation
-
findJob
-
getLoadedTransformations
public org.pentaho.di.trans.TransMeta[] getLoadedTransformations() -
getLoadedJobs
public org.pentaho.di.job.JobMeta[] getLoadedJobs() -
saveSettings
public void saveSettings() -
loadSettings
public void loadSettings() -
changeLooks
public void changeLooks() -
undoAction
public void undoAction(org.pentaho.di.core.gui.UndoInterface undoInterface) -
redoAction
public void redoAction(org.pentaho.di.core.gui.UndoInterface undoInterface) -
setUndoMenu
public void setUndoMenu(org.pentaho.di.core.gui.UndoInterface undoInterface) Sets the text and enabled settings for the undo and redo menu items- Parameters:
undoInterface
- the object which holds the undo/redo information
-
addUndoNew
public void addUndoNew(org.pentaho.di.core.gui.UndoInterface undoInterface, Object[] obj, int[] position) -
addUndoNew
public void addUndoNew(org.pentaho.di.core.gui.UndoInterface undoInterface, Object[] obj, int[] position, boolean nextAlso) -
addUndoDelete
public void addUndoDelete(org.pentaho.di.core.gui.UndoInterface undoInterface, Object[] obj, int[] position) -
addUndoDelete
public void addUndoDelete(org.pentaho.di.core.gui.UndoInterface undoInterface, Object[] obj, int[] position, boolean nextAlso) -
addUndoPosition
public void addUndoPosition(org.pentaho.di.core.gui.UndoInterface undoInterface, Object[] obj, int[] pos, org.pentaho.di.core.gui.Point[] prev, org.pentaho.di.core.gui.Point[] curr) - Specified by:
addUndoPosition
in interfaceorg.pentaho.di.core.AddUndoPositionInterface
-
addUndoChange
-
addUndoChange
-
checkTrans
public void checkTrans(org.pentaho.di.trans.TransMeta transMeta) Checks *all* the steps in the transformation, puts the result in remarks list -
checkTrans
public void checkTrans(org.pentaho.di.trans.TransMeta transMeta, boolean only_selected) Check the steps in a transformation- Parameters:
only_selected
- True: Check only the selected steps...
-
showLastTransCheck
public void showLastTransCheck()Show the remarks of the last transformation check that was run.- See Also:
-
analyseImpact
public void analyseImpact(org.pentaho.di.trans.TransMeta transMeta) -
showLastImpactAnalyses
public void showLastImpactAnalyses(org.pentaho.di.trans.TransMeta transMeta) -
toClipboard
-
fromClipboard
-
pasteTransformation
public void pasteTransformation()Paste transformation from the clipboard... -
pasteJob
public void pasteJob()Paste job from the clipboard... -
copyTransformation
public void copyTransformation(org.pentaho.di.trans.TransMeta transMeta) -
copyJob
public void copyJob(org.pentaho.di.job.JobMeta jobMeta) -
copyTransformationImage
public void copyTransformationImage(org.pentaho.di.trans.TransMeta transMeta) -
getActiveHasDatabasesInterface
public org.pentaho.di.trans.HasDatabasesInterface getActiveHasDatabasesInterface()- Returns:
- Either a TransMeta or JobMeta object
-
getActiveHasSlaveServersInterface
public org.pentaho.di.trans.HasSlaveServersInterface getActiveHasSlaveServersInterface() -
createDatabaseWizard
public void createDatabaseWizard()Shows a wizard that creates a new database connection... -
getActiveDatabases
-
copyTableWizard
public void copyTableWizard()Create a transformation that extracts tables & data from a database.0) Select the database to rip
1) Select the table in the database to copy
2) Select the database to dump to
3) Select the repository directory in which it will end up
4) Select a name for the new transformation
6) Create 1 transformation for the selected table
-
toString
-
handleStartOptions
public void handleStartOptions(org.pentaho.di.pan.CommandLineOption[] options) -
start
public void start(org.pentaho.di.pan.CommandLineOption[] options) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-
getCommandLineOption
public static org.pentaho.di.pan.CommandLineOption getCommandLineOption(org.pentaho.di.pan.CommandLineOption[] options, String opt) -
getCommandLineArgs
-
loadLastUsedFileAtStartup
public void loadLastUsedFileAtStartup(org.pentaho.di.core.LastUsedFile lastUsedFile, String repositoryName) throws org.pentaho.di.core.exception.KettleException Loads theLastUsedFile
residing the theRepository
withrepoName
without "tracking it" - meaning that it is not explicitly added to the "recent" file collection, since it is expected to already exist in this collections.- Parameters:
lastUsedFile
- theLastUsedFile
being loadedrepositoryName
- the name of theRepository
containing theLastUsedFile
- Throws:
org.pentaho.di.core.exception.KettleException
-
loadLastUsedFile
public void loadLastUsedFile(org.pentaho.di.core.LastUsedFile lastUsedFile, String repositoryName) throws org.pentaho.di.core.exception.KettleException Loads theLastUsedFile
residing the theRepository
withrepoName
, and "tracks" it by adding it to the "recent" files collection.- Parameters:
lastUsedFile
- theLastUsedFile
being loadedrepositoryName
- the name of theRepository
containing theLastUsedFile
- Throws:
org.pentaho.di.core.exception.KettleException
-
recentRepoFileExists
Returns true if theLastUsedFile
at the givenindex
within thePropsUI.getLastUsedRepoFiles()
collection exists within the givenrepo
Repository
, and false otherwise.- Parameters:
repo
- theRepository
containing the fileindexStr
- the String index of the file within the last used repo file collection- Returns:
- true if the
LastUsedFile
at the givenindex
within thePropsUI.getLastUsedRepoFiles()
collection exists within the givenrepo
Repository
, and false otherwise - Throws:
org.pentaho.di.core.exception.KettleException
-
getLastUsedRepoFile
-
generateFieldMapping
public void generateFieldMapping(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.step.StepMeta stepMeta) Create a new SelectValues step in between this step and the previous. If the previous fields are not there, no mapping can be made, same with the required fields.- Parameters:
stepMeta
- The target step to map against.
-
isDefinedSchemaExist
-
editPartitioning
public void editPartitioning(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.step.StepMeta stepMeta) -
editClustering
public void editClustering(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.step.StepMeta stepMeta) Select a clustering schema for this step.- Parameters:
stepMeta
- The step to set the clustering schema for.
-
editClustering
public void editClustering(org.pentaho.di.trans.TransMeta transMeta, List<org.pentaho.di.trans.step.StepMeta> stepMetas) Select a clustering schema for this step.- Parameters:
stepMetas
- The steps (at least one!) to set the clustering schema for.
-
createKettleArchive
public void createKettleArchive(org.pentaho.di.trans.TransMeta transMeta) -
newPartitioningSchema
public void newPartitioningSchema(org.pentaho.di.trans.TransMeta transMeta) This creates a new partitioning schema, edits it and adds it to the transformation metadata if its name is not a duplicate of any of existing -
newClusteringSchema
public void newClusteringSchema(org.pentaho.di.trans.TransMeta transMeta) This creates a new clustering schema, edits it and adds it to the transformation metadata if its name is not a duplicate of any of existing -
newSlaveServer
public void newSlaveServer(org.pentaho.di.trans.HasSlaveServersInterface hasSlaveServersInterface) This creates a slave server, edits it and adds it to the transformation metadata -
delSlaveServer
public void delSlaveServer(org.pentaho.di.trans.HasSlaveServersInterface hasSlaveServersInterface, org.pentaho.di.cluster.SlaveServer slaveServer) -
editSlaveServer
protected void editSlaveServer(org.pentaho.di.cluster.SlaveServer slaveServer) -
sendTransformationXMLToSlaveServer
public void sendTransformationXMLToSlaveServer(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.TransExecutionConfiguration executionConfiguration) Sends transformation to slave server- Parameters:
executionConfiguration
-
-
runFile
public void runFile() -
runOptionsFile
public void runOptionsFile() -
replayTransformation
public void replayTransformation() -
previewFile
public void previewFile() -
debugFile
public void debugFile() -
executeFile
public void executeFile(boolean local, boolean remote, boolean cluster, boolean preview, boolean debug, Date replayDate, boolean safe, boolean show) -
executeTransformation
public void executeTransformation(org.pentaho.di.trans.TransMeta transMeta, boolean local, boolean remote, boolean cluster, boolean preview, boolean debug, Date replayDate, boolean safe, org.pentaho.di.core.logging.LogLevel logLevel) -
executeJob
-
addSpoonSlave
public void addSpoonSlave(org.pentaho.di.cluster.SlaveServer slaveServer) -
addJobHistory
public void addJobHistory(org.pentaho.di.job.JobMeta jobMeta, boolean select) -
paste
public void paste() -
newJobEntry
public org.pentaho.di.job.entry.JobEntryCopy newJobEntry(org.pentaho.di.job.JobMeta jobMeta, String typeDesc, boolean openit) -
getJobEntryDialog
public org.pentaho.di.job.entry.JobEntryDialogInterface getJobEntryDialog(org.pentaho.di.job.entry.JobEntryInterface jei, org.pentaho.di.job.JobMeta jobMeta) -
getStepEntryDialog
public org.pentaho.di.trans.step.StepDialogInterface getStepEntryDialog(org.pentaho.di.trans.step.StepMetaInterface stepMeta, org.pentaho.di.trans.TransMeta transMeta, String stepName) -
editJobEntry
public void editJobEntry(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.job.entry.JobEntryCopy je) -
deleteJobEntryCopies
public void deleteJobEntryCopies(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.job.entry.JobEntryCopy[] jobEntry) -
deleteJobEntryCopies
public void deleteJobEntryCopies(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.job.entry.JobEntryCopy jobEntry) -
pasteXML
public void pasteXML(org.pentaho.di.job.JobMeta jobMeta, String clipContent, org.pentaho.di.core.gui.Point loc) -
newJobHop
public void newJobHop(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.job.entry.JobEntryCopy fr, org.pentaho.di.job.entry.JobEntryCopy to) -
ripDBWizard
public void ripDBWizard()Create a job that extracts tables & data from a database.0) Select the database to rip
1) Select the tables in the database to rip
2) Select the database to dump to
3) Select the repository directory in which it will end up
4) Select a name for the new job
5) Create an empty job with the selected name.
6) Create 1 transformation for every selected table
7) add every created transformation to the job & evaluate
-
ripDB
public org.pentaho.di.job.JobMeta ripDB(List<org.pentaho.di.core.database.DatabaseMeta> databases, String jobName, org.pentaho.di.repository.RepositoryDirectory repdir, String directory, org.pentaho.di.core.database.DatabaseMeta sourceDbInfo, org.pentaho.di.core.database.DatabaseMeta targetDbInfo, String[] tables) -
setCoreObjectsState
public void setCoreObjectsState(int state) Set the core object state.- Parameters:
state
- state to set
-
getCoreObjectsState
public int getCoreObjectsState()Get the core object state.- Returns:
- state.
-
getLog
public org.pentaho.di.core.logging.LogChannelInterface getLog() -
getRepository
public org.pentaho.di.repository.Repository getRepository() -
setRepository
public void setRepository(org.pentaho.di.repository.Repository rep) -
setRepositoryName
-
addMenuListener
-
addTransGraph
public void addTransGraph(org.pentaho.di.trans.TransMeta transMeta) - Specified by:
addTransGraph
in interfaceorg.pentaho.di.core.gui.SpoonInterface
-
addJobGraph
public void addJobGraph(org.pentaho.di.job.JobMeta jobMeta) - Specified by:
addJobGraph
in interfaceorg.pentaho.di.core.gui.SpoonInterface
-
addSpoonBrowser
-
addSpoonBrowser
-
addSpoonBrowser
-
addSpoonBrowser
-
addSpoonBrowser
- Specified by:
addSpoonBrowser
in interfaceorg.pentaho.di.core.gui.SpoonInterface
-
getTransExecutionConfiguration
public org.pentaho.di.trans.TransExecutionConfiguration getTransExecutionConfiguration() -
editStepErrorHandling
public void editStepErrorHandling(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.step.StepMeta stepMeta) -
editStep
public String editStep(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.step.StepMeta stepMeta) -
dupeStep
public void dupeStep(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.step.StepMeta stepMeta) -
delSteps
public void delSteps(org.pentaho.di.trans.TransMeta transformation, org.pentaho.di.trans.step.StepMeta[] steps) -
delStep
public void delStep(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.step.StepMeta stepMeta) -
makeTabName
public String makeTabName(org.pentaho.di.core.EngineMetaInterface transMeta, boolean showingLocation) -
newConnection
public void newConnection() -
getSQL
public void getSQL() -
overwritePrompt
- Specified by:
overwritePrompt
in interfaceorg.pentaho.di.core.gui.OverwritePrompter
-
messageDialogWithToggle
public Object[] messageDialogWithToggle(String dialogTitle, Object image, String message, int dialogImageType, String[] buttonLabels, int defaultIndex, String toggleMessage, boolean toggleState) - Specified by:
messageDialogWithToggle
in interfaceorg.pentaho.di.core.gui.SpoonInterface
-
messageBox
- Specified by:
messageBox
in interfaceorg.pentaho.di.core.gui.SpoonInterface
-
getTransPreviewExecutionConfiguration
public org.pentaho.di.trans.TransExecutionConfiguration getTransPreviewExecutionConfiguration()- Returns:
- the previewExecutionConfiguration
-
setTransPreviewExecutionConfiguration
public void setTransPreviewExecutionConfiguration(org.pentaho.di.trans.TransExecutionConfiguration previewExecutionConfiguration) - Parameters:
previewExecutionConfiguration
- the previewExecutionConfiguration to set
-
getTransDebugExecutionConfiguration
public org.pentaho.di.trans.TransExecutionConfiguration getTransDebugExecutionConfiguration()- Returns:
- the debugExecutionConfiguration
-
setTransDebugExecutionConfiguration
public void setTransDebugExecutionConfiguration(org.pentaho.di.trans.TransExecutionConfiguration debugExecutionConfiguration) - Parameters:
debugExecutionConfiguration
- the debugExecutionConfiguration to set
-
setTransExecutionConfiguration
public void setTransExecutionConfiguration(org.pentaho.di.trans.TransExecutionConfiguration executionConfiguration) - Parameters:
executionConfiguration
- the executionConfiguration to set
-
getJobExecutionConfiguration
public org.pentaho.di.job.JobExecutionConfiguration getJobExecutionConfiguration()- Returns:
- the jobExecutionConfiguration
-
setJobExecutionConfiguration
public void setJobExecutionConfiguration(org.pentaho.di.job.JobExecutionConfiguration jobExecutionConfiguration) - Parameters:
jobExecutionConfiguration
- the jobExecutionConfiguration to set
-
update
- Specified by:
update
in interfaceorg.pentaho.di.core.changed.PDIObserver
-
consume
public void consume(org.pentaho.di.core.lifecycle.LifeEventInfo info) - Specified by:
consume
in interfaceorg.pentaho.di.core.lifecycle.LifeEventHandler
-
setLog
public void setLog() -
getDisplay
public org.eclipse.swt.widgets.Display getDisplay()- Returns:
- the display
-
zoomIn
public void zoomIn() -
zoomOut
public void zoomOut() -
zoom100Percent
public void zoom100Percent() -
setParametersAsVariablesInUI
public void setParametersAsVariablesInUI(org.pentaho.di.core.parameters.NamedParams namedParameters, org.pentaho.di.core.variables.VariableSpace space) -
browseVersionHistory
public void browseVersionHistory() -
findActiveTrans
public org.pentaho.di.trans.Trans findActiveTrans(org.pentaho.di.job.Job job, org.pentaho.di.job.entry.JobEntryCopy jobEntryCopy) -
findActiveJob
public org.pentaho.di.job.Job findActiveJob(org.pentaho.di.job.Job job, org.pentaho.di.job.entry.JobEntryCopy jobEntryCopy) -
getSelectionObject
-
getDefaultSaveLocation
public org.pentaho.di.repository.RepositoryDirectoryInterface getDefaultSaveLocation(org.pentaho.di.repository.RepositoryElementInterface repositoryElement) -
addPropertyChangeListener
- Specified by:
addPropertyChangeListener
in interfaceorg.pentaho.ui.xul.XulEventSource
-
addPropertyChangeListener
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListener
in interfaceorg.pentaho.ui.xul.XulEventSource
-
firePropertyChange
-
getData
- Specified by:
getData
in interfaceorg.pentaho.ui.xul.impl.XulEventHandler
-
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
-
setData
- Specified by:
setData
in interfaceorg.pentaho.ui.xul.impl.XulEventHandler
-
setName
- Specified by:
setName
in interfaceorg.pentaho.ui.xul.impl.XulEventHandler
-
setXulDomContainer
public void setXulDomContainer(org.pentaho.ui.xul.XulDomContainer arg0) - Specified by:
setXulDomContainer
in interfaceorg.pentaho.ui.xul.impl.XulEventHandler
-
getSecurityManager
public org.pentaho.di.repository.RepositorySecurityManager getSecurityManager() -
displayDbDependancies
public void displayDbDependancies() -
fireMenuControlers
public void fireMenuControlers() -
hideSplash
public void hideSplash() -
setMainToolbarVisible
public void setMainToolbarVisible(boolean visible) Hides or shows the main toolbar- Parameters:
visible
-
-
setMenuBarVisible
public void setMenuBarVisible(boolean visible) -
createContents
protected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent) - Overrides:
createContents
in classorg.eclipse.jface.window.Window
-
start
public void start() -
getStartupPerspective
-
getMetaStore
public org.pentaho.metastore.api.IMetaStore getMetaStore() -
getMetaStoreSupplier
-
setMetaStoreSupplier
-
getBowl
public org.pentaho.di.core.bowl.Bowl getBowl() -
setBowl
public void setBowl(org.pentaho.di.core.bowl.Bowl bowl) -
handleShellCloseEvent
protected void handleShellCloseEvent()- Overrides:
handleShellCloseEvent
in classorg.eclipse.jface.window.Window
-
showAuthenticationOptions
public void showAuthenticationOptions() -
createExpandedContent
-
hideExpandedContent
public void hideExpandedContent() -
closeExpandedContent
public void closeExpandedContent() -
showExpandedContent
public void showExpandedContent() -
getDesignParent
public org.eclipse.swt.widgets.Composite getDesignParent() -
isUnsupportedBrowserEnvironment
-
getAvailableBrowser
-
disableCutCopyPaste
public void disableCutCopyPaste() -
enableCutCopyPaste
public void enableCutCopyPaste()
-