summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/VirtualizerNoticeWindow.java
blob: 4043bb31c2665d08fd10246aa2200f34337d24c1 (plain) (blame)
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
49
50
51
52
53
54
55
56
package org.openslx.dozmod.gui.window;

import org.apache.log4j.Logger;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Shell;
import org.openslx.dozmod.Config;
import org.openslx.dozmod.gui.window.layout.VirtualizerNoticeWindowLayout;

public class VirtualizerNoticeWindow extends VirtualizerNoticeWindowLayout {

	private final static Logger LOGGER = Logger.getLogger(VirtualizerNoticeWindow.class);

	public VirtualizerNoticeWindow(final Shell mainShell) {
		super(mainShell);

		final VirtualizerNoticeWindow me = this;

		// function for agreement checkbox
		continueButton.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				if (!Config.setVmwareLicenseAgreement(readCheck.getSelection()))
					LOGGER.error("Could not set the agreement to the vmware license in '" + Config.getPath());
				Config.store();
				me.getShell().dispose();
			}
		});

		// actions of the login button
		linuxDLButton.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				//clickedLinuxDLButton();
			}
		});

		// actions of the login button
		windowsDLButton.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				//clickedWindowsDLButton();
			}
		});

		// actions of the login button
		readCheck.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				//clickedReadCheckButton();
			}
		});

	}

}