{
return testStep.getSource( true );
}
};
sourceField.setToolTipText( "The filename/url or referring system-property to load properties from" );
sourceField.getDocument().addDocumentListener( new DocumentListenerAdapter()
{
public void update( Document document )
{
if( updatingSource )
return;
updatingSource = true;
testStep.setSource( sourceField.getText() );
updatingSource = false;
}
} );
toolbar.addRelatedGap();
toolbar.addFixed( sourceField );
JButton setSourceButton = UISupport.createToolbarButton( new SetPropertiesSourceAction() );
toolbar.addRelatedGap();
toolbar.add( setSourceButton );
toolbar.addSeparator();
toolbar.add( new JLabel( "Save to:" ) );
targetField = new JTextField( testStep.getTarget(), 20 )
{
@Override
public String getToolTipText( MouseEvent event )
{
return testStep.getTarget( true );
}
};
targetField.setToolTipText( "The filename/url or referring system-property to save properties to" );
targetField.getDocument().addDocumentListener( new DocumentListenerAdapter()
{
public void update( Document document )
{
if( updatingTarget )
return;