summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/DisclaimerWindow.java
diff options
context:
space:
mode:
authorStephan Schwaer2015-10-07 15:59:47 +0200
committerStephan Schwaer2015-10-07 15:59:47 +0200
commit5806e07c5f4e2bb592b010a1bb4a043c7aa30ca9 (patch)
treef3d876bf05a0a35d766adf779626e5eb19953d5b /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/DisclaimerWindow.java
parent[client] Can now continue in imageListPage in lecture wizard with double clic... (diff)
downloadtutor-module-5806e07c5f4e2bb592b010a1bb4a043c7aa30ca9.tar.gz
tutor-module-5806e07c5f4e2bb592b010a1bb4a043c7aa30ca9.tar.xz
tutor-module-5806e07c5f4e2bb592b010a1bb4a043c7aa30ca9.zip
[client] Code formatting.
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/DisclaimerWindow.java')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/DisclaimerWindow.java19
1 files changed, 11 insertions, 8 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/DisclaimerWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/DisclaimerWindow.java
index b787275e..ea44ef8d 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/DisclaimerWindow.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/DisclaimerWindow.java
@@ -22,7 +22,8 @@ import org.openslx.dozmod.gui.window.layout.DisclaimerWindowLayout;
public class DisclaimerWindow extends DisclaimerWindowLayout implements UiFeedback {
/**
- * Use a version number for the disclaimer. Whenever we add/change something, this will be increased
+ * Use a version number for the disclaimer. Whenever we add/change
+ * something, this will be increased
*/
public static final int DISCLAIMER_VERSION = 1;
@@ -82,15 +83,17 @@ public class DisclaimerWindow extends DisclaimerWindowLayout implements UiFeedba
public void escapePressed() {
closeWindow();
}
-
-
+
/**
- * Check, whether to ask for confirmation, when disclaimer hasn't been accepted or just close.
+ * Check, whether to ask for confirmation, when disclaimer hasn't been
+ * accepted or just close.
*/
- private void closeWindow(){
- if(shouldBeShown()) {
- if(Gui.showMessageBox(me, "Wenn diesen rechtlichen Hinweis nicht akzeptieren, können Sie die Software nicht verwenden! "
- + "Sind Sie sicher, dass sie abbrechen wollen?", MessageType.QUESTION_YESNO , LOGGER, null)){
+ private void closeWindow() {
+ if (shouldBeShown()) {
+ if (Gui.showMessageBox(me,
+ "Wenn diesen rechtlichen Hinweis nicht akzeptieren, können Sie die Software nicht verwenden! "
+ + "Sind Sie sicher, dass sie abbrechen wollen?", MessageType.QUESTION_YESNO,
+ LOGGER, null)) {
System.exit(ABORT);
}
} else {