diff options
author | Jonathan Bauer | 2015-07-09 16:08:06 +0200 |
---|---|---|
committer | Jonathan Bauer | 2015-07-09 16:08:06 +0200 |
commit | e762621de49a3cc844f08f3f0359ff80b1b03498 (patch) | |
tree | 96e86575f174e29f82d98f53d70bbeba015bd90a /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageListWindow.java | |
parent | [client] Support message boxes with feedback; ask user whether to retry on th... (diff) | |
download | tutor-module-e762621de49a3cc844f08f3f0359ff80b1b03498.tar.gz tutor-module-e762621de49a3cc844f08f3f0359ff80b1b03498.tar.xz tutor-module-e762621de49a3cc844f08f3f0359ff80b1b03498.zip |
[client] fixed buttons of disclaimer/vmware license
imagelistwindow first implementation with list refresh function
openPopups set dialogShell as child of mainShell
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageListWindow.java')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageListWindow.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageListWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageListWindow.java new file mode 100644 index 00000000..2df16976 --- /dev/null +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageListWindow.java @@ -0,0 +1,34 @@ +package org.openslx.dozmod.gui.window; + +import java.util.List; + +import org.apache.thrift.TException; +import org.eclipse.swt.widgets.Shell; +import org.openslx.bwlp.thrift.iface.ImageSummaryRead; +import org.openslx.dozmod.gui.window.layout.ImageListWindowLayout; +import org.openslx.dozmod.thrift.Session; +import org.openslx.thrifthelper.ThriftManager; + +public class ImageListWindow extends ImageListWindowLayout { + + public ImageListWindow(final Shell mainShell) { + super(mainShell); + + refreshList(); + } + + private boolean refreshList() { + List<ImageSummaryRead> imageList; + try { + imageList = ThriftManager.getSatClient().getImageList(Session.getSatelliteToken(), null, 0); + } catch (TException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + return false; + } + tableViewer.setInput(imageList); + tableViewer.refresh(); + return true; + } + +} |