Search in sources :

Example 1 with KettlePropertiesFileDialog

use of org.pentaho.di.ui.core.dialog.KettlePropertiesFileDialog in project pentaho-kettle by pentaho.

the class Spoon method editKettlePropertiesFile.

public void editKettlePropertiesFile() {
    KettlePropertiesFileDialog dialog = new KettlePropertiesFileDialog(shell, SWT.NONE);
    Map<String, String> newProperties = dialog.open();
    if (newProperties != null) {
        for (String name : newProperties.keySet()) {
            String value = newProperties.get(name);
            applyVariableToAllLoadedObjects(name, value);
            // Also set as a JVM property
            // 
            System.setProperty(name, value);
        }
    }
}
Also used : KettlePropertiesFileDialog(org.pentaho.di.ui.core.dialog.KettlePropertiesFileDialog) ValueMetaString(org.pentaho.di.core.row.value.ValueMetaString)

Aggregations

ValueMetaString (org.pentaho.di.core.row.value.ValueMetaString)1 KettlePropertiesFileDialog (org.pentaho.di.ui.core.dialog.KettlePropertiesFileDialog)1