anchorChooser.setItems( (String[]) getAllTocNode( rootTocNode ).toArray( new String[0] ) );
anchorChooser.setItems( (String[]) getAllTocDisplayString( rootTocNode ).toArray( new String[0] ) ); anchorChooser.setData( getAllTocBookmark( rootTocNode ) );
	private void initAnchorChooser( Object handle, boolean isToc )	{		anchorChooser.removeAll( );		if ( handle instanceof ReportDesignHandle )		{			if ( isToc )			{				anchorChooser.setItems( (String[]) ( (ReportDesignHandle) handle ).getAllTocs( )						.toArray( new String[0] ) );			}			else			{				anchorChooser.setItems( (String[]) ( (ReportDesignHandle) handle ).getAllBookmarks( )						.toArray( new String[0] ) );			}		}		else if ( handle instanceof IReportDocument )		{			if ( isToc )			{				TOCNode rootTocNode = ( (IReportDocument) handle ).findTOC( null );				anchorChooser.setItems( (String[]) getAllTocNode( rootTocNode ).toArray( new String[0] ) );			}			else			{				anchorChooser.setItems( (String[]) ( (IReportDocument) handle ).getBookmarks( )						.toArray( new String[0] ) );			}		}		String bookmark = inputHandle.getTargetBookmark( );		String[] chooserValues = anchorChooser.getItems( );		if ( bookmark != null && chooserValues != null )		{			for ( int i = 0; i < chooserValues.length; i++ )			{				if ( bookmark.equals( chooserValues[i] ) )					anchorChooser.select( i );			}		}		anchorChooser.setEnabled( anchorChooser.getItemCount( ) > 0 );		bookmarkEditor.setText( "" ); //$NON-NLS-1$	}