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
-
-
Field Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addCoreObjectsTree()
void
addDefaultKeyListeners(org.eclipse.swt.widgets.Control control)
void
addFileListener(FileListener listener)
void
addJobGraph(org.pentaho.di.job.JobMeta jobMeta)
void
addJobHistory()
void
addJobHistory(org.pentaho.di.job.JobMeta jobMeta, boolean select)
void
addJobLog()
void
addMenuLast()
void
addMenuListener(String id, Object listener, String methodName)
void
addPropertyChangeListener(PropertyChangeListener listener)
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
addSpoonSlave()
void
addSpoonSlave(org.pentaho.di.cluster.SlaveServer slaveServer)
void
addTransGraph(org.pentaho.di.trans.TransMeta transMeta)
void
addTransHistory()
void
addTransLog()
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
analyseImpact()
void
analyseImpact(org.pentaho.di.trans.TransMeta transMeta)
void
applyVariables()
void
applyVariableToAllLoadedObjects(String name, String value)
void
browseVersionHistory()
void
changeLooks()
boolean
checkIfHopAlreadyExists(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.TransHopMeta newHop)
void
checkTrans()
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
clearRepositoryDirectory()
PDI-18997 - clear specific repository directory when connect and or disconnect from servervoid
clearSearchFilter()
void
clearSharedObjectCache()
void
clipConnection()
boolean
closeAllFiles()
boolean
closeAllFiles(boolean force)
boolean
closeAllJobsAndTransformations()
boolean
closeAllJobsAndTransformations(boolean force)
Prompt user to close all open Jobs & Transformations if they have execute permissions.void
closeExpandedContent()
boolean
closeFile()
boolean
closeFile(boolean force)
void
closeRepository()
void
consume(org.pentaho.di.core.lifecycle.LifeEventInfo info)
void
copy()
void
copyFile()
void
copyJob()
void
copyJob(org.pentaho.di.job.JobMeta jobMeta)
void
copyJobentries()
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
copySteps()
It's called copySteps, but the job entries also arrive at this locationvoid
copyTableWizard()
Create a transformation that extracts tables & data from a database.void
copyTransformation()
void
copyTransformation(org.pentaho.di.trans.TransMeta transMeta)
void
copyTransformationImage()
void
copyTransformationImage(org.pentaho.di.trans.TransMeta transMeta)
void
createCmdLineFile()
protected org.eclipse.swt.widgets.Control
createContents(org.eclipse.swt.widgets.Composite parent)
void
createDatabaseWizard()
Shows a wizard that creates a new database connection...void
createExpandedContent(String url)
void
createKettleArchive(org.pentaho.di.trans.TransMeta transMeta)
void
createPopupMenus()
void
cut()
void
debugFile()
void
debugTransformation()
void
delClusterSchema()
void
delConnection()
void
deleteJobEntryCopies()
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
delPartitionSchema()
void
delSlaveServer()
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
disableCutCopyPaste()
void
disableMenuItem(String itemId)
void
displayCmdLine()
void
displayDbDependancies()
void
dispose()
boolean
doDestroy()
void
dupeConnection()
void
dupeJobEntry()
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
editClusterSchema()
void
editConnection()
void
editHop()
void
editHop(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.TransHopMeta transHopMeta)
void
editJobEntry()
void
editJobEntry(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.job.entry.JobEntryCopy je)
boolean
editJobProperties(String id)
void
editJobPropertiesPopup()
void
editKettlePropertiesFile()
void
editOptions()
void
editPartitioning(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.step.StepMeta stepMeta)
void
editPartitionSchema()
boolean
editProperties()
void
editSelectAll()
void
editSlaveServer()
protected void
editSlaveServer(org.pentaho.di.cluster.SlaveServer slaveServer)
void
editStep()
String
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
editTransformationProperties()
void
editTransformationPropertiesPopup()
void
editUnselectAll()
void
enableCutCopyPaste()
void
enableMenuItem(String itemId)
void
enableMenus()
void
executeFile(boolean local, boolean remote, boolean cluster, boolean preview, boolean debug, Date replayDate, boolean safe, boolean show)
void
executeJob()
void
executeJob(org.pentaho.di.job.JobMeta jobMeta, boolean local, boolean remote, Date replayDate, boolean safe, String startCopyName, int startCopyNr)
void
executeTransformation()
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
exploreDatabase()
void
exploreDB()
void
exploreRepository()
void
exportAllFileRepository()
Export this job or transformation including all depending resources to a single ZIP file containing a file repository.void
exportAllXMLFile()
Export this job or transformation including all depending resources to a single zip file.void
exportRepositoryAll()
boolean
exportRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectory directoryToExport)
boolean
exportXMLFile()
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
findJob(String tabItemText)
org.pentaho.di.trans.TransMeta
findTransformation(String tabItemText)
void
fireMenuControlers()
protected void
firePropertyChange(String attr, Object previousVal, Object newVal)
String
fromClipboard()
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>
getActiveDatabases()
org.pentaho.di.trans.HasDatabasesInterface
getActiveHasDatabasesInterface()
org.pentaho.di.trans.HasSlaveServersInterface
getActiveHasSlaveServersInterface()
org.pentaho.di.job.JobMeta
getActiveJob()
JobGraph
getActiveJobGraph()
org.pentaho.di.core.EngineMetaInterface
getActiveMeta()
TabItemInterface
getActiveTabitem()
String
getActiveTabText()
org.pentaho.di.trans.TransMeta
getActiveTransformation()
TransGraph
getActiveTransGraph()
org.pentaho.di.core.gui.UndoInterface
getActiveUndoInterface()
String[]
getArguments()
static String
getAvailableBrowser()
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
getCoreObjectsState()
Get the core object state.Object
getData()
org.pentaho.di.repository.RepositoryDirectoryInterface
getDefaultSaveLocation(org.pentaho.di.repository.RepositoryElementInterface repositoryElement)
org.eclipse.swt.widgets.Composite
getDesignParent()
org.eclipse.swt.widgets.Display
getDisplay()
org.eclipse.swt.widgets.FileDialog
getExportFileDialog()
local method to be able to use Spoon localization messages.protected static String
getFileType(String fineName)
static Spoon
getInstance()
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
getJobExecutionConfiguration()
String
getLastFileOpened()
org.pentaho.di.core.LastUsedFile
getLastUsedRepoFile(String repo, String indexStr)
org.pentaho.di.job.JobMeta[]
getLoadedJobs()
org.pentaho.di.trans.TransMeta[]
getLoadedTransformations()
org.pentaho.di.core.logging.LogChannelInterface
getLog()
org.pentaho.ui.xul.XulDomContainer
getMainSpoonContainer()
org.pentaho.metastore.stores.delegate.DelegatingMetaStore
getMetaStore()
String
getName()
List<org.pentaho.di.partition.PartitionSchema>
getPartitionSchemas(org.pentaho.di.trans.TransMeta transMeta)
List<String>
getPartitionSchemasNames(org.pentaho.di.trans.TransMeta transMeta)
PropsUI
getProperties()
org.pentaho.di.repository.Repository
getRepository()
String
getRepositoryName()
org.pentaho.di.repository.RepositorySecurityManager
getSecurityManager()
Object
getSelectionObject()
void
getSQL()
String
getStartupPerspective()
org.pentaho.di.trans.step.StepDialogInterface
getStepEntryDialog(org.pentaho.di.trans.step.StepMetaInterface stepMeta, org.pentaho.di.trans.TransMeta transMeta, String stepName)
TabSet
getTabSet()
org.pentaho.di.trans.TransExecutionConfiguration
getTransDebugExecutionConfiguration()
org.pentaho.di.trans.TransExecutionConfiguration
getTransExecutionConfiguration()
org.pentaho.di.trans.TransExecutionConfiguration
getTransPreviewExecutionConfiguration()
TreeManager
getTreeManager()
TreeSelection[]
getTreeObjects(org.eclipse.swt.widgets.Tree tree)
String
getUsername()
org.pentaho.vfs.ui.VfsFileChooserDialog
getVfsFileChooserDialog(org.apache.commons.vfs2.FileObject rootFile, org.apache.commons.vfs2.FileObject initialFile)
org.pentaho.ui.xul.XulDomContainer
getXulDomContainer()
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
handleShellCloseEvent()
void
handleStartOptions(org.pentaho.di.pan.CommandLineOption[] options)
void
helpAbout()
void
helpJobEntry()
void
helpStep()
void
hideExpandedContent()
void
hideSplash()
void
hideToolTips()
void
importDirectoryToRepository()
void
importFileFromXML()
Used when importing content from an xml file.void
init(org.pentaho.di.trans.TransMeta ti)
boolean
isDefinedSchemaExist(String[] schemaNames)
boolean
isDisposed()
boolean
isExecutionResultsPaneVisible()
boolean
isStopped()
boolean
isTabsChanged()
Check to see if any jobs or transformations are dirtystatic Boolean
isUnsupportedBrowserEnvironment()
static Boolean
isWebkitUnavailable()
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
loadPerspective(String id)
void
loadRepositoryObjects(org.pentaho.di.trans.TransMeta transMeta)
Deprecated.is this ever used? functionality seems covered in loadSessionInformationvoid
loadSettings()
static void
main(String[] a)
This is the main procedure for Spoon.String
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
monitorClusterSchema()
protected void
monitorClusterSchema(org.pentaho.di.cluster.ClusterSchema clusterSchema)
void
newClusteringSchema()
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
newConnection()
void
newDatabasePartitioningSchema()
void
newFileDropDown()
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
newJobFile()
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
newSlaveServer()
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
newTransFile()
void
openFile()
void
openFile(boolean importfile)
void
openFile(String filename, boolean importFile)
void
openFile(String filename, org.pentaho.di.core.variables.VariableSpace variableSpace, boolean importFile)
void
openFileNew()
void
openFileNew(String providerFilter, String fileFilterType, boolean importFile, String command)
void
openFileVFSFile()
void
openFileVFSFileNew()
void
openMarketplace()
If available, this method will open the marketplace.void
openRepository()
void
openSpoon()
boolean
overwritePrompt(String message, String rememberText, String rememberPropertyName)
void
paste()
void
pasteJob()
Paste job from the clipboard...void
pasteTransformation()
Paste transformation from the clipboard...void
pasteXML(org.pentaho.di.job.JobMeta jobMeta, String clipContent, org.pentaho.di.core.gui.Point loc)
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
previewFile()
void
previewTransformation()
void
printFile()
boolean
promptForSave()
boolean
quitFile(boolean canCancel)
boolean
readAndDispatch()
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
redoAction()
void
redoAction(org.pentaho.di.core.gui.UndoInterface undoInterface)
void
refreshCoreObjects()
void
refreshGraph()
void
refreshTree()
Refresh the object selection tree (on the left of the screen)void
refreshTree(String folderName)
void
refreshTree(org.pentaho.di.base.AbstractMeta abstractMeta)
void
removeMenuItem(String itemid, boolean removeTrailingSeparators)
void
removePropertyChangeListener(PropertyChangeListener listener)
ISpoonMenuController
removeSpoonMenuController(String menuControllerName)
boolean
removeSpoonMenuController(ISpoonMenuController menuController)
void
replayTransformation()
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
ripDBWizard()
Create a job that extracts tables & data from a database.void
runFile()
void
runOptionsFile()
boolean
save(org.pentaho.di.core.EngineMetaInterface meta, String filename, boolean export)
boolean
saveAsNew()
boolean
saveAsNew(org.pentaho.di.core.EngineMetaInterface inputMeta, boolean export, String command)
boolean
saveAsNew(org.pentaho.di.core.EngineMetaInterface meta, boolean export, String providerFilter, String fileFilterType, String command)
boolean
saveFile()
boolean
saveFile(boolean export)
boolean
saveFileAs()
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
saveMeta(org.pentaho.di.core.EngineMetaInterface meta, String filename)
boolean
saveMeta(org.pentaho.di.core.EngineMetaInterface meta, String filename, boolean export)
void
saveSettings()
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
saveXMLFileToVfs()
boolean
saveXMLFileToVfs(org.pentaho.di.core.EngineMetaInterface meta)
void
searchMetaData()
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
setCoreObjectsState(int state)
Set the core object state.void
setData(Object arg0)
boolean
setDesignMode()
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
setMarketMethod(Method m)
Set the method which can open the marketplace.void
setMenuBarVisible(boolean visible)
void
setMetaStore(org.pentaho.metastore.stores.delegate.DelegatingMetaStore metaStore)
void
setName(String arg0)
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
setShellText()
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
setVariables()
boolean
setViewMode()
void
setXulDomContainer(org.pentaho.ui.xul.XulDomContainer arg0)
void
shareObject(String id)
protected void
shareObject(org.pentaho.di.shared.SharedObjectInterface sharedObject)
void
showArguments()
void
showAuthenticationOptions()
void
showDocumentMap()
void
showExecutionResults()
void
showExpandedContent()
void
showLastImpactAnalyses()
void
showLastImpactAnalyses(org.pentaho.di.trans.TransMeta transMeta)
void
showLastTransCheck()
Show the remarks of the last transformation check that was run.void
showLastTransPreview()
void
showPluginInfo()
Show a plugin browservoid
showSelection()
If you click in the tree, you might want to show the corresponding window.void
showVariables()
void
showWelcomePage()
void
sleep()
void
sortHops()
void
sqlConnection()
void
start()
void
start(org.pentaho.di.pan.CommandLineOption[] options)
boolean
tabClose(TabItem item)
boolean
tabClose(TabItem item, boolean force)
boolean
tabCloseSelected()
boolean
tabCloseSelected(boolean force)
void
tabDeselected(TabItem item)
void
tabSelected(TabItem item)
void
toClipboard(String clipText)
String
toString()
void
undoAction()
void
undoAction(org.pentaho.di.core.gui.UndoInterface undoInterface)
protected void
unShareObject(org.pentaho.di.shared.SharedObjectInterface sharedObject)
void
update(org.pentaho.di.core.changed.ChangedFlagInterface o, Object arg)
void
updateTreeForActiveAbstractMetas()
void
verifyCopyDistribute(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.step.StepMeta fr)
void
zoom100Percent()
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 Detail
-
CONNECTION
public static final String CONNECTION
- See Also:
- Constant Field Values
-
SPOON_DIALOG_PROMPT_OVERWRITE_FILE
public static final String SPOON_DIALOG_PROMPT_OVERWRITE_FILE
- See Also:
- Constant Field Values
-
MESSAGE
public static final String MESSAGE
- See Also:
- Constant Field Values
-
SPOON_DIALOG_PROMPT_OVERWRITE_FILE_TITLE
public static final String SPOON_DIALOG_PROMPT_OVERWRITE_FILE_TITLE
- See Also:
- Constant Field Values
-
loggingObject
public static final org.pentaho.di.core.logging.LoggingObjectInterface loggingObject
-
STRING_TRANSFORMATIONS
public static final String STRING_TRANSFORMATIONS
-
STRING_JOBS
public static final String STRING_JOBS
-
STRING_BUILDING_BLOCKS
public static final String STRING_BUILDING_BLOCKS
-
STRING_ELEMENTS
public static final String STRING_ELEMENTS
-
STRING_CONNECTIONS
public static final String STRING_CONNECTIONS
-
STRING_STEPS
public static final String STRING_STEPS
-
STRING_JOB_ENTRIES
public static final String STRING_JOB_ENTRIES
-
STRING_HOPS
public static final String STRING_HOPS
-
STRING_PARTITIONS
public static final String STRING_PARTITIONS
-
STRING_SLAVES
public static final String STRING_SLAVES
-
STRING_CLUSTERS
public static final String STRING_CLUSTERS
-
STRING_TRANS_BASE
public static final String STRING_TRANS_BASE
-
STRING_HISTORY
public static final String STRING_HISTORY
-
STRING_TRANS_NO_NAME
public static final String STRING_TRANS_NO_NAME
-
STRING_JOB_NO_NAME
public static final String STRING_JOB_NO_NAME
-
STRING_TRANSFORMATION
public static final String STRING_TRANSFORMATION
-
STRING_JOB
public static final String STRING_JOB
-
APP_NAME
public static final String APP_NAME
-
XML_TAG_TRANSFORMATION_STEPS
public static final String XML_TAG_TRANSFORMATION_STEPS
- See Also:
- Constant Field Values
-
XML_TAG_JOB_JOB_ENTRIES
public static final String XML_TAG_JOB_JOB_ENTRIES
- See Also:
- Constant Field Values
-
MESSAGE_DIALOG_WITH_TOGGLE_YES_BUTTON_ID
public static final int MESSAGE_DIALOG_WITH_TOGGLE_YES_BUTTON_ID
- See Also:
- Constant Field Values
-
MESSAGE_DIALOG_WITH_TOGGLE_NO_BUTTON_ID
public static final int MESSAGE_DIALOG_WITH_TOGGLE_NO_BUTTON_ID
- See Also:
- Constant Field Values
-
MESSAGE_DIALOG_WITH_TOGGLE_CUSTOM_DISTRIBUTION_BUTTON_ID
public static final int MESSAGE_DIALOG_WITH_TOGGLE_CUSTOM_DISTRIBUTION_BUTTON_ID
- See Also:
- Constant Field Values
-
tabfolder
public TabSet tabfolder
-
delegates
public SpoonDelegates delegates
-
variables
public org.pentaho.di.core.RowMetaAndData variables
-
props
public PropsUI props
-
rep
public org.pentaho.di.repository.Repository rep
-
capabilities
public org.pentaho.di.repository.RepositoryCapabilities capabilities
-
DOCUMENTATION_URL
public static final String DOCUMENTATION_URL
-
REFRESH_SELECTION_EXTENSION
public static final String REFRESH_SELECTION_EXTENSION
- See Also:
- Constant Field Values
-
EDIT_SELECTION_EXTENSION
public static final String EDIT_SELECTION_EXTENSION
- See Also:
- Constant Field Values
-
fileExtensionMap
protected Map<String,FileListener> fileExtensionMap
-
lastDirOpened
public String lastDirOpened
We can use this to set a default filter path in the open and save dialogs
-
XUL_FILE_MAIN
public static final String XUL_FILE_MAIN
- See Also:
- Constant Field Values
-
startupPerspective
protected String startupPerspective
-
metaStore
public org.pentaho.metastore.stores.delegate.DelegatingMetaStore metaStore
-
selectionFilter
public org.eclipse.swt.widgets.Text selectionFilter
-
showTrans
public boolean showTrans
-
showJob
public boolean showJob
-
changeSupport
protected PropertyChangeSupport changeSupport
-
-
Method Detail
-
main
public static void main(String[] a) throws org.pentaho.di.core.exception.KettleException
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
public void loadPerspective(String id)
-
loadPerspective
public void loadPerspective(int pos)
-
getInstance
public static Spoon 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
public void applyVariableToAllLoadedObjects(String name, String value)
-
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
public void setArguments(String[] arguments)
- Parameters:
arguments
- The arguments to set.
-
getArguments
public String[] 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
public void removeMenuItem(String itemid, boolean removeTrailingSeparators)
-
disableMenuItem
public void disableMenuItem(String itemId)
-
enableMenuItem
public void enableMenuItem(String itemId)
-
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()
-
lastFileSelect
public void lastFileSelect(String id)
-
lastFileSelect
public void lastFileSelect(org.pentaho.di.core.LastUsedFile lastUsedFile)
-
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()
-
shareObject
protected void shareObject(org.pentaho.di.shared.SharedObjectInterface sharedObject)
-
unShareObject
protected void unShareObject(org.pentaho.di.shared.SharedObjectInterface sharedObject)
-
getTreeObjects
public TreeSelection[] getTreeObjects(org.eclipse.swt.widgets.Tree tree)
- 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
public boolean editJobProperties(String id)
-
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
public void clearDBCache(String id)
-
exploreDatabase
public void exploreDatabase()
-
exploreDB
public void exploreDB()
-
editStep
public void editStep()
-
dupeStep
public void dupeStep()
-
delStep
public void delStep()
-
helpStep
public void helpStep()
-
shareObject
public void shareObject(String id)
-
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
public void tabDeselected(TabItem item)
- Specified by:
tabDeselected
in interfaceTabListener
-
tabCloseSelected
public boolean tabCloseSelected()
-
tabCloseSelected
public boolean tabCloseSelected(boolean force)
-
tabClose
public boolean tabClose(TabItem item)
- Specified by:
tabClose
in interfaceTabListener
-
tabClose
public boolean tabClose(TabItem item, boolean force)
-
getTabSet
public TabSet getTabSet()
-
tabSelected
public void tabSelected(TabItem item)
- Specified by:
tabSelected
in interfaceTabListener
-
getRepositoryName
public String getRepositoryName()
-
getUsername
public String getUsername()
-
pasteXML
public void pasteXML(org.pentaho.di.trans.TransMeta transMeta, String clipcontent, org.pentaho.di.core.gui.Point loc)
-
copySelected
public void copySelected(org.pentaho.di.trans.TransMeta transMeta, List<org.pentaho.di.trans.step.StepMeta> steps, List<org.pentaho.di.core.NotePadMeta> notes)
-
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()
-
clearSharedObjectCache
public void clearSharedObjectCache() throws org.pentaho.di.core.exception.KettleException
- Throws:
org.pentaho.di.core.exception.KettleException
-
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
public String getLastFileOpened()
-
setLastFileOpened
public void setLastFileOpened(String inLastFileOpened)
-
displayCmdLine
public void displayCmdLine()
-
createCmdLineFile
public void createCmdLineFile()
-
openFileVFSFile
public void openFileVFSFile()
-
openFileVFSFileNew
public void openFileVFSFileNew()
-
importFileFromXML
public void importFileFromXML() throws Exception
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
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
public boolean saveAsNew(org.pentaho.di.core.EngineMetaInterface meta, boolean export, String providerFilter, String fileFilterType, String command)
-
addFileListener
public void addFileListener(FileListener listener)
-
openFile
public void openFile(String filename, boolean importFile)
-
openFile
public void openFile(String filename, org.pentaho.di.core.variables.VariableSpace variableSpace, boolean importFile)
-
setMarketMethod
public void setMarketMethod(Method m)
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
public PropsUI 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
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
public boolean save(org.pentaho.di.core.EngineMetaInterface meta, String filename, boolean export)
-
saveMeta
public boolean saveMeta(org.pentaho.di.core.EngineMetaInterface meta, String filename)
-
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
public TreeManager getTreeManager()
-
refreshTree
public void refreshTree(org.pentaho.di.base.AbstractMeta abstractMeta)
-
refreshTree
public void refreshTree(String folderName)
-
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
public String 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
public void addSpoonMenuController(ISpoonMenuController menuController)
-
removeSpoonMenuController
public boolean removeSpoonMenuController(ISpoonMenuController menuController)
-
removeSpoonMenuController
public ISpoonMenuController removeSpoonMenuController(String menuControllerName)
-
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
public TransGraph getActiveTransGraph()
-
getActiveJobGraph
public JobGraph getActiveJobGraph()
-
getActiveMeta
public org.pentaho.di.core.EngineMetaInterface getActiveMeta()
-
getActiveTabitem
public TabItemInterface 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
public org.pentaho.di.trans.TransMeta findTransformation(String tabItemText)
-
findJob
public org.pentaho.di.job.JobMeta findJob(String tabItemText)
-
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
public void addUndoChange(org.pentaho.di.core.gui.UndoInterface undoInterface, Object[] from, Object[] to, int[] pos)
-
addUndoChange
public void addUndoChange(org.pentaho.di.core.gui.UndoInterface undoInterface, Object[] from, Object[] to, int[] pos, boolean nextAlso)
-
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:
checkTrans()
-
analyseImpact
public void analyseImpact(org.pentaho.di.trans.TransMeta transMeta)
-
showLastImpactAnalyses
public void showLastImpactAnalyses(org.pentaho.di.trans.TransMeta transMeta)
-
toClipboard
public void toClipboard(String clipText)
-
fromClipboard
public String 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
public List<org.pentaho.di.core.database.DatabaseMeta> 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
-
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
public static org.pentaho.di.pan.CommandLineOption[] getCommandLineArgs(List<String> args)
-
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
public 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.- 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
public org.pentaho.di.core.LastUsedFile getLastUsedRepoFile(String repo, String indexStr)
-
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
public boolean isDefinedSchemaExist(String[] schemaNames)
-
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
public void executeJob(org.pentaho.di.job.JobMeta jobMeta, boolean local, boolean remote, Date replayDate, boolean safe, String startCopyName, int startCopyNr)
-
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
public void setRepositoryName(String repoName)
-
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
public boolean addSpoonBrowser(String name, String urlString, boolean isURL, org.eclipse.swt.browser.LocationListener locationListener, Map<String,Runnable> functions, boolean showControls)
-
addSpoonBrowser
public boolean addSpoonBrowser(String name, String urlString, org.eclipse.swt.browser.LocationListener locationListener, boolean showControls)
-
addSpoonBrowser
public boolean addSpoonBrowser(String name, String urlString, org.eclipse.swt.browser.LocationListener locationListener)
-
addSpoonBrowser
public boolean addSpoonBrowser(String name, String urlString, boolean showControls)
-
addSpoonBrowser
public boolean addSpoonBrowser(String name, String urlString)
- 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
public boolean overwritePrompt(String message, String rememberText, String rememberPropertyName)
- 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
public boolean messageBox(String message, String text, boolean allowCancel, int type)
- 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
public void update(org.pentaho.di.core.changed.ChangedFlagInterface o, Object arg)
- 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
public Object getSelectionObject()
-
getDefaultSaveLocation
public org.pentaho.di.repository.RepositoryDirectoryInterface getDefaultSaveLocation(org.pentaho.di.repository.RepositoryElementInterface repositoryElement)
-
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)
- Specified by:
addPropertyChangeListener
in interfaceorg.pentaho.ui.xul.XulEventSource
-
addPropertyChangeListener
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
-
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)
- Specified by:
removePropertyChangeListener
in interfaceorg.pentaho.ui.xul.XulEventSource
-
firePropertyChange
protected void firePropertyChange(String attr, Object previousVal, Object newVal)
-
getData
public Object getData()
- Specified by:
getData
in interfaceorg.pentaho.ui.xul.impl.XulEventHandler
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.pentaho.ui.xul.impl.XulEventHandler
-
getXulDomContainer
public org.pentaho.ui.xul.XulDomContainer getXulDomContainer()
- Specified by:
getXulDomContainer
in interfaceorg.pentaho.ui.xul.impl.XulEventHandler
-
setData
public void setData(Object arg0)
- Specified by:
setData
in interfaceorg.pentaho.ui.xul.impl.XulEventHandler
-
setName
public void setName(String arg0)
- 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
public String getStartupPerspective()
-
getMetaStore
public org.pentaho.metastore.stores.delegate.DelegatingMetaStore getMetaStore()
-
setMetaStore
public void setMetaStore(org.pentaho.metastore.stores.delegate.DelegatingMetaStore metaStore)
-
handleShellCloseEvent
protected void handleShellCloseEvent()
- Overrides:
handleShellCloseEvent
in classorg.eclipse.jface.window.Window
-
showAuthenticationOptions
public void showAuthenticationOptions()
-
createExpandedContent
public void createExpandedContent(String url)
-
hideExpandedContent
public void hideExpandedContent()
-
closeExpandedContent
public void closeExpandedContent()
-
showExpandedContent
public void showExpandedContent()
-
getDesignParent
public org.eclipse.swt.widgets.Composite getDesignParent()
-
isUnsupportedBrowserEnvironment
public static Boolean isUnsupportedBrowserEnvironment()
-
isWebkitUnavailable
public static Boolean isWebkitUnavailable()
-
getAvailableBrowser
public static String getAvailableBrowser()
-
disableCutCopyPaste
public void disableCutCopyPaste()
-
enableCutCopyPaste
public void enableCutCopyPaste()
-
-