summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImagePublishedWindow.java
diff options
context:
space:
mode:
authorJonathan Bauer2016-05-04 18:21:47 +0200
committerJonathan Bauer2016-05-04 18:21:47 +0200
commit2420003d435ba1800c6ec0874c08bef1c1cd9a7a (patch)
tree288c9058f308d16fd719ac3bd223b1f7244d6419 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImagePublishedWindow.java
parent[client] only switch to 'Advanced' tab if its input fields contain errors (diff)
downloadtutor-module-2420003d435ba1800c6ec0874c08bef1c1cd9a7a.tar.gz
tutor-module-2420003d435ba1800c6ec0874c08bef1c1cd9a7a.tar.xz
tutor-module-2420003d435ba1800c6ec0874c08bef1c1cd9a7a.zip
[client] publish image stuff 2.0
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImagePublishedWindow.java')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImagePublishedWindow.java21
1 files changed, 18 insertions, 3 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImagePublishedWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImagePublishedWindow.java
index 056b1a4d..d58b5be9 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImagePublishedWindow.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImagePublishedWindow.java
@@ -10,11 +10,15 @@ import java.awt.event.WindowEvent;
import java.util.List;
import javax.swing.JFrame;
+import javax.swing.JOptionPane;
import javax.swing.SwingUtilities;
import org.apache.log4j.Logger;
import org.apache.thrift.TException;
import org.openslx.bwlp.thrift.iface.ImageSummaryRead;
+import org.openslx.bwlp.thrift.iface.TAuthorizationException;
+import org.openslx.bwlp.thrift.iface.TInvocationException;
+import org.openslx.bwlp.thrift.iface.TNotFoundException;
import org.openslx.dozmod.gui.Gui;
import org.openslx.dozmod.gui.MainWindow;
import org.openslx.dozmod.gui.helper.UiFeedback;
@@ -97,9 +101,9 @@ public class ImagePublishedWindow extends ImagePublishedWindowLayout implements
if (item == null || item.getImageBaseId() == null)
return;
ImageDetailsWindow.open(
- (JFrame) SwingUtilities.getWindowAncestor(me),
+ JOptionPane.getFrameForComponent(ImagePublishedWindow.this),
item.getImageBaseId(), null,
- new ImagePublishedDetailsActions());
+ new ImagePublishedDetailsActions(JOptionPane.getFrameForComponent(ImagePublishedWindow.this)));
}
processClick(e);
}
@@ -118,14 +122,24 @@ public class ImagePublishedWindow extends ImagePublishedWindowLayout implements
// TODO popup menu?
}
});
+ LOGGER.debug(Session.getSatelliteAddress());
+ try {
+
+ ThriftManager.getMasterClient().downloadImage("asd", "123");
+ } catch (TException e1) {
+ ThriftError.showMessage(this, LOGGER, e1, "fail");
+ }
+
// init data
refreshList(true, 0);
}
+
/**
* Callback when download initialized
*
- * @param success true if downloading, false otherwise
+ * @param success
+ * true if downloading, false otherwise
*/
@Override
public void downloadInitialized(boolean success) {
@@ -138,6 +152,7 @@ public class ImagePublishedWindow extends ImagePublishedWindowLayout implements
});
}
}
+
/**
* Refreshes the image list in the table
*