Search in sources :

Example 1 with EnterStringsDialog

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

the class Spoon method setVariables.

public void setVariables() {
    fillVariables(variables);
    // Now ask the use for more info on these!
    EnterStringsDialog esd = new EnterStringsDialog(shell, SWT.NONE, variables);
    esd.setTitle(BaseMessages.getString(PKG, "Spoon.Dialog.SetVariables.Title"));
    esd.setMessage(BaseMessages.getString(PKG, "Spoon.Dialog.SetVariables.Message"));
    esd.setReadOnly(false);
    esd.setShellImage(GUIResource.getInstance().getImageVariable());
    if (esd.open() != null) {
        applyVariables();
    }
}
Also used : EnterStringsDialog(org.pentaho.di.ui.core.dialog.EnterStringsDialog)

Example 2 with EnterStringsDialog

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

the class Spoon method showVariables.

public void showVariables() {
    fillVariables(variables);
    // Now ask the use for more info on these!
    EnterStringsDialog esd = new EnterStringsDialog(shell, SWT.NONE, variables);
    esd.setTitle(BaseMessages.getString(PKG, "Spoon.Dialog.ShowVariables.Title"));
    esd.setMessage(BaseMessages.getString(PKG, "Spoon.Dialog.ShowVariables.Message"));
    esd.setReadOnly(true);
    esd.setShellImage(GUIResource.getInstance().getImageVariable());
    esd.open();
}
Also used : EnterStringsDialog(org.pentaho.di.ui.core.dialog.EnterStringsDialog)

Example 3 with EnterStringsDialog

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

the class Spoon method showArguments.

public void showArguments() {
    RowMetaAndData allArgs = new RowMetaAndData();
    for (int ii = 0; ii < arguments.length; ++ii) {
        allArgs.addValue(new ValueMetaString(Props.STRING_ARGUMENT_NAME_PREFIX + (1 + ii)), arguments[ii]);
    }
    // Now ask the use for more info on these!
    EnterStringsDialog esd = new EnterStringsDialog(shell, SWT.NONE, allArgs);
    esd.setTitle(BaseMessages.getString(PKG, "Spoon.Dialog.ShowArguments.Title"));
    esd.setMessage(BaseMessages.getString(PKG, "Spoon.Dialog.ShowArguments.Message"));
    esd.setReadOnly(true);
    esd.setShellImage(GUIResource.getInstance().getImageLogoSmall());
    esd.open();
}
Also used : ValueMetaString(org.pentaho.di.core.row.value.ValueMetaString) RowMetaAndData(org.pentaho.di.core.RowMetaAndData) EnterStringsDialog(org.pentaho.di.ui.core.dialog.EnterStringsDialog) Point(org.pentaho.di.core.gui.Point) KettleExtensionPoint(org.pentaho.di.core.extension.KettleExtensionPoint)

Aggregations

EnterStringsDialog (org.pentaho.di.ui.core.dialog.EnterStringsDialog)3 RowMetaAndData (org.pentaho.di.core.RowMetaAndData)1 KettleExtensionPoint (org.pentaho.di.core.extension.KettleExtensionPoint)1 Point (org.pentaho.di.core.gui.Point)1 ValueMetaString (org.pentaho.di.core.row.value.ValueMetaString)1