This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
// fileObject must not be null
if (fileObject == null)
return null;
// if the file is on the localhost, don't return URL with HTTP
if (FileUtil.toFile(fileObject) != null)
// It should be OK to call URLMapper here because we call
// it with different then NETWORK type.
}
public URL getURL(final FileObject fo, final int type) {
if (!(fo instanceof MasterFileObject)) return null;
if (type == URLMapper.NETWORK || !(fo instanceof MasterFileObject)) return null;
MasterFileObject hfo = (MasterFileObject) fo;
File f = (hfo != null) ? hfo.getResource().getFile() : null;