}//GEN-LAST:event_canBeOmittedCheckActionPerformed
private void editBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editBtnActionPerformed
MathExpressionConstAbstract val = (MathExpressionConstAbstract) mainList.getSelectedValue();
if(val != null) {
EditMathExpressionDlg dlg = new EditMathExpressionDlg(this, val, new ContextFilter() {
@Override
public Context getChildContext(ContextGroup group) {
return context;
}
});
dlg.setVisible(true);
if(dlg.isOK()) {
try {
value.insertBefore(val, (MathExpressionConstAbstract) dlg.getValue());
value.remove(val);
} catch (ReportException ex) {
Message.error(this, "При редактировании произошла ошибка", ex);
}
MathExpressionConstAbstract[] vals = value.getValues();