{
checkBoxPath = AnyConverter.toString( args[0] );
}
catch ( IllegalArgumentException e )
{
throw new RuntimeException( "SecurityDialog::initialize: " + e.getMessage() );
}
LogUtils.DEBUG( "path: " + checkBoxPath );
checkBoxDialog = true;
if( checkBoxPath.length() > lineWrapLength )
{
extraPathLine = true;
cbIncrH += lineWrapH;
checkBoxPath2 = checkBoxPath.substring( lineWrapLength );
checkBoxPath = checkBoxPath.substring( 0, lineWrapLength );
}
}
else
{
LogUtils.DEBUG( "no checkbox: # of args=" +
args.length );
cbIncrW = 0;
cbIncrH = 0;
checkBoxDialog = false;
}
// now try and create the dialog
try
{
_xDialog = createDialog();
}
catch ( com.sun.star.uno.Exception e )
{
LogUtils.DEBUG( "Couldn't create dialog" );
LogUtils.DEBUG( "uno message: " + e.getMessage());
throw new RuntimeException( e.getMessage() );
}
catch ( Exception e )
{
LogUtils.DEBUG( "Couldn't create dialog" );
LogUtils.DEBUG( "message: " + e.getMessage());
throw new RuntimeException( e.getMessage() );
}
}