public class Spoon extends org.eclipse.jface.window.ApplicationWindow implements AddUndoPositionInterface, TabListener, SpoonInterface, OverwritePrompter, PDIObserver, LifeEventHandler, org.pentaho.ui.xul.XulEventSource, org.pentaho.ui.xul.impl.XulEventHandler, PartitionSchemasProvider
STATE_CORE_OBJECTS_CHEF, STATE_CORE_OBJECTS_NONE, STATE_CORE_OBJECTS_SPOON, XUL_FILE_MENU_PROPERTIES, XUL_FILE_MENUBAR, XUL_FILE_MENUS
Constructor and Description |
---|
Spoon() |
Spoon(Repository rep) |
Modifier and Type | Method and Description |
---|---|
void |
addCoreObjectsTree() |
void |
addDefaultKeyListeners(org.eclipse.swt.widgets.Control control) |
void |
addFileListener(FileListener listener) |
void |
addJobGraph(JobMeta jobMeta) |
void |
addJobHistory() |
void |
addJobHistory(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(SlaveServer slaveServer) |
void |
addTransGraph(TransMeta transMeta) |
void |
addTransHistory() |
void |
addTransLog() |
void |
addUndoChange(UndoInterface undoInterface,
Object[] from,
Object[] to,
int[] pos) |
void |
addUndoChange(UndoInterface undoInterface,
Object[] from,
Object[] to,
int[] pos,
boolean nextAlso) |
void |
addUndoDelete(UndoInterface undoInterface,
Object[] obj,
int[] position) |
void |
addUndoDelete(UndoInterface undoInterface,
Object[] obj,
int[] position,
boolean nextAlso) |
void |
addUndoNew(UndoInterface undoInterface,
Object[] obj,
int[] position) |
void |
addUndoNew(UndoInterface undoInterface,
Object[] obj,
int[] position,
boolean nextAlso) |
void |
addUndoPosition(UndoInterface undoInterface,
Object[] obj,
int[] pos,
Point[] prev,
Point[] curr) |
void |
analyseImpact() |
void |
analyseImpact(TransMeta transMeta) |
void |
applyVariables() |
void |
applyVariableToAllLoadedObjects(String name,
String value) |
void |
browseVersionHistory() |
void |
changeLooks() |
boolean |
checkIfHopAlreadyExists(TransMeta transMeta,
TransHopMeta newHop) |
void |
checkTrans() |
void |
checkTrans(TransMeta transMeta)
Checks *all* the steps in the transformation, puts the result in remarks list
|
void |
checkTrans(TransMeta transMeta,
boolean only_selected)
Check the steps in a transformation
|
void |
clearDBCache(String id) |
void |
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(LifeEventInfo info) |
void |
copy() |
void |
copyFile() |
void |
copyJob() |
void |
copyJob(JobMeta jobMeta) |
void |
copyJobentries() |
void |
copyLogSelectedText(org.eclipse.swt.custom.StyledText text) |
void |
copySelected(TransMeta transMeta,
List<StepMeta> steps,
List<NotePadMeta> notes) |
void |
copySteps()
It's called copySteps, but the job entries also arrive at this location
|
void |
copyTableWizard()
Create a transformation that extracts tables & data from a database.
|
void |
copyTransformation() |
void |
copyTransformation(TransMeta transMeta) |
void |
copyTransformationImage() |
void |
copyTransformationImage(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(TransMeta transMeta) |
void |
createPopupMenus() |
void |
cut() |
void |
debugFile() |
void |
debugTransformation() |
void |
delClusterSchema() |
void |
delConnection() |
void |
deleteJobEntryCopies() |
void |
deleteJobEntryCopies(JobMeta jobMeta,
JobEntryCopy jobEntry) |
void |
deleteJobEntryCopies(JobMeta jobMeta,
JobEntryCopy[] jobEntry) |
void |
delHop() |
void |
delHop(TransMeta transMeta,
TransHopMeta transHopMeta) |
void |
delPartitionSchema() |
void |
delSlaveServer() |
void |
delSlaveServer(HasSlaveServersInterface hasSlaveServersInterface,
SlaveServer slaveServer) |
void |
delStep() |
void |
delStep(TransMeta transMeta,
StepMeta stepMeta) |
void |
delSteps(TransMeta transformation,
StepMeta[] steps) |
void |
disableCutCopyPaste() |
void |
disableMenuItem(String itemId) |
void |
displayCmdLine() |
void |
displayDbDependancies() |
void |
dispose() |
boolean |
doDestroy() |
void |
dupeConnection() |
void |
dupeJobEntry() |
void |
dupeStep() |
void |
dupeStep(TransMeta transMeta,
StepMeta stepMeta) |
void |
editCapabilities() |
void |
editClustering(TransMeta transMeta,
List<StepMeta> stepMetas)
Select a clustering schema for this step.
|
void |
editClustering(TransMeta transMeta,
StepMeta stepMeta)
Select a clustering schema for this step.
|
void |
editClusterSchema() |
void |
editConnection() |
void |
editHop() |
void |
editHop(TransMeta transMeta,
TransHopMeta transHopMeta) |
void |
editJobEntry() |
void |
editJobEntry(JobMeta jobMeta,
JobEntryCopy je) |
boolean |
editJobProperties(String id) |
void |
editJobPropertiesPopup() |
void |
editKettlePropertiesFile() |
void |
editOptions() |
void |
editPartitioning(TransMeta transMeta,
StepMeta stepMeta) |
void |
editPartitionSchema() |
boolean |
editProperties() |
void |
editSelectAll() |
void |
editSlaveServer() |
protected void |
editSlaveServer(SlaveServer slaveServer) |
void |
editStep() |
String |
editStep(TransMeta transMeta,
StepMeta stepMeta) |
void |
editStepErrorHandling(TransMeta transMeta,
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(JobMeta jobMeta,
boolean local,
boolean remote,
Date replayDate,
boolean safe,
String startCopyName,
int startCopyNr) |
void |
executeTransformation() |
void |
executeTransformation(TransMeta transMeta,
boolean local,
boolean remote,
boolean cluster,
boolean preview,
boolean debug,
Date replayDate,
boolean safe,
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(RepositoryDirectory directoryToExport) |
boolean |
exportXMLFile() |
Job |
findActiveJob(Job job,
JobEntryCopy jobEntryCopy) |
Trans |
findActiveTrans(Job job,
JobEntryCopy jobEntryCopy) |
JobMeta |
findJob(String tabItemText) |
TransMeta |
findTransformation(String tabItemText) |
void |
fireMenuControlers() |
protected void |
firePropertyChange(String attr,
Object previousVal,
Object newVal) |
String |
fromClipboard() |
void |
generateFieldMapping(TransMeta transMeta,
StepMeta stepMeta)
Create a new SelectValues step in between this step and the previous.
|
List<DatabaseMeta> |
getActiveDatabases() |
HasDatabasesInterface |
getActiveHasDatabasesInterface() |
JobMeta |
getActiveJob() |
JobGraph |
getActiveJobGraph() |
EngineMetaInterface |
getActiveMeta() |
TabItemInterface |
getActiveTabitem() |
String |
getActiveTabText() |
TransMeta |
getActiveTransformation() |
TransGraph |
getActiveTransGraph() |
UndoInterface |
getActiveUndoInterface() |
String[] |
getArguments() |
static String |
getAvailableBrowser() |
static CommandLineOption[] |
getCommandLineArgs(List<String> args) |
static CommandLineOption |
getCommandLineOption(CommandLineOption[] options,
String opt) |
int |
getCoreObjectsState()
Get the core object state.
|
Object |
getData() |
RepositoryDirectoryInterface |
getDefaultSaveLocation(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() |
JobEntryDialogInterface |
getJobEntryDialog(JobEntryInterface jei,
JobMeta jobMeta) |
JobExecutionConfiguration |
getJobExecutionConfiguration() |
String |
getLastFileOpened() |
LastUsedFile |
getLastUsedRepoFile(String repo,
String indexStr) |
JobMeta[] |
getLoadedJobs() |
TransMeta[] |
getLoadedTransformations() |
LogChannelInterface |
getLog() |
org.pentaho.ui.xul.XulDomContainer |
getMainSpoonContainer() |
org.pentaho.metastore.stores.delegate.DelegatingMetaStore |
getMetaStore() |
String |
getName() |
List<PartitionSchema> |
getPartitionSchemas(TransMeta transMeta) |
List<String> |
getPartitionSchemasNames(TransMeta transMeta) |
PropsUI |
getProperties() |
Repository |
getRepository() |
String |
getRepositoryName() |
RepositorySecurityManager |
getSecurityManager() |
Object |
getSelectionObject() |
void |
getSQL() |
String |
getStartupPerspective() |
StepDialogInterface |
getStepEntryDialog(StepMetaInterface stepMeta,
TransMeta transMeta,
String stepName) |
TabSet |
getTabSet() |
TransExecutionConfiguration |
getTransDebugExecutionConfiguration() |
TransExecutionConfiguration |
getTransExecutionConfiguration() |
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(KettleMissingPluginsException missingPluginsException)
Shows a dialog listing the missing plugins, asking if you want to go into the marketplace
|
void |
handleRepositoryLost(KettleRepositoryLostException e) |
protected void |
handleShellCloseEvent() |
void |
handleStartOptions(CommandLineOption[] options) |
void |
helpAbout() |
void |
helpJobEntry() |
void |
helpStep() |
void |
hideExpandedContent() |
void |
hideSplash() |
void |
hideToolTips() |
void |
importDirectoryToRepository() |
void |
importFile() |
void |
init(TransMeta ti) |
boolean |
isDefinedSchemaExist(String[] schemaNames) |
boolean |
isDisposed() |
boolean |
isExecutionResultsPaneVisible() |
boolean |
isStopped() |
boolean |
isTabsChanged()
Check to see if any jobs or transformations are dirty
|
static Boolean |
isUnsupportedBrowserEnvironment() |
static Boolean |
isWebkitUnavailable() |
void |
lastFileSelect(LastUsedFile lastUsedFile) |
void |
lastFileSelect(String id) |
void |
lastRepoFileSelect(String repo,
String id) |
void |
loadLastUsedFile(LastUsedFile lastUsedFile,
String repositoryName)
Loads the
LastUsedFile residing the the Repository with repoName , and "tracks" it by
adding it to the "recent" files collection. |
void |
loadLastUsedFileAtStartup(LastUsedFile lastUsedFile,
String repositoryName)
Loads the
LastUsedFile residing the the Repository with repoName 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(ObjectId objectId,
RepositoryObjectType objectType,
String revision) |
void |
loadObjectFromRepository(String objName,
RepositoryObjectType objectType,
RepositoryDirectoryInterface repDir,
String versionLabel) |
void |
loadPerspective(int pos) |
void |
loadPerspective(String id) |
void |
loadRepositoryObjects(TransMeta transMeta)
Deprecated.
is this ever used?
functionality seems covered in loadSessionInformation
|
void |
loadSettings() |
static void |
main(String[] a)
This is the main procedure for Spoon.
|
String |
makeTabName(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(ClusterSchema clusterSchema) |
void |
newClusteringSchema() |
void |
newClusteringSchema(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
|
void |
newConnection() |
void |
newDatabasePartitioningSchema() |
void |
newFileDropDown() |
void |
newHop() |
void |
newHop(TransMeta transMeta) |
void |
newHop(TransMeta transMeta,
StepMeta fr,
StepMeta to) |
void |
newHop(TransMeta transMeta,
TransHopMeta transHopMeta) |
JobEntryCopy |
newJobEntry(JobMeta jobMeta,
String typeDesc,
boolean openit) |
void |
newJobFile() |
void |
newJobHop(JobMeta jobMeta,
JobEntryCopy fr,
JobEntryCopy to) |
void |
newPartitioningSchema(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
|
void |
newSlaveServer() |
void |
newSlaveServer(HasSlaveServersInterface hasSlaveServersInterface)
This creates a slave server, edits it and adds it to the transformation metadata
|
void |
newStep() |
StepMeta |
newStep(TransMeta transMeta) |
StepMeta |
newStep(TransMeta transMeta,
boolean openit,
boolean rename) |
StepMeta |
newStep(TransMeta transMeta,
String name,
String description,
boolean openit,
boolean rename)
Allocate new step, optionally open and rename it.
|
StepMeta |
newStep(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,
VariableSpace variableSpace,
boolean importfile) |
void |
openFileNew() |
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(JobMeta jobMeta,
String clipContent,
Point loc) |
void |
pasteXML(TransMeta transMeta,
String clipcontent,
Point loc) |
boolean |
performNewTransHopChecks(TransMeta transMeta,
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 the
LastUsedFile at the given index within the PropsUI.getLastUsedRepoFiles() collection exists within the given repo Repository ,
and false otherwise. |
void |
redoAction() |
void |
redoAction(UndoInterface undoInterface) |
void |
refreshCoreObjects() |
void |
refreshGraph() |
void |
refreshTree()
Refresh the object selection tree (on the left of the screen)
|
void |
refreshTree(AbstractMeta abstractMeta) |
void |
refreshTree(String folderName) |
void |
removeMenuItem(String itemid,
boolean removeTrailingSeparators) |
void |
removePropertyChangeListener(PropertyChangeListener listener) |
boolean |
removeSpoonMenuController(ISpoonMenuController menuController) |
ISpoonMenuController |
removeSpoonMenuController(String menuControllerName) |
void |
replayTransformation() |
JobMeta |
ripDB(List<DatabaseMeta> databases,
String jobName,
RepositoryDirectory repdir,
String directory,
DatabaseMeta sourceDbInfo,
DatabaseMeta targetDbInfo,
String[] tables) |
void |
ripDBWizard()
Create a job that extracts tables & data from a database.
|
void |
runFile() |
void |
runOptionsFile() |
boolean |
save(EngineMetaInterface meta,
String filename,
boolean export) |
boolean |
saveAsNew() |
boolean |
saveFile() |
boolean |
saveFileAs() |
boolean |
saveFileAs(EngineMetaInterface meta) |
boolean |
saveJobRepository(JobMeta jobMeta) |
boolean |
saveJobRepository(JobMeta jobMeta,
boolean ask_name) |
boolean |
saveMeta(EngineMetaInterface meta,
String filename) |
void |
saveSettings() |
boolean |
saveToFile(EngineMetaInterface meta) |
boolean |
saveToRepository(EngineMetaInterface meta) |
boolean |
saveToRepository(EngineMetaInterface meta,
boolean ask_name) |
boolean |
saveToRepositoryCheckSecurity(EngineMetaInterface meta) |
boolean |
saveToRepositoryConfirmed(EngineMetaInterface meta) |
boolean |
saveXMLFile(boolean export) |
boolean |
saveXMLFile(EngineMetaInterface meta,
boolean export) |
boolean |
saveXMLFile(EngineMetaInterface meta,
String filename,
boolean export) |
boolean |
saveXMLFileToVfs() |
boolean |
saveXMLFileToVfs(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(TransMeta transMeta,
TransExecutionConfiguration executionConfiguration)
Sends transformation to slave server
|
void |
setArguments(String[] arguments) |
void |
setCoreObjectsState(int state)
Set the core object state.
|
void |
setData(Object arg0) |
boolean |
setDesignMode() |
void |
setDestroy(boolean destroy) |
void |
setJobExecutionConfiguration(JobExecutionConfiguration jobExecutionConfiguration) |
void |
setJobMetaVariables(JobMeta jobMeta)
Set previously defined variables (set variables dialog) on the specified job
|
void |
setLastFileOpened(String inLastFileOpened) |
void |
setLog() |
void |
setMainToolbarVisible(boolean visible)
Hides or shows the main toolbar
|
void |
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(NamedParams namedParameters,
VariableSpace space) |
void |
setRepository(Repository rep) |
void |
setRepositoryName(String repoName) |
void |
setShellText() |
void |
setStopped(boolean stopped) |
void |
setTransDebugExecutionConfiguration(TransExecutionConfiguration debugExecutionConfiguration) |
void |
setTransExecutionConfiguration(TransExecutionConfiguration executionConfiguration) |
void |
setTransMetaVariables(TransMeta transMeta)
Set previously defined variables (set variables dialog) on the specified transformation
|
void |
setTransPreviewExecutionConfiguration(TransExecutionConfiguration previewExecutionConfiguration) |
void |
setUndoMenu(UndoInterface undoInterface)
Sets the text and enabled settings for the undo and redo menu items
|
void |
setVariables() |
boolean |
setViewMode() |
void |
setXulDomContainer(org.pentaho.ui.xul.XulDomContainer arg0) |
protected void |
shareObject(SharedObjectInterface sharedObject) |
void |
shareObject(String id) |
void |
showArguments() |
void |
showAuthenticationOptions() |
void |
showDocumentMap() |
void |
showExecutionResults() |
void |
showExpandedContent() |
void |
showLastImpactAnalyses() |
void |
showLastImpactAnalyses(TransMeta transMeta) |
void |
showLastTransCheck()
Show the remarks of the last transformation check that was run.
|
void |
showLastTransPreview() |
void |
showPluginInfo()
Show a plugin browser
|
void |
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(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(UndoInterface undoInterface) |
protected void |
unShareObject(SharedObjectInterface sharedObject) |
void |
update(ChangedFlagInterface o,
Object arg) |
void |
verifyCopyDistribute(TransMeta transMeta,
StepMeta fr) |
void |
zoom100Percent() |
void |
zoomIn() |
void |
zoomOut() |
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
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
public static final String CONNECTION
public static final LoggingObjectInterface loggingObject
public static final String STRING_TRANSFORMATIONS
public static final String STRING_JOBS
public static final String STRING_BUILDING_BLOCKS
public static final String STRING_ELEMENTS
public static final String STRING_CONNECTIONS
public static final String STRING_STEPS
public static final String STRING_JOB_ENTRIES
public static final String STRING_HOPS
public static final String STRING_PARTITIONS
public static final String STRING_SLAVES
public static final String STRING_CLUSTERS
public static final String STRING_TRANS_BASE
public static final String STRING_HISTORY
public static final String STRING_TRANS_NO_NAME
public static final String STRING_JOB_NO_NAME
public static final String STRING_TRANSFORMATION
public static final String STRING_JOB
public static final String APP_NAME
public static final String XML_TAG_TRANSFORMATION_STEPS
public static final String XML_TAG_JOB_JOB_ENTRIES
public static final int MESSAGE_DIALOG_WITH_TOGGLE_YES_BUTTON_ID
public static final int MESSAGE_DIALOG_WITH_TOGGLE_NO_BUTTON_ID
public static final int MESSAGE_DIALOG_WITH_TOGGLE_CUSTOM_DISTRIBUTION_BUTTON_ID
public TabSet tabfolder
public SpoonDelegates delegates
public RowMetaAndData variables
public PropsUI props
public Repository rep
public RepositoryCapabilities capabilities
public static final String DOCUMENTATION_URL
public static final String REFRESH_SELECTION_EXTENSION
public static final String EDIT_SELECTION_EXTENSION
protected Map<String,FileListener> fileExtensionMap
public Map<String,SharedObjects> sharedObjectsFileMap
public String lastDirOpened
public static final String XUL_FILE_MAIN
protected String startupPerspective
public org.pentaho.metastore.stores.delegate.DelegatingMetaStore metaStore
public org.eclipse.swt.widgets.Text selectionFilter
public boolean showTrans
public boolean showJob
protected PropertyChangeSupport changeSupport
public Spoon()
public Spoon(Repository rep)
public static void main(String[] a) throws KettleException
a
- Arguments are available in the "Get System Info" step.KettleException
public void init(TransMeta ti)
public org.pentaho.ui.xul.XulDomContainer getMainSpoonContainer()
public void loadPerspective(String id)
public void loadPerspective(int pos)
public static Spoon getInstance()
public org.pentaho.vfs.ui.VfsFileChooserDialog getVfsFileChooserDialog(org.apache.commons.vfs2.FileObject rootFile, org.apache.commons.vfs2.FileObject initialFile)
public boolean closeFile()
public boolean closeFile(boolean force)
public boolean closeAllFiles()
public boolean closeAllFiles(boolean force)
public boolean closeAllJobsAndTransformations()
public boolean closeAllJobsAndTransformations(boolean force)
public void searchMetaData()
public void showArguments()
public void setVariables()
public void applyVariables()
public void applyVariableToAllLoadedObjects(String name, String value)
public void showVariables()
public void openSpoon()
public boolean readAndDispatch()
public boolean isStopped()
public void setStopped(boolean stopped)
stopped
- True to stop this application.public void setDestroy(boolean destroy)
destroy
- Whether or not to destroy the display.public boolean doDestroy()
public void setArguments(String[] arguments)
arguments
- The arguments to set.public String[] getArguments()
public void dispose()
public boolean isDisposed()
public void sleep()
public void undoAction()
public void redoAction()
public void copySteps()
public void copyJobentries()
public void copy()
public void copyFile()
public void cut()
public void removeMenuItem(String itemid, boolean removeTrailingSeparators)
public void disableMenuItem(String itemId)
public void enableMenuItem(String itemId)
public void createPopupMenus()
public void executeTransformation()
public void previewTransformation()
public void debugTransformation()
public void checkTrans()
public void analyseImpact()
public void showLastImpactAnalyses()
public void showLastTransPreview()
public void showExecutionResults()
public boolean isExecutionResultsPaneVisible()
public void copyLogSelectedText(org.eclipse.swt.custom.StyledText text)
public void copyTransformation()
public void copyTransformationImage()
public boolean editTransformationProperties()
public boolean editProperties()
public void executeJob()
public void copyJob()
public void showWelcomePage()
public void showDocumentMap()
public void addMenuLast()
public void lastFileSelect(String id)
public void lastFileSelect(LastUsedFile lastUsedFile)
public void clearSearchFilter()
public void addDefaultKeyListeners(org.eclipse.swt.widgets.Control control)
public boolean setViewMode()
public boolean setDesignMode()
public void addCoreObjectsTree()
protected org.eclipse.swt.widgets.TreeItem searchMouseOverTreeItem(org.eclipse.swt.widgets.TreeItem[] treeItems, int x, int y)
public void refreshCoreObjects()
protected void shareObject(SharedObjectInterface sharedObject)
protected void unShareObject(SharedObjectInterface sharedObject)
public TreeSelection[] getTreeObjects(org.eclipse.swt.widgets.Tree tree)
public void hideToolTips()
public void showSelection()
public void newHop()
public void sortHops()
public void newDatabasePartitioningSchema()
public void newClusteringSchema()
public void newSlaveServer()
public void editTransformationPropertiesPopup()
public void addTransLog()
public void addTransHistory()
public boolean editJobProperties(String id)
public void editJobPropertiesPopup()
public void addJobLog()
public void addJobHistory()
public void newStep()
public void editConnection()
public void dupeConnection()
public void clipConnection()
public void delConnection()
public void sqlConnection()
public void clearDBCache(String id)
public void exploreDatabase()
public void exploreDB()
public void editStep()
public void dupeStep()
public void delStep()
public void helpStep()
public void shareObject(String id)
public void editJobEntry()
public void dupeJobEntry()
public void deleteJobEntryCopies()
public void helpJobEntry()
public void editHop()
public void delHop()
public void editPartitionSchema()
public void delPartitionSchema()
public void editClusterSchema()
public void delClusterSchema()
public void monitorClusterSchema() throws KettleException
KettleException
public void editSlaveServer()
public void delSlaveServer()
public void addSpoonSlave()
protected void monitorClusterSchema(ClusterSchema clusterSchema) throws KettleException
KettleException
public void tabDeselected(TabItem item)
tabDeselected
in interface TabListener
public boolean tabCloseSelected()
public boolean tabCloseSelected(boolean force)
public boolean tabClose(TabItem item)
tabClose
in interface TabListener
public boolean tabClose(TabItem item, boolean force)
public TabSet getTabSet()
public void tabSelected(TabItem item)
tabSelected
in interface TabListener
public String getRepositoryName()
public String getUsername()
public void copySelected(TransMeta transMeta, List<StepMeta> steps, List<NotePadMeta> notes)
public void editHop(TransMeta transMeta, TransHopMeta transHopMeta)
public void delHop(TransMeta transMeta, TransHopMeta transHopMeta)
public void newHop(TransMeta transMeta, TransHopMeta transHopMeta)
public boolean checkIfHopAlreadyExists(TransMeta transMeta, TransHopMeta newHop)
transMeta
- transformation's metanewHop
- hop to be checkedpublic boolean performNewTransHopChecks(TransMeta transMeta, TransHopMeta newHop)
transMeta
- transformation's metanewHop
- hop to be checkedpublic void newHop(TransMeta transMeta)
public void openRepository()
public void clearSharedObjectCache() throws KettleException
KettleException
public void exploreRepository()
public void loadObjectFromRepository(ObjectId objectId, RepositoryObjectType objectType, String revision) throws Exception
Exception
public void loadObjectFromRepository(String objName, RepositoryObjectType objectType, RepositoryDirectoryInterface repDir, String versionLabel) throws Exception
Exception
public void closeRepository()
public void openFile()
public void importFile()
public void openFile(boolean importfile)
public String getLastFileOpened()
public void setLastFileOpened(String inLastFileOpened)
public void displayCmdLine()
public void createCmdLineFile()
public void openFileVFSFile()
public void openFileVFSFileNew()
public boolean saveAsNew()
public void addFileListener(FileListener listener)
public void openFile(String filename, boolean importfile)
public void openFile(String filename, VariableSpace variableSpace, boolean importfile)
public void setMarketMethod(Method m)
public void openMarketplace()
public void handleMissingPluginsExceptionWithMarketplace(KettleMissingPluginsException missingPluginsException)
missingPluginsException
- The missing plugins exceptionpublic PropsUI getProperties()
public void newFileDropDown()
public void newTransFile()
public void newJobFile()
public void setTransMetaVariables(TransMeta transMeta)
transMeta
- transformation's metapublic void setJobMetaVariables(JobMeta jobMeta)
jobMeta
- job's metapublic void loadRepositoryObjects(TransMeta transMeta)
public boolean promptForSave() throws KettleException
KettleException
public boolean quitFile(boolean canCancel) throws KettleException
KettleException
public boolean saveFile()
public boolean saveToFile(EngineMetaInterface meta) throws KettleException
KettleException
public boolean saveToRepository(EngineMetaInterface meta) throws KettleException
KettleException
public boolean saveToRepository(EngineMetaInterface meta, boolean ask_name) throws KettleException
KettleException
public boolean saveToRepositoryCheckSecurity(EngineMetaInterface meta)
public boolean saveToRepositoryConfirmed(EngineMetaInterface meta) throws KettleException
KettleException
public boolean saveJobRepository(JobMeta jobMeta) throws KettleException
KettleException
public boolean saveJobRepository(JobMeta jobMeta, boolean ask_name) throws KettleException
KettleException
public boolean saveFileAs() throws KettleException
KettleException
public boolean saveFileAs(EngineMetaInterface meta) throws KettleException
KettleException
public boolean exportXMLFile()
public void exportAllXMLFile()
public void exportAllFileRepository()
public void exportRepositoryAll()
public boolean exportRepositoryDirectory(RepositoryDirectory directoryToExport)
directoryToExport
- set to null to export the complete repositorypublic org.eclipse.swt.widgets.FileDialog getExportFileDialog()
public void importDirectoryToRepository()
public boolean saveXMLFile(boolean export)
public boolean saveXMLFile(EngineMetaInterface meta, boolean export)
public boolean saveXMLFile(EngineMetaInterface meta, String filename, boolean export)
public boolean saveXMLFileToVfs()
public boolean saveXMLFileToVfs(EngineMetaInterface meta)
public boolean save(EngineMetaInterface meta, String filename, boolean export)
public boolean saveMeta(EngineMetaInterface meta, String filename)
public void helpAbout()
public void showPluginInfo()
public void editUnselectAll()
public void editSelectAll()
public void editOptions()
public void editCapabilities()
public void editKettlePropertiesFile()
public TreeManager getTreeManager()
public void refreshTree(AbstractMeta abstractMeta)
public void refreshTree(String folderName)
public void refreshTree()
public void handleRepositoryLost(KettleRepositoryLostException e)
public List<String> getPartitionSchemasNames(TransMeta transMeta) throws KettleException
getPartitionSchemasNames
in interface PartitionSchemasProvider
KettleException
public List<PartitionSchema> getPartitionSchemas(TransMeta transMeta) throws KettleException
getPartitionSchemas
in interface PartitionSchemasProvider
KettleException
public String getActiveTabText()
public void refreshGraph()
public StepMeta newStep(TransMeta transMeta, String name, String description, boolean openit, boolean rename)
name
- Name of the new stepdescription
- Description of the type of stepopenit
- Open the dialog for this step?rename
- Rename this step?public StepMeta newStep(TransMeta transMeta, String id, String name, String description, boolean openit, boolean rename)
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?public void setShellText()
public void enableMenus()
public void addSpoonMenuController(ISpoonMenuController menuController)
public boolean removeSpoonMenuController(ISpoonMenuController menuController)
public ISpoonMenuController removeSpoonMenuController(String menuControllerName)
public boolean isTabsChanged()
public void printFile()
public TransGraph getActiveTransGraph()
public JobGraph getActiveJobGraph()
public EngineMetaInterface getActiveMeta()
public TabItemInterface getActiveTabitem()
public TransMeta getActiveTransformation()
public JobMeta getActiveJob()
public UndoInterface getActiveUndoInterface()
public TransMeta[] getLoadedTransformations()
public JobMeta[] getLoadedJobs()
public void saveSettings()
public void loadSettings()
public void changeLooks()
public void undoAction(UndoInterface undoInterface)
public void redoAction(UndoInterface undoInterface)
public void setUndoMenu(UndoInterface undoInterface)
undoInterface
- the object which holds the undo/redo informationpublic void addUndoNew(UndoInterface undoInterface, Object[] obj, int[] position)
public void addUndoNew(UndoInterface undoInterface, Object[] obj, int[] position, boolean nextAlso)
public void addUndoDelete(UndoInterface undoInterface, Object[] obj, int[] position)
public void addUndoDelete(UndoInterface undoInterface, Object[] obj, int[] position, boolean nextAlso)
public void addUndoPosition(UndoInterface undoInterface, Object[] obj, int[] pos, Point[] prev, Point[] curr)
addUndoPosition
in interface AddUndoPositionInterface
public void addUndoChange(UndoInterface undoInterface, Object[] from, Object[] to, int[] pos)
public void addUndoChange(UndoInterface undoInterface, Object[] from, Object[] to, int[] pos, boolean nextAlso)
public void checkTrans(TransMeta transMeta)
public void checkTrans(TransMeta transMeta, boolean only_selected)
only_selected
- True: Check only the selected steps...public void showLastTransCheck()
checkTrans()
public void analyseImpact(TransMeta transMeta)
public void showLastImpactAnalyses(TransMeta transMeta)
public void toClipboard(String clipText)
public String fromClipboard()
public void pasteTransformation()
public void pasteJob()
public void copyTransformation(TransMeta transMeta)
public void copyJob(JobMeta jobMeta)
public void copyTransformationImage(TransMeta transMeta)
public HasDatabasesInterface getActiveHasDatabasesInterface()
public void createDatabaseWizard()
public List<DatabaseMeta> getActiveDatabases()
public void copyTableWizard()
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
public void handleStartOptions(CommandLineOption[] options)
public void start(CommandLineOption[] options) throws KettleException
KettleException
public static CommandLineOption getCommandLineOption(CommandLineOption[] options, String opt)
public static CommandLineOption[] getCommandLineArgs(List<String> args)
public void loadLastUsedFileAtStartup(LastUsedFile lastUsedFile, String repositoryName) throws KettleException
LastUsedFile
residing the the Repository
with repoName
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.lastUsedFile
- the LastUsedFile
being loadedrepositoryName
- the name of the Repository
containing the LastUsedFile
KettleException
public void loadLastUsedFile(LastUsedFile lastUsedFile, String repositoryName) throws KettleException
LastUsedFile
residing the the Repository
with repoName
, and "tracks" it by
adding it to the "recent" files collection.lastUsedFile
- the LastUsedFile
being loadedrepositoryName
- the name of the Repository
containing the LastUsedFile
KettleException
public boolean recentRepoFileExists(String repo, String indexStr)
LastUsedFile
at the given index
within the PropsUI.getLastUsedRepoFiles()
collection exists within the given repo
Repository
,
and false otherwise.repo
- the Repository
containing the fileindexStr
- the String index of the file within the last used repo file collectionLastUsedFile
at the given index
within the PropsUI.getLastUsedRepoFiles()
collection exists within the given repo
Repository
,
and false otherwiseKettleException
public LastUsedFile getLastUsedRepoFile(String repo, String indexStr)
public void generateFieldMapping(TransMeta transMeta, StepMeta stepMeta)
stepMeta
- The target step to map against.public boolean isDefinedSchemaExist(String[] schemaNames)
public void editClustering(TransMeta transMeta, StepMeta stepMeta)
stepMeta
- The step to set the clustering schema for.public void editClustering(TransMeta transMeta, List<StepMeta> stepMetas)
stepMetas
- The steps (at least one!) to set the clustering schema for.public void createKettleArchive(TransMeta transMeta)
public void newPartitioningSchema(TransMeta transMeta)
public void newClusteringSchema(TransMeta transMeta)
public void newSlaveServer(HasSlaveServersInterface hasSlaveServersInterface)
public void delSlaveServer(HasSlaveServersInterface hasSlaveServersInterface, SlaveServer slaveServer)
protected void editSlaveServer(SlaveServer slaveServer)
public void sendTransformationXMLToSlaveServer(TransMeta transMeta, TransExecutionConfiguration executionConfiguration)
executionConfiguration
- public void runFile()
public void runOptionsFile()
public void replayTransformation()
public void previewFile()
public void debugFile()
public void executeFile(boolean local, boolean remote, boolean cluster, boolean preview, boolean debug, Date replayDate, boolean safe, boolean show)
public void executeTransformation(TransMeta transMeta, boolean local, boolean remote, boolean cluster, boolean preview, boolean debug, Date replayDate, boolean safe, LogLevel logLevel)
public void executeJob(JobMeta jobMeta, boolean local, boolean remote, Date replayDate, boolean safe, String startCopyName, int startCopyNr)
public void addSpoonSlave(SlaveServer slaveServer)
public void addJobHistory(JobMeta jobMeta, boolean select)
public void paste()
public JobEntryCopy newJobEntry(JobMeta jobMeta, String typeDesc, boolean openit)
public JobEntryDialogInterface getJobEntryDialog(JobEntryInterface jei, JobMeta jobMeta)
public StepDialogInterface getStepEntryDialog(StepMetaInterface stepMeta, TransMeta transMeta, String stepName)
public void editJobEntry(JobMeta jobMeta, JobEntryCopy je)
public void deleteJobEntryCopies(JobMeta jobMeta, JobEntryCopy[] jobEntry)
public void deleteJobEntryCopies(JobMeta jobMeta, JobEntryCopy jobEntry)
public void newJobHop(JobMeta jobMeta, JobEntryCopy fr, JobEntryCopy to)
public void ripDBWizard()
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
public JobMeta ripDB(List<DatabaseMeta> databases, String jobName, RepositoryDirectory repdir, String directory, DatabaseMeta sourceDbInfo, DatabaseMeta targetDbInfo, String[] tables)
public void setCoreObjectsState(int state)
state
- state to setpublic int getCoreObjectsState()
public LogChannelInterface getLog()
public Repository getRepository()
public void setRepository(Repository rep)
public void setRepositoryName(String repoName)
public void addTransGraph(TransMeta transMeta)
addTransGraph
in interface SpoonInterface
public void addJobGraph(JobMeta jobMeta)
addJobGraph
in interface SpoonInterface
public boolean addSpoonBrowser(String name, String urlString, boolean isURL, org.eclipse.swt.browser.LocationListener locationListener, Map<String,Runnable> functions, boolean showControls)
public boolean addSpoonBrowser(String name, String urlString, org.eclipse.swt.browser.LocationListener locationListener, boolean showControls)
public boolean addSpoonBrowser(String name, String urlString, org.eclipse.swt.browser.LocationListener locationListener)
public boolean addSpoonBrowser(String name, String urlString)
addSpoonBrowser
in interface SpoonInterface
public TransExecutionConfiguration getTransExecutionConfiguration()
public String makeTabName(EngineMetaInterface transMeta, boolean showingLocation)
public void newConnection()
public void getSQL()
public boolean overwritePrompt(String message, String rememberText, String rememberPropertyName)
overwritePrompt
in interface OverwritePrompter
public Object[] messageDialogWithToggle(String dialogTitle, Object image, String message, int dialogImageType, String[] buttonLabels, int defaultIndex, String toggleMessage, boolean toggleState)
messageDialogWithToggle
in interface SpoonInterface
public boolean messageBox(String message, String text, boolean allowCancel, int type)
messageBox
in interface SpoonInterface
public TransExecutionConfiguration getTransPreviewExecutionConfiguration()
public void setTransPreviewExecutionConfiguration(TransExecutionConfiguration previewExecutionConfiguration)
previewExecutionConfiguration
- the previewExecutionConfiguration to setpublic TransExecutionConfiguration getTransDebugExecutionConfiguration()
public void setTransDebugExecutionConfiguration(TransExecutionConfiguration debugExecutionConfiguration)
debugExecutionConfiguration
- the debugExecutionConfiguration to setpublic void setTransExecutionConfiguration(TransExecutionConfiguration executionConfiguration)
executionConfiguration
- the executionConfiguration to setpublic JobExecutionConfiguration getJobExecutionConfiguration()
public void setJobExecutionConfiguration(JobExecutionConfiguration jobExecutionConfiguration)
jobExecutionConfiguration
- the jobExecutionConfiguration to setpublic void update(ChangedFlagInterface o, Object arg)
update
in interface PDIObserver
public void consume(LifeEventInfo info)
consume
in interface LifeEventHandler
public void setLog()
public org.eclipse.swt.widgets.Display getDisplay()
public void zoomIn()
public void zoomOut()
public void zoom100Percent()
public void setParametersAsVariablesInUI(NamedParams namedParameters, VariableSpace space)
public void browseVersionHistory()
public Trans findActiveTrans(Job job, JobEntryCopy jobEntryCopy)
public Job findActiveJob(Job job, JobEntryCopy jobEntryCopy)
public Object getSelectionObject()
public RepositoryDirectoryInterface getDefaultSaveLocation(RepositoryElementInterface repositoryElement)
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
in interface org.pentaho.ui.xul.XulEventSource
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
in interface org.pentaho.ui.xul.XulEventSource
protected void firePropertyChange(String attr, Object previousVal, Object newVal)
public Object getData()
getData
in interface org.pentaho.ui.xul.impl.XulEventHandler
public String getName()
getName
in interface org.pentaho.ui.xul.impl.XulEventHandler
public org.pentaho.ui.xul.XulDomContainer getXulDomContainer()
getXulDomContainer
in interface org.pentaho.ui.xul.impl.XulEventHandler
public void setData(Object arg0)
setData
in interface org.pentaho.ui.xul.impl.XulEventHandler
public void setName(String arg0)
setName
in interface org.pentaho.ui.xul.impl.XulEventHandler
public void setXulDomContainer(org.pentaho.ui.xul.XulDomContainer arg0)
setXulDomContainer
in interface org.pentaho.ui.xul.impl.XulEventHandler
public RepositorySecurityManager getSecurityManager()
public void displayDbDependancies()
public void fireMenuControlers()
public void hideSplash()
public void setMainToolbarVisible(boolean visible)
visible
- public void setMenuBarVisible(boolean visible)
protected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
createContents
in class org.eclipse.jface.window.Window
public void start()
public String getStartupPerspective()
public org.pentaho.metastore.stores.delegate.DelegatingMetaStore getMetaStore()
public void setMetaStore(org.pentaho.metastore.stores.delegate.DelegatingMetaStore metaStore)
protected void handleShellCloseEvent()
handleShellCloseEvent
in class org.eclipse.jface.window.Window
public void showAuthenticationOptions()
public void createExpandedContent(String url)
public void hideExpandedContent()
public void closeExpandedContent()
public void showExpandedContent()
public org.eclipse.swt.widgets.Composite getDesignParent()
public static Boolean isUnsupportedBrowserEnvironment()
public static Boolean isWebkitUnavailable()
public static String getAvailableBrowser()
public void disableCutCopyPaste()
public void enableCutCopyPaste()
Copyright © 2019 Hitachi Vantara. All rights reserved.