svn commit: r14676 - trunk/src/argouml-app/src/org/argouml/ui/ExceptionDialog.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2008-05-08 13:55:58-0700
New Revision: 14676

Modified:
   trunk/src/argouml-app/src/org/argouml/ui/ExceptionDialog.java

Log:
Remove deprecated constructor.

Modified: trunk/src/argouml-app/src/org/argouml/ui/ExceptionDialog.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/ui/ExceptionDialog.java?view=diff&rev=14676&p1=trunk/src/argouml-app/src/org/argouml/ui/ExceptionDialog.java&p2=trunk/src/argouml-app/src/org/argouml/ui/ExceptionDialog.java&r1=14675&r2=14676
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/ui/ExceptionDialog.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/ui/ExceptionDialog.java	2008-05-08 13:55:58-0700
@@ -98,7 +98,9 @@
      */
     public ExceptionDialog(Frame f, String message, Throwable e,
             boolean highlightCause) {
-        this(f, formatException(message, e, highlightCause));
+        this(f, Translator.localize("dialog.exception.title"), 
+                Translator.localize("dialog.exception.message"), 
+                formatException(message, e, highlightCause));
     }
 
     public static String formatException(String message, Throwable e,
@@ -121,21 +123,6 @@
         return sw.toString();
     }
 
-    /**
-     * Construct an exception dialog with a preformatted error string.
-     *
-     * @param f   the <code>Frame</code> from which the dialog is displayed
-     * @param message
-     *            the message
-     * @deprecated by tfmorris for 0.24, use 
-     * {@link #ExceptionDialog(Frame, String, String, String)}
-     */
-    @Deprecated
-    public ExceptionDialog(Frame f, String message) {
-        this(f, Translator.localize("dialog.exception.title"), 
-                Translator.localize("dialog.exception.message"), 
-                message);
-    }
     
     /**
      * Construct an exception dialog with given title, introduction, and detail
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.