X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fnet%2Fsf%2Fopenrocket%2Fgui%2Fmain%2FComponentIcons.java;h=b0071caaac95cd545f5194c53587274009e4eb01;hb=549da0aedef6771b1519032c1b455d75e1d4c23f;hp=cd71c2a625b72f34bfbfb6beb9a5cc6808fddeff;hpb=85eb8bc530d7085a4c74d79198b84499094b5535;p=debian%2Fopenrocket diff --git a/src/net/sf/openrocket/gui/main/ComponentIcons.java b/src/net/sf/openrocket/gui/main/ComponentIcons.java index cd71c2a6..b0071caa 100644 --- a/src/net/sf/openrocket/gui/main/ComponentIcons.java +++ b/src/net/sf/openrocket/gui/main/ComponentIcons.java @@ -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 }; } }