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();
}
}
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();
}
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();
}
Aggregations