if (channelPropsURL == null)
{
// complete failure of channel_properties, set all properties to defaults
- jalview.bin.Console.errPrintln("Failed to find '/"
- + CHANNEL_PROPERTIES_FILENAME + "' file at '"
+ ErrorLog.errPrintln("Failed to find '/" + CHANNEL_PROPERTIES_FILENAME
+ + "' file at '"
+ (channelPropsURL == null ? "null"
: channelPropsURL.toString())
+ "'. Using class defaultProps.");
{
try
{
- InputStream channelPropsIS = channelPropsURL.openStream();
+ InputStream channelPropsIS = HttpUtils.openStream(channelPropsURL);
tryChannelProps.load(channelPropsIS);
channelPropsIS.close();
} catch (IOException e)
{
- jalview.bin.Console.errPrintln(e.getMessage());
+ ErrorLog.errPrintln(e.getMessage());
// return false;
}
}
channelProps.load(is);
} catch (FileNotFoundException e)
{
- jalview.bin.Console.errPrintln(e.getMessage());
+ ErrorLog.errPrintln(e.getMessage());
} catch (IOException e)
{
- jalview.bin.Console.errPrintln(e.getMessage());
+ ErrorLog.errPrintln(e.getMessage());
}
}
}
}
else
{
- jalview.bin.Console
- .errPrintln("Failed to get channel property '" + key + "'");
+ ErrorLog.errPrintln("Failed to get channel property '" + key + "'");
}
}
return null;
img = imgIcon == null ? null : imgIcon.getImage();
if (img == null)
{
- jalview.bin.Console.errPrintln(
+ ErrorLog.errPrintln(
"Failed to load channel image " + key + "=" + path);
if (!useClassDefaultImage)
{
{
return urlMap().getOrDefault(key, null);
}
- jalview.bin.Console.errPrintln(
+ ErrorLog.errPrintln(
"Do not use getImageURL(key) before using getImage(key...)");
}
return null;