public static void main( String[] args ) throws Exception { // startup Scale ( a.k.a. PDI minimal/headless environment ) KettleClientEnvironment.getInstance().setClient( KettleClientEnvironment.ClientType.SCALE ); KettleEnvironment.init(); } }
private RowSet getEmptyResponse() { RowSet nullInputResponse = new SingleRowRowSet(); nullInputResponse.putRow( null, new Object[ fields.length ] ); nullInputResponse.setDone(); return nullInputResponse; }
public static String getStringProperty( String name, String defaultValue ) { String value = Props.isInitialized() ? Props.getInstance().getProperty( name ) : null; if ( value == null ) { value = defaultValue; } return value; }
/** * @return Returns the imageCluster. */ public Image getImageCluster() { return imageCluster.getAsBitmapForSize( display, ConstUI.SMALL_ICON_SIZE, ConstUI.SMALL_ICON_SIZE ); }
@Override protected Image renderSimple( Device device, int width, int height ) { BufferedImage area = SwingUniversalImage.createBitmap( width, height ); Graphics2D gc = SwingUniversalImage.createGraphics( area ); SwingUniversalImageSvg.render( gc, svgGraphicsNode, svgGraphicsSize, width / 2, height / 2, width, height, 0 ); gc.dispose(); return swing2swt( device, area ); }
/** * Gets the transformation filter names. * * @return the filter names * @see org.pentaho.di.core.EngineMetaInterface#getFilterNames() */ @Override public String[] getFilterNames() { return Const.getTransformationFilterNames(); }
public void setLocation( int x, int y ) { if ( x != location.x || y != location.y ) { setChanged(); } location.x = x; location.y = y; }
@Override public void setTaskName( String taskName ) { monitor.setTaskName( taskName ); } }
private void disposeUniversalImages( Collection<SwtUniversalImage> c ) { for ( SwtUniversalImage image : c ) { image.dispose(); } }
/** * Draw SVG image to Graphics2D. */ @Override protected void render( Graphics2D gc, int centerX, int centerY, int width, int height, double angleRadians ) { render( gc, svgGraphicsNode, svgGraphicsSize, centerX, centerY, width, height, angleRadians ); }
/** * A condition is empty when the condition is atomic and no left field is specified. */ public boolean isEmpty() { return ( isAtomic() && left_valuename == null ); }
public static final Counters getInstance() { if ( counters != null ) { return counters; } counters = new Counters(); return counters; }
/** * Return this singleton. Create it if it hasn't been. * * @return */ public static KettleClientEnvironment getInstance() { if ( KettleClientEnvironment.instance == null ) { KettleClientEnvironment.instance = new KettleClientEnvironment(); } return KettleClientEnvironment.instance; }
@Override public KettleException call() throws Exception { registerUIPluginObjectTypes(); KettleClientEnvironment.getInstance().setClient( KettleClientEnvironment.ClientType.SPOON ); try { KettleEnvironment.init(); } catch ( KettleException e ) { return e; } return null; } } );
/** * @return Returns the imageSlave. */ public Image getImageSlave() { return imageSlave.getAsBitmapForSize( display, ConstUI.SMALL_ICON_SIZE, ConstUI.SMALL_ICON_SIZE ); }
private static void setKettleEnvironment() throws Exception { KettleClientEnvironment.getInstance().setClient( KettleClientEnvironment.ClientType.CARTE ); KettleEnvironment.init(); }
/** * @return Returns the imageSlave. */ public Image getImageSlaveMedium() { return imageSlave.getAsBitmapForSize( display, ConstUI.MEDIUM_ICON_SIZE, ConstUI.MEDIUM_ICON_SIZE ); }
/** * @return Returns the imageSlaveTree. */ public Image getImageSlaveTree() { return imageSlaveTree.getAsBitmapForSize( display, ConstUI.MEDIUM_ICON_SIZE, ConstUI.MEDIUM_ICON_SIZE ); }
/** * @return Returns the imageStart. */ public Image getImageStart() { return imageStart.getAsBitmapForSize( display, ConstUI.ICON_SIZE, ConstUI.ICON_SIZE ); }
/** * @return the imageVariable */ public Image getImageVariable() { return imageVariable.getAsBitmapForSize( display, 13, 13 ); }