+void XGUI_ErrorMgr::updateAcceptAllAction(const FeaturePtr& theFeature)
+{
+ QString anError = myWorkshop->module()->getFeatureError(theFeature);
+
+ XGUI_ActionsMgr* anActionsMgr = workshop()->actionsMgr();
+ if (workshop()->isFeatureOfNested(theFeature)) {
+ QAction* anAcceptAllAction = anActionsMgr->operationStateAction(XGUI_ActionsMgr::AcceptAll, NULL);
+ bool anEnabled = anError.isEmpty();
+ anAcceptAllAction->setEnabled(anEnabled);
+ anAcceptAllAction->setToolTip(anError);
+ }
+}
+
+bool XGUI_ErrorMgr::canProcessClick(QAction* theAction, const FeaturePtr& theFeature)
+{
+ QString anError = myWorkshop->module()->getFeatureError(theFeature);
+ bool isActionEnabled = anError.isEmpty();