[git] prohibit mnemonics in root names

This commit is contained in:
Kirill Likhodedov
2014-07-07 13:59:44 +04:00
parent f02773592a
commit 3db880e30e
@@ -43,13 +43,14 @@ public class RootAction<T extends Repository> extends ActionGroup {
* @param branchText
*/
public RootAction(@NotNull T repository, @Nullable T currentRepository, @NotNull ActionGroup actionsGroup, @NotNull String branchText) {
super(DvcsUtil.getShortRepositoryName(repository), true);
super("", true);
myRepository = repository;
myGroup = actionsGroup;
myBranchText = branchText;
if (repository.equals(currentRepository)) {
getTemplatePresentation().setIcon(PlatformIcons.CHECK_ICON);
}
getTemplatePresentation().setText(DvcsUtil.getShortRepositoryName(repository), false);
}
@NotNull