當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。