diff options
| author | unknown <Administrator@.(none)> | 2009-12-29 18:25:47 +0100 |
|---|---|---|
| committer | unknown <Administrator@.(none)> | 2009-12-29 18:25:47 +0100 |
| commit | fee6fe4d468c2e7fcc3403b9f3b8412b8d4e2dbd (patch) | |
| tree | 26baa66a010aa459f3c8ba530d57af6e633e3b89 /src/YalpClients/SwtClient/GUI/InitGUI.java | |
| parent | bec20df70966484d7592ea80a17c7decc1bdd81e (diff) | |
added windows start scripts
Signed-off-by: unknown <Administrator@.(none)>
Diffstat (limited to 'src/YalpClients/SwtClient/GUI/InitGUI.java')
| -rw-r--r-- | src/YalpClients/SwtClient/GUI/InitGUI.java | 116 |
1 files changed, 58 insertions, 58 deletions
diff --git a/src/YalpClients/SwtClient/GUI/InitGUI.java b/src/YalpClients/SwtClient/GUI/InitGUI.java index e432c50..6b1fa51 100644 --- a/src/YalpClients/SwtClient/GUI/InitGUI.java +++ b/src/YalpClients/SwtClient/GUI/InitGUI.java @@ -1,58 +1,58 @@ -/* - * Copyright (c) 2006 Manuel Traut and Volker Dahnke - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v10.html - * - * Contributors: Manuel Traut and Volker Dahnke - */ - -package YalpClients.SwtClient.GUI; - -import org.eclipse.swt.SWT; -import org.eclipse.swt.widgets.Display; -import org.eclipse.swt.widgets.Shell; - -import YalpClients.SwtClient.*; -import YalpInterfaces.AccessRights; - -/* - * Class InitGUI - * - * <em></em> - * - * @author Volker Dahnke / Manuel Traut - * - * @version 1 02-04-2006<br> - * - */ - -public class InitGUI { - private Model model; - private Display display; - private int time = 1000; - - public InitGUI(Model model,AccessRights kind){ - this.model=model; - this.display = Display.getDefault(); - final Runnable timer = new Runnable() { - public void run() { - serverStillAlive(this); - } - }; - display.timerExec(time, timer); - - GUI gui= new GUI( - new Shell(display ,SWT.MIN), display, model, kind, SWT.NULL ); - gui.show(); - } - - public void serverStillAlive(Runnable timer){ - model.serverStillAlive(); - if (!this.model.getLogoff()){ - this.display.timerExec(time, timer); - } - } - -} +/*
+ * Copyright (c) 2006 Manuel Traut and Volker Dahnke
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v10.html
+ *
+ * Contributors: Manuel Traut and Volker Dahnke
+ */
+
+package YalpClients.SwtClient.GUI;
+
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Shell;
+
+import YalpClients.SwtClient.*;
+import YalpInterfaces.AccessRights;
+
+/*
+ * Class InitGUI
+ *
+ * <em></em>
+ *
+ * @author Volker Dahnke / Manuel Traut
+ *
+ * @version 1 02-04-2006<br>
+ *
+ */
+
+public class InitGUI {
+ private Model model;
+ private Display display;
+ private int time = 1000;
+
+ public InitGUI(Model model,AccessRights kind){
+ this.model=model;
+ this.display = Display.getDefault();
+ final Runnable timer = new Runnable() {
+ public void run() {
+ serverStillAlive(this);
+ }
+ };
+ display.timerExec(time, timer);
+
+ GUI gui= new GUI(
+ new Shell(display ,SWT.MIN), display, model, kind, SWT.NULL );
+ gui.show();
+ }
+
+ public void serverStillAlive(Runnable timer){
+ model.serverStillAlive();
+ if (!this.model.getLogoff()){
+ this.display.timerExec(time, timer);
+ }
+ }
+
+}
|
