当前位置: 首页>>代码示例>>Java>>正文


Java ExtendedErrorDialog类代码示例

本文整理汇总了Java中com.rapidminer.gui.tools.dialogs.ExtendedErrorDialog的典型用法代码示例。如果您正苦于以下问题:Java ExtendedErrorDialog类的具体用法?Java ExtendedErrorDialog怎么用?Java ExtendedErrorDialog使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ExtendedErrorDialog类属于com.rapidminer.gui.tools.dialogs包,在下文中一共展示了ExtendedErrorDialog类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: reportChecksumError

import com.rapidminer.gui.tools.dialogs.ExtendedErrorDialog; //导入依赖的package包/类
private void reportChecksumError(final ChecksumException e, final String failedPackageName) {
    LogService.getRoot().log(Level.INFO, I18N.getMessage(LogService.getRoot().getResourceBundle(), "com.rapid_i.deployment.update.client.UpdateManager.md5_failed", new Object[]{failedPackageName, e.getMessage()}), e);

    try {
        SwingUtilities.invokeAndWait(new Runnable() {
            public void run() {
                ExtendedErrorDialog dialog = new ExtendedErrorDialog(RapidMinerGUI.getMainFrame(), "update_md5_error", e, true, new Object[]{failedPackageName, e.getMessage()});
                dialog.setModal(true);
                dialog.setVisible(true);
            }
        });
    } catch (InvocationTargetException var4) {
        LogService.getRoot().log(Level.WARNING, "Error showing error message: " + e, e);
    } catch (InterruptedException var5) {
        ;
    }

}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:19,代码来源:MarketplaceUpdateManager.java

示例2: reportDownloadError

import com.rapidminer.gui.tools.dialogs.ExtendedErrorDialog; //导入依赖的package包/类
private void reportDownloadError(final IOException e, final String failedPackageName) {
    LogService.getRoot().log(Level.INFO, I18N.getMessage(LogService.getRoot().getResourceBundle(), "com.rapid_i.deployment.update.client.UpdateManager.md5_failed", new Object[]{failedPackageName, e.getMessage()}), e);

    try {
        SwingUtilities.invokeAndWait(new Runnable() {
            public void run() {
                ExtendedErrorDialog dialog = new ExtendedErrorDialog(RapidMinerGUI.getMainFrame(), "error_downloading_package", e, true, new Object[]{failedPackageName, e.getMessage()});
                dialog.setModal(true);
                dialog.setVisible(true);
            }
        });
    } catch (InvocationTargetException var4) {
        LogService.getRoot().log(Level.WARNING, "Error showing error message: " + e, e);
    } catch (InterruptedException var5) {
        ;
    }

}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:19,代码来源:MarketplaceUpdateManager.java

示例3: showFinalErrorMessage

import com.rapidminer.gui.tools.dialogs.ExtendedErrorDialog; //导入依赖的package包/类
/**
 * Shows the final error message dialog. This dialog also allows to send a bug report if
 * the error was not (definitely) a user error.
 * 
 * @param key						the I18n-key which will be used to display the internationalized message
 * @param e							the exception associated to this message
 * @param displayExceptionMessage	indicates if the exception message will be displayed in the dialog or just in the detailed panel
 * @param arguments					additional arguments for the internationalized message, which replace <code>{0}</code>, <code>{1}</code>, etcpp.
 */
public static void showFinalErrorMessage(String key, Throwable e, boolean displayExceptionMessage, Object...objects ) {
    // if debug modus is enabled, print throwable into logger
    if (ParameterService.getParameterValue(RapidMiner.PROPERTY_RAPIDMINER_GENERAL_DEBUGMODE).equals("true")) {
        LogService.getRoot().log(Level.SEVERE, e.getMessage(), e);
    }
    ExtendedErrorDialog dialog = new ExtendedErrorDialog( key, e, displayExceptionMessage, objects );
    //		dialog.setLocationRelativeTo(RapidMinerGUI.getMainFrame());
    dialog.setVisible(true);
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:19,代码来源:SwingTools.java

示例4: showSimpleErrorMessage

import com.rapidminer.gui.tools.dialogs.ExtendedErrorDialog; //导入依赖的package包/类
/**
 * This is the normal method which could be used by GUI classes for errors caused by some
 * exception (e.g. IO issues). Of course these error message methods should never be invoked by
 * operators or similar.
 *
 * @param owner
 *            the owner of the opened dialog
 * @param key
 *            the I18n-key which will be used to display the internationalized message
 * @param e
 *            the exception associated to this message
 * @param displayExceptionMessage
 *            indicates if the exception message will be displayed in the dialog or just in the
 *            detailed panel
 * @param arguments
 *            additional arguments for the internationalized message, which replace
 *            <code>{0}</code>, <code>{1}</code>, etcpp.
 * @since 7.5.0
 */
public static void showSimpleErrorMessage(final Window owner, final String key, final Throwable e,
		final boolean displayExceptionMessage, final Object... arguments) {
	ActionStatisticsCollector.getInstance().log(ActionStatisticsCollector.TYPE_ERROR, key,
			e != null ? e.getClass().getName() : null);
	// if debug mode is enabled, send exception to logger
	if ("true".equals(ParameterService.getParameterValue(RapidMiner.PROPERTY_RAPIDMINER_GENERAL_DEBUGMODE))) {
		LogService.getRoot().log(Level.WARNING, I18N.getMessage(LogService.getRoot().getResourceBundle(),
				"com.rapidminer.gui.tools.SwingTools.show_simple_get_message", e.getMessage()), e);
	}
	invokeLater(new Runnable() {

		@Override
		public void run() {
			ExtendedErrorDialog dialog = new ExtendedErrorDialog(owner, key, e, displayExceptionMessage, arguments);
			dialog.setVisible(true);
		}
	});
}
 
开发者ID:rapidminer,项目名称:rapidminer-studio,代码行数:38,代码来源:SwingTools.java

示例5: showFinalErrorMessage

import com.rapidminer.gui.tools.dialogs.ExtendedErrorDialog; //导入依赖的package包/类
/**
 * Shows the final error message dialog. This dialog also allows to send a bug report if the
 * error was not (definitely) a user error.
 *
 * @param owner
 *            the owner of the opened dialog
 * @param key
 *            the I18n-key which will be used to display the internationalized message
 * @param e
 *            the exception associated to this message
 * @param displayExceptionMessage
 *            indicates if the exception message will be displayed in the dialog or just in the
 *            detailed panel
 * @param arguments
 *            additional arguments for the internationalized message, which replace
 *            <code>{0}</code>, <code>{1}</code>, etcpp.
 * @since 7.5.0
 */
public static void showFinalErrorMessage(final Window owner, final String key, final Throwable e,
		final boolean displayExceptionMessage, final Object... objects) {
	// if debug modus is enabled, print throwable into logger
	if (ParameterService.getParameterValue(RapidMiner.PROPERTY_RAPIDMINER_GENERAL_DEBUGMODE).equals("true")) {
		LogService.getRoot().log(Level.SEVERE, e.getMessage(), e);
	}
	invokeLater(new Runnable() {

		@Override
		public void run() {
			ExtendedErrorDialog dialog = new ExtendedErrorDialog(owner, key, e, displayExceptionMessage, objects);
			dialog.setVisible(true);
		}
	});
}
 
开发者ID:rapidminer,项目名称:rapidminer-studio,代码行数:34,代码来源:SwingTools.java


注:本文中的com.rapidminer.gui.tools.dialogs.ExtendedErrorDialog类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。