1 19 20 package org.netbeans.modules.openide.filesystems; 21 22 import java.net.URL ; 23 import org.openide.filesystems.FileObject; 24 import org.openide.filesystems.URLMapper; 25 26 29 public final class DefaultURLMapperProxy extends URLMapper { 30 31 private static URLMapper DEFAULT; 32 33 public static void setDefault(URLMapper m) { 34 assert DEFAULT == null; 35 assert m != null; 36 DEFAULT = m; 37 } 38 39 42 public DefaultURLMapperProxy() {} 43 44 public URL getURL(FileObject fo, int type) { 45 assert DEFAULT != null; 46 return DEFAULT.getURL(fo, type); 47 } 48 49 public FileObject[] getFileObjects(URL url) { 50 assert DEFAULT != null; 51 return DEFAULT.getFileObjects(url); 52 } 53 54 } 55 | Popular Tags |