public void editDescription( StepMeta stepMeta ) { String title = BaseMessages.getString( PKG, "TransGraph.Dialog.StepDescription.Title" ); String message = BaseMessages.getString( PKG, "TransGraph.Dialog.StepDescription.Message" ); EnterTextDialog dd = new EnterTextDialog( shell, title, message, stepMeta.getDescription() ); String d = dd.open(); if ( d != null ) { stepMeta.setDescription( d ); stepMeta.setChanged(); spoon.setShellText(); } }
private static StepMeta createTestMeta() throws Exception { StepMetaInterface stepMetaInterface = mock( AbstractStepMeta.class ); when( stepMetaInterface.clone() ).thenReturn( stepMetaInterface ); StepMeta meta = new StepMeta( STEP_ID, "stepname", stepMetaInterface ); meta.setSelected( true ); meta.setDistributes( false ); meta.setCopiesString( "2" ); meta.setLocation( 1, 2 ); meta.setDraw( true ); meta.setDescription( "description" ); meta.setTerminator( true ); meta.setClusterSchemaName( "clusterSchemaName" ); boolean shouldDistribute = rand.nextBoolean(); meta.setDistributes( shouldDistribute ); if ( shouldDistribute ) { meta.setRowDistribution( selectRowDistribution() ); } Map<String, Map<String, String>> attributes = new HashMap<String, Map<String, String>>(); Map<String, String> map1 = new HashMap<String, String>(); map1.put( "1", "1" ); Map<String, String> map2 = new HashMap<String, String>(); map2.put( "2", "2" ); attributes.put( "qwerty", map1 ); attributes.put( "asdfg", map2 ); meta.setAttributesMap( attributes ); meta.setStepPartitioningMeta( createStepPartitioningMeta( "stepMethod", "stepSchema" ) ); meta.setTargetStepPartitioningMeta( createStepPartitioningMeta( "targetMethod", "targetSchema" ) ); meta.setClusterSchema( new ClusterSchema( "cluster_schema", Collections.<SlaveServer>emptyList() ) ); return meta; }
stepMeta.setDescription( "stepDescription" );
fromstep.setDraw( true ); fromstep .setDescription( BaseMessages.getString( PKG, "Spoon.RipDB.Monitor.FromStep.Description" ) + tables[i] + BaseMessages.getString( PKG, "Spoon.RipDB.Monitor.FromStep.Description2" ) + sourceDbInfo + "]" ); tostep.setDraw( true ); tostep .setDescription( BaseMessages.getString( PKG, "Spoon.RipDB.Monitor.ToStep.Description1" ) + tables[i] + BaseMessages.getString( PKG, "Spoon.RipDB.Monitor.ToStep.Description2" ) + targetDbInfo + "]" );
fromstep.setLocation( 150, 100 ); fromstep.setDraw( true ); fromstep.setDescription( BaseMessages.getString( PKG, "Spoon.Message.Note.ReadInformationFromTableOnDB", tablename, sourceDBInfo.getDatabaseName() ) ); meta.addStep( fromstep ); selstep.setLocation( 350, 100 ); selstep.setDraw( true ); selstep.setDescription( BaseMessages.getString( PKG, "Spoon.Message.Note.RenamesReservedWords", targetDBInfo.getPluginId() ) ); // meta.addStep( selstep ); tostep.setLocation( 550, 100 ); tostep.setDraw( true ); tostep.setDescription( BaseMessages.getString( PKG, "Spoon.Message.Note.WriteInformationToTableOnDB2", tablename, targetDBInfo.getDatabaseName() ) ); meta.addStep( tostep );
stepMeta.setDescription( r.getString( KettleDatabaseRepository.FIELD_STEP_DESCRIPTION, null ) );
dummyStep.setLocation( infoStep.getLocation().x + ( SPLIT / 2 ), infoStep.getLocation().y ); dummyStep.setDraw( true ); dummyStep.setDescription( "This step merges the data from the various data streams coming " + "from the slave transformations.\nIt does that right before it hits the step that " + "reads from a specific (info) step." );
stepMeta.setDescription( getString( stepNode, PROP_DESCRIPTION ) );