Search in sources :

Example 1 with TransHopDialog

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();
}
Also used : TransHopDialog(org.pentaho.di.ui.trans.dialog.TransHopDialog) ValueMetaString(org.pentaho.di.core.row.value.ValueMetaString) TransHopMeta(org.pentaho.di.trans.TransHopMeta)

Example 2 with TransHopDialog

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);
    }
}
Also used : TransHopDialog(org.pentaho.di.ui.trans.dialog.TransHopDialog) TransHopMeta(org.pentaho.di.trans.TransHopMeta)

Aggregations

TransHopMeta (org.pentaho.di.trans.TransHopMeta)2 TransHopDialog (org.pentaho.di.ui.trans.dialog.TransHopDialog)2 ValueMetaString (org.pentaho.di.core.row.value.ValueMetaString)1