Bug 145992 [regression] drill through to report document with toc in target does not work properly
steps to reproduce: - create 1st report - add a report element with toc entry - preview in viewer - create 2nd report - add a drill through link to the report document expected behavior: - drill through can be added actual behavior: - when select toc in target, exception was thrown out
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/HyperlinkBuilder.java
import org.eclipse.ui.ISharedImages;
import org.eclipse.ui.PlatformUI;
/**
 * The builder for hyper link
 */
public class HyperlinkBuilder extends BaseDialog
{
	private static final String TITLE = Messages.getString( "HyperlinkBuilder.DialogTitle" ); 
	private static final String LABEL_SELECT_TYPE = Messages.getString( "HyperlinkBuilder.Label.SelectType" ); 
	private static final String LABEL_LOCATION = Messages.getString( "HyperlinkBuilder.Label.Location" ); 
	private static final String LABEL_TARGET = Messages.getString( "HyperlinkBuilder.Label.Target" ); 
	private static final String LABEL_BOOKMARK = Messages.getString( "HyperlinkBuilder.Label.Bookmark" ); 
	private static final String LABEL_LINKED_EXPRESSION = Messages.getString( "HyperlinkBuilder.Label.LinkedExpression" ); 
	private static final String LABEL_REPORT = Messages.getString( "HyperlinkBuilder.Label.Report" ); 
	private static final String LABEL_REPORT_PARAMETER = Messages.getString( "HyperlinkBuilder.Label.Parameters" ); 
	private static final String LABEL_FORMAT = Messages.getString( "HyperlinkBuilder.Label.Format" ); 
	private static final String RADIO_NONE = Messages.getString( "HyperlinkBuilder.Radio.None" ); 
	private static final String RADIO_URI = Messages.getString( "HyperlinkBuilder.Radio.Uri" ); 
	private static final String RADIO_BOOKMARK = Messages.getString( "HyperlinkBuilder.Radio.Bookmark" ); 
	private static final String RADIO_DRILLTHROUGH = Messages.getString( "HyperlinkBuilder.Radio.DrillThrough" ); 
	private static final String COLUMN_PARAMETER = Messages.getString( "HyperlinkBuilder.Column.Parameters" ); 
	private static final String COLUMN_VALUE = Messages.getString( "HyperlinkBuilder.Column.Values" ); 
	private static final String COLUMN_REQUIRED = Messages.getString( "HyperlinkBuilder.ParameterRequired" ); 
	private static final Image IMAGE_OPEN_FILE = ReportPlatformUIImages.getImage( IReportGraphicConstants.ICON_OPEN_FILE );
	private static final Image REQUIRED_ICON = ReportPlatformUIImages.getImage( IReportGraphicConstants.ICON_DEFAULT );
	private static final Image ERROR_ICON = ReportPlatformUIImages.getImage( ISharedImages.IMG_OBJS_ERROR_TSK );
	private static final String ERROR_MSG_REPORT_REQUIRED = Messages.getString( "HyperlinkBuilder.ErrorMessage.ReportReqired" ); 
	private static final String ERROR_MSG_INVALID_REPORT = Messages.getString( "HyperlinkBuilder.ErrorMessage.InvalidReport" ); 
	private static final String TOOLTIP_BROWSE_FILE = Messages.getString( "HyperlinkBuilder.BrowseForFile" ); 
	private static final String TOOLTIP_EXPRESSION = Messages.getString( "HyperlinkBuilder.OpenExpression" );