2003/06/16 08:03:15
[org.ibex.core.git] / src / org / xwt / Resources.java
index 7e881b1..e1e267f 100644 (file)
@@ -48,8 +48,8 @@ public class Resources {
     /** Load a directory as if it were an archive */
     public static synchronized void loadDirectory(File dir) throws IOException { loadDirectory(dir, ""); }
     private static synchronized void loadDirectory(File dir, String prefix) throws IOException {
-       String n = prefix.replace(File.separatorChar, '.');
-       if (n.endsWith(".")) n = n.substring(0, n.length() - 1);
+        String n = prefix.replace(File.separatorChar, '.');
+        if (n.endsWith(".")) n = n.substring(0, n.length() - 1);
         new Static(n);
         String[] subfiles = dir.list();
         for(int i=0; i<subfiles.length; i++) {
@@ -89,9 +89,9 @@ public class Resources {
                         ThreadMessage.newthread(new JS.Callable() {
                                 public Object call(JS.Array args_) throws JS.Exn {
                                     try {
-                                       JS.Array args = new JS.Array();
-                                       args.addElement(new Double(bytesDownloaded));
-                                       args.addElement(new Double(length));
+                                        JS.Array args = new JS.Array();
+                                        args.addElement(new Double(bytesDownloaded));
+                                        args.addElement(new Double(length));
                                         callback.call(args);
                                     } finally {
                                         clear = true;
@@ -118,8 +118,8 @@ public class Resources {
                 // placeholder so resolveResource() works properly
                 bytes.put(name.replace('/', '.'), new byte[] { });
                 name = name.substring(0, name.length() - 4);
-               Static.createStatic(name.replace('/', '.'), false);
-               Template.buildTemplate(zis, name.replace('/', '.'), t);
+                Static.createStatic(name.replace('/', '.'), false);
+                Template.buildTemplate(zis, name.replace('/', '.'), t);
 
             } else {
                 bytes.put(name.replace('/', '.'), isToByteArray(zis));