public void visitFreeFormLine( final FreeFormLine ffl ) { String[] lines = ffl.getText().split( "\\n|\\r\\n" ); for ( String line : lines ) { this.buf.append( indentation ); if ( isDSLEnhanced ) { buf.append( ">" ); } this.buf.append( line + "\n" ); } }
public void visitFreeFormLine( final FreeFormLine ffl ) { String[] lines = ffl.getText().split( "\\n|\\r\\n" ); for ( String line : lines ) { this.buf.append( indentation ); if ( isDSLEnhanced ) { buf.append( ">" ); } this.buf.append( line + "\n" ); } }
private void visitFreeFormLine( FreeFormLine ffl ) { parseStringPattern( ffl.getText() ); }
private FreeFormLine visitFreeFormLine( FreeFormLine ffl ) { FreeFormLine clone = new FreeFormLine(); clone.setText( ffl.getText() ); return clone; }
private Widget createTextBox() { textArea.setTitle( Constants.INSTANCE.ThisIsADrlExpressionFreeForm() ); textArea.setText( this.action.getText() ); textArea.addValueChangeHandler( new ValueChangeHandler<String>() { public void onValueChange( ValueChangeEvent<String> event ) { action.setText( textArea.getText() ); setModified( true ); } } ); return textArea; }
public void onClick( ClickEvent event ) { final FreeFormLinePopup popup = new FreeFormLinePopup( Constants.INSTANCE.FreeFormDrl(), action.getText() ); popup.addOKClickHandler( new ClickHandler() { public void onClick( ClickEvent event ) { action.setText( popup.getText() ); textArea.setText( action.getText() ); setModified( true ); popup.hide(); } } ); popup.show(); }
final FreeFormLine ffl = (FreeFormLine) m.lhs[ 1 ]; assertEquals( "Here's something typed by the user as free-format DRL", ffl.getText() );
final FreeFormLine ffl = (FreeFormLine) m.rhs[ 0 ]; assertEquals( "Here's something typed by the user as free-format DRL", ffl.getText() );