96979899100101102103104
public Content( final IText text ) { if( text == null ) throw new IllegalArgumentException( "parameter 'text' is null" ); text_ = text; selection_ = new Selection( text ); selection_.register( this ); manager_ = new UndoManager( UNDO_STACK_SIZE ); }
5657585960616263
protected void setUp() { mockText = (IText)createMock( IText.class ); mockView = (ISelectionView)createMock( ISelectionView.class ); selection = new Selection( mockText ); selection.register( mockView ); }