diff options
author | Stephan Schwaer | 2015-06-30 12:36:54 +0200 |
---|---|---|
committer | Stephan Schwaer | 2015-06-30 12:36:54 +0200 |
commit | bfce79c05fc0ed5a315655d5809a4b0685610154 (patch) | |
tree | 7334ed5ce535810b29be0f832c6b390036198f8e /dozentenmodul/src/main/java/gui/core/VMWareInfoComposite.java | |
parent | Merge branch 'v1.1' of git.openslx.org:openslx-ng/tutor-module into v1.1 (diff) | |
download | tutor-module-bfce79c05fc0ed5a315655d5809a4b0685610154.tar.gz tutor-module-bfce79c05fc0ed5a315655d5809a4b0685610154.tar.xz tutor-module-bfce79c05fc0ed5a315655d5809a4b0685610154.zip |
Fixed some comments and variable names
Diffstat (limited to 'dozentenmodul/src/main/java/gui/core/VMWareInfoComposite.java')
-rw-r--r-- | dozentenmodul/src/main/java/gui/core/VMWareInfoComposite.java | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/dozentenmodul/src/main/java/gui/core/VMWareInfoComposite.java b/dozentenmodul/src/main/java/gui/core/VMWareInfoComposite.java index aec2c970..3737817f 100644 --- a/dozentenmodul/src/main/java/gui/core/VMWareInfoComposite.java +++ b/dozentenmodul/src/main/java/gui/core/VMWareInfoComposite.java @@ -16,38 +16,39 @@ import org.eclipse.swt.widgets.Shell; public class VMWareInfoComposite extends Composite { - String _title = "Hinweis VMWare Player"; - String _infoText = "Für die Arbeit mit der bwLehrpool Suite wird zwingend ein VMWare Player benötigt. " + String title = "Hinweis VMWare Player"; + String infoText = "Für die Arbeit mit der bwLehrpool Suite wird zwingend ein VMWare Player benötigt. " + "Diesen können Sie sich unter folgendem Link kostenfrei downloaden. " + "Wenn Sie bereits den VMWare Player oder die VMWare Workstation installiert haben, können Sie diesen Hinweis ignorieren."; - String _checkboxText = "Ja, ich aktzeptiere die Vereinbarung. Benachrichtigung nicht mehr anzeigen."; + String checkboxText = "Ja, ich aktzeptiere die Vereinbarung. Benachrichtigung nicht mehr anzeigen."; public VMWareInfoComposite(final Shell mainShell) { super(mainShell, SWT.NO_BACKGROUND); - // Set the title of the bar. + // set the title of the bar. mainShell.setText("bwLehrpool Suite"); - // Layout for this composite + // layout for this composite this.setLayout(new GridLayout(1, false)); - // Bold title at start. + // bold title at start. Label titleLabel = new Label(this, SWT.NONE); - titleLabel.setText(_title); + titleLabel.setText(title); FontData fontData = titleLabel.getFont().getFontData()[0]; Font font = new Font(GuiManager.getDisplay(), new FontData(fontData.getName(), fontData .getHeight(), SWT.BOLD)); titleLabel.setFont(font); - // TODO Dispose of font? + // TODO dispose of font? - // Infotext + // infotext Label infoLabel = new Label(this, SWT.NONE | SWT.WRAP); - infoLabel.setText(_infoText); + infoLabel.setText(infoText); GridData gridData = new GridData(GridData.FILL, GridData.BEGINNING, true, false); infoLabel.setLayoutData(gridData); + // composite for the windows vmware-download button Composite windowsComposite = new Composite(this, SWT.NONE); windowsComposite.setLayout(new GridLayout()); gridData = new GridData(GridData.FILL, GridData.BEGINNING, true, false); @@ -58,7 +59,7 @@ public class VMWareInfoComposite extends Composite { windowsDLButton.setText("VMWare Player Herunterladen"); - + // composite for the linux vmware-download button Composite linuxComposite = new Composite(this, SWT.NONE); linuxComposite.setLayout(new GridLayout()); gridData = new GridData(GridData.FILL, GridData.BEGINNING, true, false); @@ -80,9 +81,9 @@ public class VMWareInfoComposite extends Composite { gridData = new GridData(GridData.BEGINNING, GridData.END, false, false); continuteButton.setLayoutData(gridData); - // TODO finish + // TODO still looks very ugly - // Function for agreement checkbox + // function for agreement checkbox continuteButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { |