use of org.pentaho.di.ui.trans.dialog.TransHopDialog in project pentaho-kettle by pentaho.
the class Spoon method editHop.
public void editHop(TransMeta transMeta, TransHopMeta transHopMeta) {
// Backup situation BEFORE edit:
String name = transHopMeta.toString();
TransHopMeta before = (TransHopMeta) transHopMeta.clone();
TransHopDialog hd = new TransHopDialog(shell, SWT.NONE, transHopMeta, transMeta);
if (hd.open() != null) {
// Backup situation for redo/undo:
TransHopMeta after = (TransHopMeta) transHopMeta.clone();
addUndoChange(transMeta, new TransHopMeta[] { before }, new TransHopMeta[] { after }, new int[] { transMeta.indexOfTransHop(transHopMeta) });
String newName = transHopMeta.toString();
if (!name.equalsIgnoreCase(newName)) {
refreshTree();
// color, nr of copies...
refreshGraph();
}
}
setShellText();
}
use of org.pentaho.di.ui.trans.dialog.TransHopDialog in project pentaho-kettle by pentaho.
the class Spoon method newHop.
public void newHop(TransMeta transMeta, StepMeta fr, StepMeta to) {
TransHopMeta hi = new TransHopMeta(fr, to);
TransHopDialog hd = new TransHopDialog(shell, SWT.NONE, hi, transMeta);
if (hd.open() != null) {
newHop(transMeta, hi);
}
}
Aggregations