Commit 35d24511 authored by Daniel Lehmberg's avatar Daniel Lehmberg

WIP: make checkbox to select to add meta data to files

parent c8f46e4f
......@@ -40,6 +40,7 @@ NewTestError.title=Error
DataProcessingView.msgInvalidJson=Invalid json
DataProcessingView.msgShowError=Show error message
DataProcessingView.chbAddTimeStamp=Add timestamp to output folder
DataProcessingView.chbAddMetaData=Add meta data to output files
DataProcessingView.btnAdd=Add
DataProcessingView.btnDelete=Delete
DataProcessingView.msgFileSelected=No output file selected.
......
......@@ -39,6 +39,7 @@ NewTestError.title=Fehler.
DataProcessingView.msgInvalidJson=Fehlerhaftes JSON
DataProcessingView.msgShowError=Zeige Fehlermeldung
DataProcessingView.chbAddTimeStamp=F\u00FCge Zeitstempel zu Ausgabeordner
DataProcessingView.chbAddMetaData=F\u00FCge Meta-Daten in Ausgabedateien
DataProcessingView.btnAdd=Hinzuf\u00FCgen
DataProcessingView.btnDelete=L\u00F6schen
DataProcessingView.msgFileSelected=Keine Ausgabedatei ist ausgew\u00E4hlt
......
......@@ -184,6 +184,7 @@ class DataProcessingView extends JPanel implements IJsonView {
private boolean isEditable;
private JCheckBox isTimestampedCheckBox;
private JCheckBox isWriteMetaData;
private JTable outputFilesTable;
private DefaultTableModel outputFilesTableModel;
private JTable dataProcessorsTable;
......@@ -219,10 +220,23 @@ class DataProcessingView extends JPanel implements IJsonView {
currentScenario.getDataProcessingJsonManager().setTimestamped(isTimestampedCheckBox.isSelected());
}
});
isTimestampedCheckBox.setAlignmentX(Component.LEFT_ALIGNMENT);
addEditableComponent(isTimestampedCheckBox);
filesPanel.add(isTimestampedCheckBox);
isWriteMetaData = new JCheckBox(Messages.getString("DataProcessingView.chbAddMetaData"));
isWriteMetaData.addActionListener(new AbstractAction() {
@Override
public void actionPerformed(ActionEvent e) {
currentScenario.getDataProcessingJsonManager().setWriteMetaData(isWriteMetaData.isSelected());
}
});
isWriteMetaData.setAlignmentX(Component.LEFT_ALIGNMENT);
addEditableComponent(isWriteMetaData);
filesPanel.add(isWriteMetaData);
JButton addFileBtn = new JButton(new AbstractAction(Messages.getString("DataProcessingView.btnAdd")) {
@Override
public void actionPerformed(ActionEvent e) {
......@@ -357,6 +371,7 @@ class DataProcessingView extends JPanel implements IJsonView {
selectedOutputFile = null;
selectedDataProcessor = null;
isTimestampedCheckBox.setSelected(scenario.getDataProcessingJsonManager().isTimestamped());
isWriteMetaData.setSelected(scenario.getDataProcessingJsonManager().isWriteMetaData());
updateOutputFilesTable();
updateDataProcessorsTable();
updateDataProcessIdsInUse();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment