diff options
author | Simon Rettberg | 2019-06-28 12:02:55 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-06-28 12:02:55 +0200 |
commit | 3536ce22cad993ea7cf5dfdab003c3a58b4f75e3 (patch) | |
tree | 90f13c1bd527854433d9c75c178be8974f7cc690 /dozentenmodul | |
parent | Actually remember history of all disclaimer/privacy versions (diff) | |
download | tutor-module-3536ce22cad993ea7cf5dfdab003c3a58b4f75e3.tar.gz tutor-module-3536ce22cad993ea7cf5dfdab003c3a58b4f75e3.tar.xz tutor-module-3536ce22cad993ea7cf5dfdab003c3a58b4f75e3.zip |
Add TODOs for refactoring
Diffstat (limited to 'dozentenmodul')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/VirtConfigEditorWindow.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/VirtConfigEditorWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/VirtConfigEditorWindow.java index be06f8ae..36bea427 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/VirtConfigEditorWindow.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/VirtConfigEditorWindow.java @@ -101,6 +101,7 @@ public class VirtConfigEditorWindow extends VirtConfigEditorWindowLayout impleme byte[] uiBytesFiltered = metaCandidate.getDefinitionArray(); final String userInputFiltered; + // TODO: This is ugly, why is there instanceof stuff here, add a method to VmMetaData!? if (metaCandidate instanceof VboxMetaData) { userInputFiltered = XmlHelper.getFormattedXml(new ByteArrayInputStream(uiBytesFiltered)); } else { @@ -118,6 +119,7 @@ public class VirtConfigEditorWindow extends VirtConfigEditorWindowLayout impleme for (String s : unfilteredSet) { errorText += s + "\n"; } + // TODO: Somehow this always triggers for vbox errorText += System.lineSeparator() + "Wollen Sie trotzdem speichern? (Die invaliden Zeilen werden dabei automatisch gelöscht.)"; if (!Gui.showMessageBox(errorText, MessageType.ERROR_RETRY, LOGGER, null)) |