mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
improve "Show Members" opption suppression
This commit is contained in:
@@ -81,7 +81,6 @@ import com.intellij.ui.switcher.QuickActionProvider;
|
||||
import com.intellij.util.ArrayUtil;
|
||||
import com.intellij.util.IJSwingUtilities;
|
||||
import com.intellij.util.PlatformIcons;
|
||||
import com.intellij.util.PlatformUtils;
|
||||
import com.intellij.util.messages.MessageBusConnection;
|
||||
import com.intellij.util.ui.UIUtil;
|
||||
import com.intellij.util.ui.tree.TreeUtil;
|
||||
@@ -696,7 +695,7 @@ public class ProjectViewImpl extends ProjectView implements PersistentStateCompo
|
||||
}).setAsSecondary(true);
|
||||
}
|
||||
|
||||
if (!PlatformUtils.isCidr()) {
|
||||
if (isShowMembersOptionSupported()) {
|
||||
myActionGroup.addAction(new PaneOptionAction(myShowMembers, IdeBundle.message("action.show.members"),
|
||||
IdeBundle.message("action.show.hide.members"),
|
||||
AllIcons.ObjectBrowser.ShowMembers, ourShowMembersDefaults))
|
||||
@@ -739,6 +738,10 @@ public class ProjectViewImpl extends ProjectView implements PersistentStateCompo
|
||||
getCurrentProjectViewPane().addToolbarActions(myActionGroup);
|
||||
}
|
||||
|
||||
protected boolean isShowMembersOptionSupported() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractProjectViewPane getProjectViewPaneById(String id) {
|
||||
if (!ApplicationManager.getApplication().isUnitTestMode()) { // most tests don't need all panes to be loaded
|
||||
|
||||
Reference in New Issue
Block a user