More detailed 'cannot set l&f' message

This commit is contained in:
Roman Shevchenko
2012-02-07 17:24:09 +01:00
parent 3cc6bdd92b
commit 82a2aa79d0
2 changed files with 6 additions and 6 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2011 JetBrains s.r.o.
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -308,9 +308,9 @@ public final class LafManagerImpl extends LafManager implements ApplicationCompo
try {
UIManager.setLookAndFeel(laf);
}
catch (Exception exc) {
catch (Exception e) {
Messages.showMessageDialog(
IdeBundle.message("error.cannot.set.look.and.feel", lookAndFeelInfo.getName()),
IdeBundle.message("error.cannot.set.look.and.feel", lookAndFeelInfo.getName(), e.getMessage()),
CommonBundle.getErrorTitle(),
Messages.getErrorIcon()
);
@@ -325,9 +325,9 @@ public final class LafManagerImpl extends LafManager implements ApplicationCompo
}
UIManager.setLookAndFeel(laf);
}
catch (Exception exc) {
catch (Exception e) {
Messages.showMessageDialog(
IdeBundle.message("error.cannot.set.look.and.feel", lookAndFeelInfo.getName()),
IdeBundle.message("error.cannot.set.look.and.feel", lookAndFeelInfo.getName(), e.getMessage()),
CommonBundle.getErrorTitle(),
Messages.getErrorIcon()
);
@@ -633,7 +633,7 @@ checkbox.use.antialiased.font.in.editor=Use anti-aliased font
# this string must start with "IDEA"
idea.default.look.and.feel=IDEA (4.5 default)
confirm.set.look.and.feel=&Set look and feel
error.cannot.set.look.and.feel=Cannot set {0} look and feel
error.cannot.set.look.and.feel=<html><body>Cannot set {0} look and feel:<br>{1}</body></html>
warning.problem.laf.1=<html><body>GTK+ look and feel is known to be problematic on a JDK prior to 1.6 b12.<br>Please choose another look and feel, or upgrade your JDK. <a href="http://bugs.sun.com/view_bug.do?bug_id=6624717">More info...</a></body></html>
error.adding.action.without.icon.to.toolbar=You are adding an action without icon to the toolbar. The default icon will be added to this action.
title.unable.to.add.action.without.icon.to.toolbar=Unable to add action without icon to the toolbar