-
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.
Merge pull request #1508 from Mailaender/pcr-report-settings
Revamp PCR tabular reporting settings
- Loading branch information
Showing
19 changed files
with
321 additions
and
67 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
50 changes: 50 additions & 0 deletions
50
...emclipse/pcr/report/supplier/tabular/csv/ui/preferences/ChannelMappingPreferencePage.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,50 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2022, 2023 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.report.supplier.tabular.csv.ui.preferences; | ||
|
||
import org.eclipse.chemclipse.pcr.report.supplier.tabular.csv.preferences.PreferenceSupplier; | ||
import org.eclipse.chemclipse.pcr.report.supplier.tabular.csv.ui.Activator; | ||
import org.eclipse.chemclipse.pcr.report.supplier.tabular.ui.editors.ChannelMappingFieldEditor; | ||
import org.eclipse.jface.preference.FieldEditorPreferencePage; | ||
import org.eclipse.ui.IWorkbench; | ||
import org.eclipse.ui.IWorkbenchPreferencePage; | ||
|
||
public class ChannelMappingPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage { | ||
|
||
public ChannelMappingPreferencePage() { | ||
|
||
super(GRID); | ||
setPreferenceStore(Activator.getDefault().getPreferenceStore()); | ||
setDescription("Labels the headers according to these rules."); | ||
} | ||
|
||
/** | ||
* Creates the field editors. Field editors are abstractions of the common | ||
* GUI blocks needed to manipulate various types of preferences. Each field | ||
* editor knows how to save and restore itself. | ||
*/ | ||
@Override | ||
public void createFieldEditors() { | ||
|
||
addField(new ChannelMappingFieldEditor(PreferenceSupplier.P_CHANNEL_MAPPING, "", getFieldEditorParent())); | ||
} | ||
|
||
/* | ||
* (non-Javadoc) | ||
* @see | ||
* org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench) | ||
*/ | ||
@Override | ||
public void init(IWorkbench workbench) { | ||
|
||
} | ||
} |
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
50 changes: 50 additions & 0 deletions
50
...mclipse/pcr/report/supplier/tabular/csv/ui/preferences/VirtualChannelsPreferencePage.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,50 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2022, 2023 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.report.supplier.tabular.csv.ui.preferences; | ||
|
||
import org.eclipse.chemclipse.pcr.report.supplier.tabular.csv.preferences.PreferenceSupplier; | ||
import org.eclipse.chemclipse.pcr.report.supplier.tabular.csv.ui.Activator; | ||
import org.eclipse.chemclipse.pcr.report.supplier.tabular.ui.editors.VirtualChannelFieldEditor; | ||
import org.eclipse.jface.preference.FieldEditorPreferencePage; | ||
import org.eclipse.ui.IWorkbench; | ||
import org.eclipse.ui.IWorkbenchPreferencePage; | ||
|
||
public class VirtualChannelsPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage { | ||
|
||
public VirtualChannelsPreferencePage() { | ||
|
||
super(GRID); | ||
setPreferenceStore(Activator.getDefault().getPreferenceStore()); | ||
setDescription("Adds extra channels by combining existing ones according to these rules."); | ||
} | ||
|
||
/** | ||
* Creates the field editors. Field editors are abstractions of the common | ||
* GUI blocks needed to manipulate various types of preferences. Each field | ||
* editor knows how to save and restore itself. | ||
*/ | ||
@Override | ||
public void createFieldEditors() { | ||
|
||
addField(new VirtualChannelFieldEditor(PreferenceSupplier.P_VIRTUAL_CHANNELS, "", getFieldEditorParent())); | ||
} | ||
|
||
/* | ||
* (non-Javadoc) | ||
* @see | ||
* org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench) | ||
*/ | ||
@Override | ||
public void init(IWorkbench workbench) { | ||
|
||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
.../chemclipse/pcr/report/supplier/tabular/csv/ui/preferences/WellMappingPreferencePage.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,50 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2022, 2023 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.report.supplier.tabular.csv.ui.preferences; | ||
|
||
import org.eclipse.chemclipse.pcr.report.supplier.tabular.csv.preferences.PreferenceSupplier; | ||
import org.eclipse.chemclipse.pcr.report.supplier.tabular.csv.ui.Activator; | ||
import org.eclipse.chemclipse.pcr.report.supplier.tabular.ui.editors.WellMappingFieldEditor; | ||
import org.eclipse.jface.preference.FieldEditorPreferencePage; | ||
import org.eclipse.ui.IWorkbench; | ||
import org.eclipse.ui.IWorkbenchPreferencePage; | ||
|
||
public class WellMappingPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage { | ||
|
||
public WellMappingPreferencePage() { | ||
|
||
super(GRID); | ||
setPreferenceStore(Activator.getDefault().getPreferenceStore()); | ||
setDescription("Decides how the end result is reported based on Ct values."); | ||
} | ||
|
||
/** | ||
* Creates the field editors. Field editors are abstractions of the common | ||
* GUI blocks needed to manipulate various types of preferences. Each field | ||
* editor knows how to save and restore itself. | ||
*/ | ||
@Override | ||
public void createFieldEditors() { | ||
|
||
addField(new WellMappingFieldEditor(PreferenceSupplier.P_WELL_MAPPING, "", getFieldEditorParent())); | ||
} | ||
|
||
/* | ||
* (non-Javadoc) | ||
* @see | ||
* org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench) | ||
*/ | ||
@Override | ||
public void init(IWorkbench workbench) { | ||
|
||
} | ||
} |
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
50 changes: 50 additions & 0 deletions
50
...clipse/pcr/report/supplier/tabular/excel/ui/preferences/ChannelMappingPreferencePage.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,50 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2023 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.report.supplier.tabular.excel.ui.preferences; | ||
|
||
import org.eclipse.chemclipse.pcr.report.supplier.tabular.excel.preferences.PreferenceSupplier; | ||
import org.eclipse.chemclipse.pcr.report.supplier.tabular.excel.ui.Activator; | ||
import org.eclipse.chemclipse.pcr.report.supplier.tabular.ui.editors.ChannelMappingFieldEditor; | ||
import org.eclipse.jface.preference.FieldEditorPreferencePage; | ||
import org.eclipse.ui.IWorkbench; | ||
import org.eclipse.ui.IWorkbenchPreferencePage; | ||
|
||
public class ChannelMappingPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage { | ||
|
||
public ChannelMappingPreferencePage() { | ||
|
||
super(GRID); | ||
setPreferenceStore(Activator.getDefault().getPreferenceStore()); | ||
setDescription("Exports plates into *.xlsx reports according to these rules."); | ||
} | ||
|
||
/** | ||
* Creates the field editors. Field editors are abstractions of the common | ||
* GUI blocks needed to manipulate various types of preferences. Each field | ||
* editor knows how to save and restore itself. | ||
*/ | ||
@Override | ||
public void createFieldEditors() { | ||
|
||
addField(new ChannelMappingFieldEditor(PreferenceSupplier.P_CHANNEL_MAPPING, "", getFieldEditorParent())); | ||
} | ||
|
||
/* | ||
* (non-Javadoc) | ||
* @see | ||
* org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench) | ||
*/ | ||
@Override | ||
public void init(IWorkbench workbench) { | ||
|
||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...mclipse/pcr/report/supplier/tabular/excel/ui/preferences/IgnoredSubsetPreferencePage.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,49 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2022, 2023 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.report.supplier.tabular.excel.ui.preferences; | ||
|
||
import org.eclipse.chemclipse.pcr.report.supplier.tabular.excel.preferences.PreferenceSupplier; | ||
import org.eclipse.chemclipse.pcr.report.supplier.tabular.excel.ui.Activator; | ||
import org.eclipse.jface.preference.FieldEditorPreferencePage; | ||
import org.eclipse.ui.IWorkbench; | ||
import org.eclipse.ui.IWorkbenchPreferencePage; | ||
|
||
public class IgnoredSubsetPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage { | ||
|
||
public IgnoredSubsetPreferencePage() { | ||
|
||
super(GRID); | ||
setPreferenceStore(Activator.getDefault().getPreferenceStore()); | ||
setDescription("These subsets will never get reported."); | ||
} | ||
|
||
/** | ||
* Creates the field editors. Field editors are abstractions of the common | ||
* GUI blocks needed to manipulate various types of preferences. Each field | ||
* editor knows how to save and restore itself. | ||
*/ | ||
@Override | ||
public void createFieldEditors() { | ||
|
||
addField(new StringListFieldEditor(PreferenceSupplier.P_IGNORE_SUBSETS, "", getFieldEditorParent())); | ||
} | ||
|
||
/* | ||
* (non-Javadoc) | ||
* @see | ||
* org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench) | ||
*/ | ||
@Override | ||
public void init(IWorkbench workbench) { | ||
|
||
} | ||
} |
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
Oops, something went wrong.