Java Code Examples for org.pentaho.di.trans.step.StepMeta#setChanged()
The following examples show how to use
org.pentaho.di.trans.step.StepMeta#setChanged() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SpoonStepsDelegate.java From pentaho-kettle with Apache License 2.0 | 6 votes |
public void editStepErrorHandling( TransMeta transMeta, StepMeta stepMeta ) { if ( stepMeta != null && stepMeta.supportsErrorHandling() ) { StepErrorMeta stepErrorMeta = stepMeta.getStepErrorMeta(); if ( stepErrorMeta == null ) { stepErrorMeta = new StepErrorMeta( transMeta, stepMeta ); } List<StepMeta> targetSteps = transMeta.findNextSteps( stepMeta ); // now edit this stepErrorMeta object: StepErrorMetaDialog dialog = new StepErrorMetaDialog( spoon.getShell(), stepErrorMeta, transMeta, targetSteps ); if ( dialog.open() ) { stepMeta.setStepErrorMeta( stepErrorMeta ); stepMeta.setChanged(); spoon.refreshGraph(); } } }
Example 2
Source File: TransGraph.java From pentaho-kettle with Apache License 2.0 | 6 votes |
public void renameStep( StepMeta stepMeta, String stepname ) { String newname = stepname; StepMeta smeta = transMeta.findStep( newname, stepMeta ); int nr = 2; while ( smeta != null ) { newname = stepname + " " + nr; smeta = transMeta.findStep( newname ); nr++; } if ( nr > 2 ) { stepname = newname; modalMessageDialog( getString( "Spoon.Dialog.StepnameExists.Title" ), getString( "Spoon.Dialog.StepnameExists.Message", stepname ), SWT.OK | SWT.ICON_INFORMATION ); } stepMeta.setName( stepname ); stepMeta.setChanged(); spoon.refreshTree(); // to reflect the new name spoon.refreshGraph(); }
Example 3
Source File: TransGraph.java From pentaho-kettle with Apache License 2.0 | 5 votes |
public void editDescription( StepMeta stepMeta ) { String title = BaseMessages.getString( PKG, "TransGraph.Dialog.StepDescription.Title" ); String message = BaseMessages.getString( PKG, "TransGraph.Dialog.StepDescription.Message" ); EnterTextDialog dd = new EnterTextDialog( shell, title, message, stepMeta.getDescription() ); String d = dd.open(); if ( d != null ) { stepMeta.setDescription( d ); stepMeta.setChanged(); spoon.setShellText(); } }
Example 4
Source File: SparkTuningStepHandler.java From pentaho-kettle with Apache License 2.0 | 5 votes |
@SuppressWarnings( "squid:S1181" ) public void openSparkTuning() { TransGraph transGraph = Spoon.getInstance().getActiveTransGraph(); StepMeta stepMeta = transGraph.getCurrentStep(); String title = BaseMessages.getString( PKG, "TransGraph.Dialog.SparkTuning.Title" ) + " - " + stepMeta.getName(); List<String> tuningProperties = SparkTunableProperties.getProperties( stepMeta.getStepID() ); PropertiesComboDialog dialog = new PropertiesComboDialog( transGraph.getParent().getShell(), transGraph.getTransMeta(), stepMeta.getAttributes( SPARK_TUNING_PROPERTIES ), title, Const.getDocUrl( BaseMessages.getString( PKG, "SparkTuning.Help.Url" ) ), BaseMessages.getString( PKG, "SparkTuning.Help.Title" ), BaseMessages.getString( PKG, "SparkTuning.Help.Header" ) ); dialog.setComboOptions( tuningProperties ); try { Map<String, String> properties = dialog.open(); // null means the cancel button was clicked otherwise ok was clicked if ( null != properties ) { stepMeta.setAttributes( SPARK_TUNING_PROPERTIES, properties ); stepMeta.setChanged(); transGraph.getSpoon().setShellText(); } } catch ( Throwable e ) { new ErrorDialog( Spoon.getInstance().getShell(), BaseMessages.getString( PKG, "SparkTuning.UnexpectedError" ), BaseMessages .getString( PKG, "SparkTuning.UnexpectedError" ), e ); } }