-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a configuration option on how to label PCR data.
- Loading branch information
1 parent
42a8d80
commit 941b9d8
Showing
6 changed files
with
78 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
....chemclipse.pcr.model/src/org/eclipse/chemclipse/pcr/model/core/support/LabelSetting.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2021 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.pcr.model.core.support; | ||
|
||
public enum LabelSetting { | ||
SAMPLENAME("Sample ID"), // | ||
COORDINATE("Coordinate"), // | ||
COORDINATE_SAMPLENAME("Coordinate + Sample ID"); // | ||
|
||
private String label = ""; | ||
|
||
private LabelSetting(String label) { | ||
|
||
this.label = label; | ||
} | ||
|
||
public String getLabel() { | ||
|
||
return label; | ||
} | ||
|
||
public static String[][] getOptions() { | ||
|
||
LabelSetting[] labelSettings = values(); | ||
String[][] elements = new String[labelSettings.length][2]; | ||
// | ||
int counter = 0; | ||
for(LabelSetting labelSetting : labelSettings) { | ||
elements[counter][0] = labelSetting.getLabel(); | ||
elements[counter][1] = labelSetting.name(); | ||
counter++; | ||
} | ||
// | ||
return elements; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters