Author: euluis
Date: 2010-04-20 16:50:51-0700
New Revision: 18319

Modified:
   trunk/src/argouml-app/src/org/argouml/application/helpers/ResourceLoader.java

Log:
issue 5618: reverting change which was causing failures in argouml core tests

Modified: 
trunk/src/argouml-app/src/org/argouml/application/helpers/ResourceLoader.java
Url: 
http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/application/helpers/ResourceLoader.java?view=diff&pathrev=18319&r1=18318&r2=18319
==============================================================================
--- 
trunk/src/argouml-app/src/org/argouml/application/helpers/ResourceLoader.java   
    (original)
+++ 
trunk/src/argouml-app/src/org/argouml/application/helpers/ResourceLoader.java   
    2010-04-20 16:50:51-0700
@@ -8,7 +8,6 @@
  *
  * Contributors:
  *    tfmorris
- *    Luis Sergio Oliveira (euluis)
  *****************************************************************************
  *
  * Some portions of this file was previously release using the BSD License:
@@ -39,7 +38,6 @@
 
 package org.argouml.application.helpers;
 
-import java.awt.GraphicsEnvironment;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.Iterator;
@@ -94,8 +92,7 @@
      *            A description for the ImageIcon.
      * @param loader
      *            The class loader that should be used for loading the 
resource.
-     * @return ImageIcon for the given name, null if no image could be found or
-     *            if java is running in a headless environment.
+     * @return ImageIcon for the given name, null if no image could be found.
      */
     public static ImageIcon lookupIconResource(String resource, String desc,
             ClassLoader loader) {
@@ -107,7 +104,7 @@
         ImageIcon res = null;
         java.net.URL imgURL = lookupIconUrl(resource, loader);
 
-        if (imgURL != null && !GraphicsEnvironment.isHeadless()) {
+        if (imgURL != null) {
             res = new ImageIcon(imgURL, desc);
             synchronized (resourceCache) {
                 resourceCache.put(resource, res);

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2590928

To unsubscribe from this discussion, e-mail: 
[[email protected]].

Reply via email to