Commits

hani  committed f95ce56

Oops

  • Participants
  • Parent commits 4d0663e

Comments (0)

Files changed (1)

File src/designer/com/opensymphony/workflow/designer/WorkflowDesigner.java

       PropertyResourceBundle extendedBundle = null;
       if(extendedPalette != null)
       {
-        if(new File(extendedPalette).exists())
+        if(new File(extendedPalette + ".properties").exists())
           extendedBundle = new PropertyResourceBundle(new FileInputStream(extendedPalette + ".properties"));
         else if(getClass().getClassLoader().getResource(extendedPalette) != null)
         {
-          extendedBundle = new PropertyResourceBundle(getClass().getClassLoader().getResourceAsStream(extendedPalette + ".properties"));
+          extendedBundle = (PropertyResourceBundle) ResourceBundle.getBundle(extendedPalette, Locale.getDefault(), getClass().getClassLoader());
         }
       }