blob: 2df169762048ce93a179c3a47b9a36d77ed605be (
plain) (
tree)
|
|
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;
}
}
|