if ( targetBookmarkButton.getSelection( ) ) { inputHandle.setTargetBookmarkType( DesignChoiceConstants.ACTION_BOOKMARK_TYPE_BOOKMARK ); } else if ( tocButton.getSelection( ) ) { inputHandle.setTargetBookmarkType( DesignChoiceConstants.ACTION_BOOKMARK_TYPE_TOC ); }
}  if ( targetBookmarkButton.getSelection( ) ) { inputHandle.setTargetBookmarkType( DesignChoiceConstants.ACTION_BOOKMARK_TYPE_BOOKMARK ); } else if ( tocButton.getSelection( ) ) { inputHandle.setTargetBookmarkType( DesignChoiceConstants.ACTION_BOOKMARK_TYPE_TOC );
	protected void okPressed( )	{		try		{			// Remove original settings			inputHandle.setURI( null );			inputHandle.setTargetBookmark( null );			inputHandle.setTargetWindow( null );			inputHandle.setReportName( null );			inputHandle.setFormatType( null );			inputHandle.getMember( Action.PARAM_BINDINGS_MEMBER )					.setValue( null );			if ( DesignChoiceConstants.ACTION_LINK_TYPE_HYPERLINK.equals( selectedType ) )			{				inputHandle.setURI( locationEditor.getText( ).trim( ) );				inputHandle.setTargetWindow( ChoiceSetFactory.getValueFromChoiceSet( targetChooser.getText( ),						CHOICESET_TARGET ) );			}			else if ( DesignChoiceConstants.ACTION_LINK_TYPE_BOOKMARK_LINK.equals( selectedType ) )			{				inputHandle.setTargetBookmark( bookmarkEditor.getText( ).trim( ) );			}			else if ( DesignChoiceConstants.ACTION_LINK_TYPE_DRILL_THROUGH.equals( selectedType ) )			{				if ( reportDesignButton.getSelection( ) )				{					inputHandle.setTargetFileType( DesignChoiceConstants.ACTION_TARGET_FILE_TYPE_REPORT_DESIGN );					inputHandle.setReportName( locationEditor.getText( ).trim( ) );					for ( Iterator iter = bindingList.iterator( ); iter.hasNext( ); )					{						inputHandle.addParamBinding( (ParamBinding) iter.next( ) );					}				}				else if ( reportDocumentButton.getSelection( ) )				{					inputHandle.setTargetFileType( DesignChoiceConstants.ACTION_TARGET_FILE_TYPE_REPORT_DOCUMENT );					inputHandle.setReportName( documentEditor.getText( ).trim( ) );				}				if ( !StringUtil.isBlank( bookmarkEditor.getText( ) ) )				{					inputHandle.setTargetBookmark( bookmarkEditor.getText( )							.trim( ) );					if ( targetBookmarkButton.getSelection( ) )					{						inputHandle.setTargetBookmarkType( DesignChoiceConstants.ACTION_BOOKMARK_TYPE_BOOKMARK );					}					else if ( tocButton.getSelection( ) )					{						inputHandle.setTargetBookmarkType( DesignChoiceConstants.ACTION_BOOKMARK_TYPE_TOC );					}				}				if ( sameWindowButton.getSelection( ) )				{					inputHandle.setTargetWindow( DesignChoiceConstants.TARGET_NAMES_TYPE_SELF );				}				else				{					inputHandle.setTargetWindow( DesignChoiceConstants.TARGET_NAMES_TYPE_BLANK );				}				if ( htmlButton.getSelection( ) )				{					inputHandle.setFormatType( "html" ); //$NON-NLS-1$				}				else				{					inputHandle.setFormatType( DesignChoiceConstants.FORMAT_TYPE_PDF );				}			}			inputHandle.setLinkType( selectedType );		}		catch ( SemanticException e )		{			ExceptionHandler.handle( e );		}		setResult( inputHandle );		super.okPressed( );	}