bookmarkEditor = new Text( displayArea, SWT.BORDER | SWT.SINGLE ); bookmarkEditor.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); bookmarkEditor.addModifyListener( new ModifyListener( ) {
bookmarkChooser = new Combo( displayArea, SWT.BORDER | SWT.READ_ONLY ); GridData gd = new GridData( GridData.FILL_HORIZONTAL ); gd.horizontalSpan = 2; bookmarkChooser.setLayoutData( gd ); bookmarkChooser.addSelectionListener( new SelectionAdapter( ) {
	private void createBookmarkBar( boolean isRequired )	{		String label;		if ( isRequired )		{			label = REQUIED_MARK + LABEL_BOOKMARK;		}		else		{			label = LABEL_BOOKMARK;		}		new Label( displayArea, SWT.NONE ).setText( label );		bookmarkEditor = new Text( displayArea, SWT.BORDER | SWT.SINGLE );		bookmarkEditor.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );		bookmarkEditor.addModifyListener( new ModifyListener( ) {			public void modifyText( ModifyEvent e )			{				updateButtons( );			}		} );		createExpressionButton( displayArea, bookmarkEditor );	}