{
final ClassLoader classLoader = ObjectUtilities.getClassLoader(AbstractActionPlugin.class);
try
{
final Class aClass = Class.forName(className, true, classLoader);
final Constructor constructor = aClass.getConstructor(new Class[]{Frame.class});
return (ExportDialog) constructor.newInstance(new Object[]{proxy});
}
catch (Exception e)
{
AbstractExportActionPlugin.logger.error(messages.getErrorString(
"AbstractExportActionPlugin.ERROR_0001_FAILED_EXPORT_DIALOG_CREATION", className)); //$NON-NLS-1$
}
}
else if (proxy instanceof Dialog)
{
final ClassLoader classLoader = ObjectUtilities.getClassLoader(AbstractActionPlugin.class);
try
{
final Class aClass = Class.forName(className, true, classLoader);
final Constructor constructor = aClass.getConstructor(new Class[]{Dialog.class});
return (ExportDialog) constructor.newInstance(new Object[]{proxy});
}
catch (Exception e)
{
AbstractExportActionPlugin.logger.error(messages.getErrorString(
"AbstractExportActionPlugin.ERROR_0002_FAILED_EXPORT_DIALOG_CREATION", className), e); //$NON-NLS-1$