diff --git a/chemclipse/plugins/org.eclipse.chemclipse.model/src/org/eclipse/chemclipse/model/core/AbstractChromatogram.java b/chemclipse/plugins/org.eclipse.chemclipse.model/src/org/eclipse/chemclipse/model/core/AbstractChromatogram.java index 4dcb9f4e03..b1c8095b9d 100644 --- a/chemclipse/plugins/org.eclipse.chemclipse.model/src/org/eclipse/chemclipse/model/core/AbstractChromatogram.java +++ b/chemclipse/plugins/org.eclipse.chemclipse.model/src/org/eclipse/chemclipse/model/core/AbstractChromatogram.java @@ -57,6 +57,7 @@ public abstract class AbstractChromatogram extends AbstractMeas private int scanDelay = 4500; private int scanInterval = 1000; // 1000ms = 1 scan per second private final List analysisSegments = new ArrayList<>(); + private ChromatographyType chromatographyType = null; /* * This flag marks whether the chromatogram has been * set to unload modus. It is used e.g. when loading @@ -964,6 +965,12 @@ public void updateAnalysisSegment(IAnalysisSegment segment, IScanRange range) { } + @Override + public ChromatographyType getChromatographyType() { + + return chromatographyType; + } + @Override public boolean equals(Object otherObject) { diff --git a/chemclipse/plugins/org.eclipse.chemclipse.model/src/org/eclipse/chemclipse/model/core/ChromatographyType.java b/chemclipse/plugins/org.eclipse.chemclipse.model/src/org/eclipse/chemclipse/model/core/ChromatographyType.java new file mode 100644 index 0000000000..7d504d3c22 --- /dev/null +++ b/chemclipse/plugins/org.eclipse.chemclipse.model/src/org/eclipse/chemclipse/model/core/ChromatographyType.java @@ -0,0 +1,38 @@ +/******************************************************************************* + * Copyright (c) 2024 Lablicate GmbH. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Matthias Mailänder - initial API and implementation + *******************************************************************************/ +package org.eclipse.chemclipse.model.core; + +import org.eclipse.chemclipse.support.text.ILabel; + +public enum ChromatographyType implements ILabel { + + GC("Gas Chromatography"), // + LC("Liquid Chromatography"), // + TLC("Thin Layer Chromatography"), // + SEC("Size Exclusion Chromatography"), // + IC("Ion Chromatography"), // + CE("Capillary Electrophoresis"), // + AC("Affinity Chromatography"); // + + private String label; + + private ChromatographyType(String label) { + + this.label = label; + } + + @Override + public String label() { + + return label; + } +} diff --git a/chemclipse/plugins/org.eclipse.chemclipse.model/src/org/eclipse/chemclipse/model/core/IChromatogram.java b/chemclipse/plugins/org.eclipse.chemclipse.model/src/org/eclipse/chemclipse/model/core/IChromatogram.java index 7477ddcc26..48d0e01ac3 100644 --- a/chemclipse/plugins/org.eclipse.chemclipse.model/src/org/eclipse/chemclipse/model/core/IChromatogram.java +++ b/chemclipse/plugins/org.eclipse.chemclipse.model/src/org/eclipse/chemclipse/model/core/IChromatogram.java @@ -274,4 +274,6 @@ default void clearAnalysisSegments() { removeAnalysisSegment(segment); } } + + ChromatographyType getChromatographyType(); } \ No newline at end of file