/** * Update the protein table according to the protein inference selection. * * @param evt */ private void okButtonActionPerformed( java.awt.event.ActionEvent evt) { // GEN-FIRST:event_okButtonActionPerformed PSParameter psParameter = new PSParameter(); try { psParameter = (PSParameter) identification.getProteinMatchParameter(inspectedMatch.getKey(), psParameter); } catch (Exception e) { peptideShakerGUI.catchException(e); this.dispose(); return; } if (!inspectedMatch.getMainMatch().equals(previousMainMatch) || groupClassJComboBox.getSelectedIndex() != psParameter.getGroupClass()) { try { psParameter.setGroupClass(groupClassJComboBox.getSelectedIndex()); identification.updateProteinMatchParameter(inspectedMatch.getKey(), psParameter); peptideShakerGUI.updateMainMatch( inspectedMatch.getMainMatch(), groupClassJComboBox.getSelectedIndex()); } catch (Exception e) { peptideShakerGUI.catchException(e); } peptideShakerGUI.setDataSaved(false); } this.dispose(); } // GEN-LAST:event_okButtonActionPerformed