summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImageListWindowLayout.java
diff options
context:
space:
mode:
authorSimon Rettberg2015-07-10 17:02:23 +0200
committerSimon Rettberg2015-07-10 17:02:23 +0200
commite500a8530d8ba8a79413e6476005f628ed36c35b (patch)
tree36610e6203467187d8a0e1e3c7dcf81b98653400 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImageListWindowLayout.java
parent[client] fix missing setControl in ImageMetaDataPageLayout (diff)
downloadtutor-module-e500a8530d8ba8a79413e6476005f628ed36c35b.tar.gz
tutor-module-e500a8530d8ba8a79413e6476005f628ed36c35b.tar.xz
tutor-module-e500a8530d8ba8a79413e6476005f628ed36c35b.zip
[client] Fix indentation
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImageListWindowLayout.java')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImageListWindowLayout.java28
1 files changed, 5 insertions, 23 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImageListWindowLayout.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImageListWindowLayout.java
index 4c66c996..96bf48a9 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImageListWindowLayout.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImageListWindowLayout.java
@@ -1,6 +1,5 @@
package org.openslx.dozmod.gui.window.layout;
-
import org.eclipse.jface.viewers.ArrayContentProvider;
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.swt.SWT;
@@ -28,14 +27,12 @@ public abstract class ImageListWindowLayout extends Composite {
protected String tableGroupLabel = "Images";
protected String vmInfoGroupLabel = "Detailinformationen";
-
// buttons
protected Button newButton;
protected Button deleteButton;
protected Button editButton;
protected Button downloadButton;
-
// imageDetail texts
protected Text imageSelectedNameLabel;
protected Text idInfo;
@@ -47,7 +44,6 @@ public abstract class ImageListWindowLayout extends Composite {
protected final TableViewer tableViewer;
-
protected String infoTextString = "Hier können Sie images erstellen, bearbeiten und löschen.";
public ImageListWindowLayout(final Composite mainShell) {
@@ -70,15 +66,12 @@ public abstract class ImageListWindowLayout extends Composite {
infoTitle.setText(infoTitleString);
// set the fond
FontData fontData = infoTitle.getFont().getFontData()[0];
- Font font = new Font(Gui.display, new FontData(fontData.getName(), fontData
- .getHeight(), SWT.BOLD));
+ Font font = new Font(Gui.display, new FontData(fontData.getName(), fontData.getHeight(), SWT.BOLD));
infoTitle.setFont(font);
// the infotext
Label infoText = new Label(infoComposite, SWT.NONE);
infoText.setText(infoTextString);
-
-
// group for the table
Group tableGroup = new Group(this, SWT.BORDER);
tableGroup.setText(tableGroupLabel);
@@ -86,14 +79,13 @@ public abstract class ImageListWindowLayout extends Composite {
tableGroup.setLayout(new GridLayout(3, true));
// jface tableviewer on swt table
- Table vmTable = new Table(tableGroup, SWT.BORDER | SWT.V_SCROLL
- | SWT.H_SCROLL);
+ Table vmTable = new Table(tableGroup, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
GridData tableGridData = new GridData(SWT.FILL, SWT.FILL, true, true);
tableGridData.horizontalSpan = 3;
tableGridData.minimumWidth = 200;
vmTable.setLayoutData(tableGridData);
vmTable.setHeaderVisible(true);
- vmTable.setLinesVisible(true);
+ vmTable.setLinesVisible(true);
// TableViewer on the table
tableViewer = new TableViewer(vmTable);
@@ -121,7 +113,6 @@ public abstract class ImageListWindowLayout extends Composite {
downloadButton = new Button(buttonComposite, SWT.PUSH);
downloadButton.setText(downloadButtonLabel);
-
// group for the info of the selected image in the tableViewer
Group vmInfoGroup = new Group(this, SWT.BORDER);
vmInfoGroup.setText(vmInfoGroupLabel);
@@ -130,28 +121,20 @@ public abstract class ImageListWindowLayout extends Composite {
vmInfoGroup.setLayoutData(buttonCompositeGridData);
vmInfoGroup.setLayout(new GridLayout(2, false));
-
// image name info
imageSelectedNameLabel = createCaptionAndTextfield("Image Name:", vmInfoGroup);
-
-
// id info
idInfo = createCaptionAndTextfield("ID:", vmInfoGroup);
versionInfo = createCaptionAndTextfield("Version", vmInfoGroup);
lastUpdateInfo = createCaptionAndTextfield("Letztes Update:", vmInfoGroup);
permissionInfo = createCaptionAndTextfield("Berechtigungen:", vmInfoGroup);
- ownerInfo= createCaptionAndTextfield("Besitzer ID", vmInfoGroup);
+ ownerInfo = createCaptionAndTextfield("Besitzer ID", vmInfoGroup);
templateInfo = createCaptionAndTextfield("Vorlage:", vmInfoGroup);
-
-
-
-
}
-
- public Text createCaptionAndTextfield(String captionString, Group group){
+ public Text createCaptionAndTextfield(String captionString, Group group) {
Label caption = new Label(group, SWT.NONE);
Text textField = new Text(group, SWT.READ_ONLY);
caption.setText(captionString);
@@ -161,5 +144,4 @@ public abstract class ImageListWindowLayout extends Composite {
return textField;
}
-
}