blob: a945f48017b223ec0cc18b8503bb350af8b63488 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
/*
* 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;
import YalpClients.SwtClient.GUI.*;
import org.eclipse.swt.*;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
/*
* Class Client
*
* <em>Instances Model, LoadDialog and StartDialog</em>
*
* @author Volker Dahnke
*
* @version 1 02-04-2006<br>
*/
public class Client implements Runnable{
/*
* enables the Class to be loaded dynamicly.
* Instances Model, LoadDialog and StartDialog.
*/
public void run () {
LoadDialog load = new LoadDialog(
new Shell(Display.getDefault(),SWT.NONE), SWT.NONE);
load.show();
final Model model = new Model();
load.close();
StartDialog start =
new StartDialog(new Shell(Display.getDefault(),SWT.MIN),model, SWT.NONE);
start.show();
}
}
|