mirror of
https://github.com/PAMGuard/PAMGuard.git
synced 2025-02-16 17:22:46 +00:00
Prevent single deployment export
For now, disable the option to export a single Deployment document for multiple recording periods.
This commit is contained in:
parent
522253b489
commit
54cb0d1b08
@ -44,6 +44,7 @@ public class DeploymentDataCard extends PamWizardCard {
|
|||||||
bg.add(exportOne);
|
bg.add(exportOne);
|
||||||
bg.add(exportMany);
|
bg.add(exportMany);
|
||||||
|
|
||||||
|
|
||||||
JPanel optsPanel = new JPanel(new GridBagLayout());
|
JPanel optsPanel = new JPanel(new GridBagLayout());
|
||||||
optsPanel.setBorder(new TitledBorder("Number of documents"));
|
optsPanel.setBorder(new TitledBorder("Number of documents"));
|
||||||
GridBagConstraints c = new PamGridBagContraints();
|
GridBagConstraints c = new PamGridBagContraints();
|
||||||
@ -95,6 +96,15 @@ public class DeploymentDataCard extends PamWizardCard {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setParams(DeploymentExportOpts exportOptions, Deployment deployment) {
|
public void setParams(DeploymentExportOpts exportOptions, Deployment deployment) {
|
||||||
|
|
||||||
|
/*
|
||||||
|
* temp code to only allow export of multiple documents.
|
||||||
|
*/
|
||||||
|
exportOptions.separateDeployments = true;
|
||||||
|
exportOne.setEnabled(false);
|
||||||
|
exportOne.setToolTipText("Feature not yet enabled");
|
||||||
|
|
||||||
|
|
||||||
exportOne.setSelected(exportOptions.separateDeployments == false);
|
exportOne.setSelected(exportOptions.separateDeployments == false);
|
||||||
exportMany.setSelected(exportOptions.separateDeployments == true);
|
exportMany.setSelected(exportOptions.separateDeployments == true);
|
||||||
setParams(deployment);
|
setParams(deployment);
|
||||||
|
Loading…
Reference in New Issue
Block a user