final Presentation presentation = e.getPresentation();
final ProjectView projectView = ProjectView.getInstance(myProject);
presentation.setEnabledAndVisible(projectView.getCurrentProjectViewPane() == ProjectFilesViewPane.this);
}
}
<BUG>private final class ShowOnlyLoadedFilesAction extends ToggleAction {
</BUG>
private ShowOnlyLoadedFilesAction() {
super(
PantsBundle.message("pants.action.show.only.loaded.files"),

final Presentation presentation = e.getPresentation();
final ProjectView projectView = ProjectView.getInstance(myProject);
presentation.setEnabledAndVisible(projectView.getCurrentProjectViewPane() == ProjectFilesViewPane.this);
}
}
private final class ShowOnlyLoadedFilesAction extends ToggleAction implements DumbAware {
private ShowOnlyLoadedFilesAction() {
super(
PantsBundle.message("pants.action.show.only.loaded.files"),
