1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 08:18:52 -05:00

* minor refactoring

This commit is contained in:
Reinhard Pointner 2009-07-24 20:28:25 +00:00
parent 014c668cdd
commit a860a6ab5d
4 changed files with 6 additions and 4 deletions

View File

@ -44,6 +44,9 @@ class FileListTransferablePolicy extends FileTransferablePolicy {
// set title based on parent folder of first file
list.setTitle(FileUtilities.getFolderName(files.get(0).getParentFile()));
// clear selection
list.getListComponent().clearSelection();
if (containsOnly(files, FOLDERS)) {
loadFolders(files);
} else if (containsOnly(files, MediaTypes.getFilter("application/torrent"))) {

View File

@ -50,7 +50,6 @@ public class ListPanel extends JComponent {
public ListPanel() {
list.setTitle("Title");
textField.setFont(new Font(MONOSPACED, PLAIN, 11));

View File

@ -123,7 +123,7 @@ public class AnidbClient implements EpisodeListProvider {
// allow only normal and recap episodes
if (flags == null || flags.equals("2")) {
String number = getTextContent("epno", node);
String title = selectString(".//title[@lang='en']", node);
String title = selectString("./titles/title[@lang='en']", node);
// no seasons for anime
episodes.add(new Episode(animeTitle, null, number, title));

View File

@ -22,14 +22,14 @@ public final class StringUtilities {
}
public static String join(Iterable<?> values, CharSequence separator) {
public static String join(Iterable<?> values, CharSequence delimiter) {
StringBuilder sb = new StringBuilder();
for (Iterator<?> iterator = values.iterator(); iterator.hasNext();) {
sb.append(iterator.next());
if (iterator.hasNext()) {
sb.append(separator);
sb.append(delimiter);
}
}