}
}
// Remote File.
else if (modifiers == MouseEvent.BUTTON3_MASK)
{
UrlDialog UD = new UrlDialog(config.getTopParent(), ui.getResource("button.eject.urldialog.title"), loader.getLocation().x, loader.getLocation().y + 10, config.getLastURL());
UD.show();
if (UD.getFile() != null)
{
showTitle(ui.getResource("title.loading"));
// Remote playlist ?
if ((UD.getURL().toLowerCase().endsWith(ui.getResource("playlist.extension.m3u"))) || (UD.getURL().toLowerCase().endsWith(ui.getResource("playlist.extension.pls"))))
{
if (loadPlaylist(UD.getURL()))
{
config.setPlaylistFilename(UD.getURL());
playlist.begin();
playlistUI.initPlayList();
setCurrentSong(playlist.getCursor());
playlistUI.repaint();
}
}
// Remote file or stream.
else
{
pli = new PlaylistItem(UD.getFile(), UD.getURL(), -1, false);
}
config.setLastURL(UD.getURL());
}
}
if ((pli != null) && (playlist != null))
{
playlist.removeAllItems();