Conditional logic to determine if popup menu should be visible
You may not need another if else to setEnabled. The expression within if returns a boolean. Just set the inverse of it to setEnabled. You can pull it into a variable in case of better readability. 

Updated:

if (attentionSignalAction != null) {
  bool isActiveRowSelected = (Framework.getInstance().getActiveSubjectOfCare().id == null||!getAcuteListTable().getTableDataByRow(getAcuteListTable().getSelectedRow()).socId.equals(Framework.getInstance().getActiveSubjectOfCare().id));
  attentionSignalAction.setEnabled(!isActiveRowSelected);
}


Update 2

if(selectedOperations != null &amp;&amp; selectedOperations.length &gt; 1){
    listRegistraionOpenMenuItem.setEnabled(false);
}else{
    listRegistraionOpenMenuItem.setEnabled(true);
}


can also be reduced to

bool operationsSelected = (selectedOperations != null &amp;&amp; selectedOperations.length &gt; 1);
listRegistraionOpenMenuItem.setEnabled(!operationsSelected);