mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-76614 Unable to right click in Favorites tab
This commit is contained in:
+10
-6
@@ -62,12 +62,16 @@ public class SendToFavoritesGroup extends ActionGroup{
|
||||
if (!(parent instanceof FavoritesTreeNodeDescriptor)) {
|
||||
return EMPTY_ARRAY;
|
||||
}
|
||||
String name = ((FavoritesListNode)parent.getElement()).getName();
|
||||
if (listName == null) {
|
||||
listName = name;
|
||||
}
|
||||
if (!StringUtil.equals(listName, name)) {
|
||||
return EMPTY_ARRAY;
|
||||
final Object parentElement = parent.getElement();
|
||||
if (parentElement instanceof FavoritesListNode) {
|
||||
String name = ((FavoritesListNode)parentElement).getName();
|
||||
if (listName == null) {
|
||||
listName = name;
|
||||
}
|
||||
|
||||
if (!StringUtil.equals(listName, name)) {
|
||||
return EMPTY_ARRAY;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user