IDEA-89362 Call the history tab for directory "Folder" instead of "File"

This commit is contained in:
Kirill Likhodedov
2012-07-27 19:30:27 +04:00
parent 57b4562233
commit 56c9301ccf
2 changed files with 3 additions and 1 deletions
@@ -104,6 +104,7 @@ loading.file.history.progress=Loading file history
message.title.could.not.load.file.history=Problems while loading file history
diff.content.title.repository.version={0} ( Repository Version )
action.name.file.history=File {0} History
action.name.file.history.dir=Folder {0} History
group.name.version.control=&VCS
message.text.cannot.open.editor=Cannot open text editor for file {0}
message.title.cannot.open.editor=Cannot Open Editor
@@ -108,7 +108,8 @@ public class FileHistorySessionPartner implements VcsAppendableHistorySessionPar
}
ApplicationManager.getApplication().invokeLater(new Runnable() {
public void run() {
String actionName = VcsBundle.message("action.name.file.history", myPath.getName());
String actionName = VcsBundle.message(myPath.isDirectory() ? "action.name.file.history.dir" : "action.name.file.history",
myPath.getName());
ContentManager contentManager = ProjectLevelVcsManagerEx.getInstanceEx(myVcs.getProject()).getContentManager();
myFileHistoryPanel = resetHistoryPanel();