Extract and interface for ExceptionHelper in package net.sf.openrocket.startup. ...
[debian/openrocket] / src / net / sf / openrocket / gui / main / ComponentIcons.java
index cd71c2a625b72f34bfbfb6beb9a5cc6808fddeff..b0071caaac95cd545f5194c53587274009e4eb01 100644 (file)
@@ -124,7 +124,7 @@ public class ComponentIcons {
        private static ImageIcon loadSmall(String file, String desc) {
                URL url = ClassLoader.getSystemResource(file);
                if (url == null) {
-                       ExceptionHandler.handleErrorCondition("ERROR:  Couldn't find file: " + file);
+                       Application.getExceptionHandler().handleErrorCondition("ERROR:  Couldn't find file: " + file);
                        return null;
                }
                return new ImageIcon(url, desc);
@@ -141,7 +141,7 @@ public class ComponentIcons {
                                bi = ImageIO.read(url);
                                bi2 = ImageIO.read(url); //  How the fsck can one duplicate a BufferedImage???
                        } catch (IOException e) {
-                               ExceptionHandler.handleErrorCondition("ERROR:  Couldn't read file: " + file, e);
+                               Application.getExceptionHandler().handleErrorCondition("ERROR:  Couldn't read file: " + file, e);
                                return new ImageIcon[] { null, null };
                        }
                        
@@ -176,7 +176,7 @@ public class ComponentIcons {
                        
                        return icons;
                } else {
-                       ExceptionHandler.handleErrorCondition("ERROR:  Couldn't find file: " + file);
+                       Application.getExceptionHandler().handleErrorCondition("ERROR:  Couldn't find file: " + file);
                        return new ImageIcon[] { null, null };
                }
        }