Skip to content

Commit

Permalink
use 'Bookmarks' as title of a tab that displays all bookmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
ahadas committed Jul 15, 2016
1 parent fbd4e67 commit 629f2fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/com/mucommander/ui/main/tabs/FileTableTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@

package com.mucommander.ui.main.tabs;

import com.mucommander.bookmark.file.BookmarkProtocolProvider;
import com.mucommander.commons.file.FileURL;
import com.mucommander.commons.file.impl.local.LocalFile;
import com.mucommander.commons.file.util.PathUtils;
import com.mucommander.core.LocalLocationHistory;
import com.mucommander.text.Translator;
import com.mucommander.ui.tabs.Tab;

/**
Expand Down Expand Up @@ -89,6 +91,9 @@ public String getDisplayableTitle() {
}

private String createDisplayableTitleFromLocation(FileURL location) {
if (BookmarkProtocolProvider.BOOKMARK.equals(location.getScheme()) && location.getHost() == null)
return Translator.get("bookmarks_menu");

boolean local = FileURL.LOCALHOST.equals(location.getHost());

return getHostRepresentation(location.getHost(), local) + getFilenameRepresentation(location.getFilename(), local);
Expand Down

0 comments on commit 629f2fc

Please sign in to comment.