mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix Show Members option in Project View
This commit is contained in:
@@ -600,7 +600,21 @@ public class ProjectViewImpl extends ProjectView implements PersistentStateCompo
|
||||
if (isShowMembersOptionSupported()) {
|
||||
myActionGroup.addAction(new PaneOptionAction(myShowMembers, IdeBundle.message("action.show.members"),
|
||||
IdeBundle.message("action.show.hide.members"),
|
||||
AllIcons.ObjectBrowser.ShowMembers, ourShowMembersDefaults))
|
||||
AllIcons.ObjectBrowser.ShowMembers, ourShowMembersDefaults) {
|
||||
@Override
|
||||
public boolean isSelected(AnActionEvent event) {
|
||||
if (isGlobalOptions()) return getGlobalOptions().getShowMembers();
|
||||
return super.isSelected(event);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setSelected(AnActionEvent event, boolean flag) {
|
||||
if (isGlobalOptions()) {
|
||||
getGlobalOptions().setShowMembers(flag);
|
||||
}
|
||||
super.setSelected(event, flag);
|
||||
}
|
||||
})
|
||||
.setAsSecondary(true);
|
||||
}
|
||||
myActionGroup.addAction(myAutoScrollToSourceHandler.createToggleAction()).setAsSecondary(true);
|
||||
|
||||
Reference in New Issue
Block a user