mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[git] prohibit mnemonics in root names
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user