From 7f677a2371f3b9ab4d1bae06e14ceabb3f4088d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Thu, 20 Jan 2022 16:53:09 +0100 Subject: [PATCH] Set dirty on manual peak deletion/merge --- .../ux/extension/xxd/ui/swt/ExtendedPeakScanListUI.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chemclipse/plugins/org.eclipse.chemclipse.ux.extension.xxd.ui/src/org/eclipse/chemclipse/ux/extension/xxd/ui/swt/ExtendedPeakScanListUI.java b/chemclipse/plugins/org.eclipse.chemclipse.ux.extension.xxd.ui/src/org/eclipse/chemclipse/ux/extension/xxd/ui/swt/ExtendedPeakScanListUI.java index 4eb3dfbf7d..56d2940795 100644 --- a/chemclipse/plugins/org.eclipse.chemclipse.ux.extension.xxd.ui/src/org/eclipse/chemclipse/ux/extension/xxd/ui/swt/ExtendedPeakScanListUI.java +++ b/chemclipse/plugins/org.eclipse.chemclipse.ux.extension.xxd.ui/src/org/eclipse/chemclipse/ux/extension/xxd/ui/swt/ExtendedPeakScanListUI.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2018, 2021 Lablicate GmbH. + * Copyright (c) 2018, 2022 Lablicate GmbH. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 @@ -513,6 +513,7 @@ private void deletePeaksOrIdentifications(Display display) { chromatogramSelection.setSelectedScan(null); chromatogramSelection.setSelectedIdentifiedScan(null); chromatogramSelection.update(true); + chromatogramSelection.getChromatogram().setDirty(true); } } // @@ -668,6 +669,7 @@ private void propagateSelection(Display display) { // chromatogramSelection.setSelectedPeaks(selectedPeaks); chromatogramSelection.setSelectedIdentifiedScans(selectedIdentifiedScans); + chromatogramSelection.getChromatogram().setDirty(true); UpdateNotifierUI.update(display, IChemClipseEvents.TOPIC_EDITOR_CHROMATOGRAM_UPDATE, "Peak(s)/Scan(s) selection via the list."); } else { /* @@ -791,6 +793,7 @@ public void widgetSelected(SelectionEvent e) { */ chromatogramMSD.addPeak(chromatogramPeakMSD); chromatogramSelectionMSD.setSelectedPeak(chromatogramPeakMSD); + chromatogramMSD.setDirty(true); updateChromatogramSelection(); // UpdateNotifierUI.update(e.display, chromatogramPeakMSD);