public void setEvaluation( boolean e ) { if ( evaluation != e ) { setChanged(); } evaluation = e; }
public void setUnconditional() { if ( !unconditional ) { setChanged(); } unconditional = true; }
/** * @param unconditional * the unconditional to set */ public void setUnconditional( boolean unconditional ) { if ( this.unconditional != unconditional ) { setChanged(); } this.unconditional = unconditional; }
public void setConditional() { if ( unconditional ) { setChanged(); } unconditional = false; }
public void setSplit( boolean split ) { if ( this.split != split ) { setChanged(); } this.split = split; }
public void setEvaluation() { if ( !evaluation ) { setChanged(); } setEvaluation( true ); }
/** * Clears the different changed flags of the job. */ @Override public void clearChanged() { changedEntries = false; changedHops = false; for ( int i = 0; i < nrJobEntries(); i++ ) { JobEntryCopy entry = getJobEntry( i ); entry.setChanged( false ); } for ( JobHopMeta hi : jobhops ) { // Look at all the hops hi.setChanged( false ); } super.clearChanged(); }
public void flipHop() { selectionRegion = null; JobEntryCopy origFrom = currentHop.getFromEntry(); JobEntryCopy origTo = currentHop.getToEntry(); currentHop.setFromEntry( currentHop.getToEntry() ); currentHop.setToEntry( origFrom ); boolean cancel = false; if ( jobMeta.hasLoop( currentHop.getToEntry() ) ) { MessageBox mb = new MessageBox( shell, SWT.OK | SWT.CANCEL | SWT.ICON_WARNING ); mb.setMessage( BaseMessages.getString( PKG, "JobGraph.Dialog.HopFlipCausesLoop.Message" ) ); mb.setText( BaseMessages.getString( PKG, "JobGraph.Dialog.HopCausesLoop.Title" ) ); int choice = mb.open(); if ( choice == SWT.CANCEL ) { cancel = true; currentHop.setFromEntry( origFrom ); currentHop.setToEntry( origTo ); } } if ( !cancel ) { currentHop.setChanged(); } spoon.refreshGraph(); spoon.refreshTree(); spoon.setShellText(); }