diff options
| author | Simon Rettberg | 2015-08-19 17:25:08 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2015-08-19 17:25:08 +0200 |
| commit | 4e1fc58ffff9b88abefe297566e286e74bf5b2f2 (patch) | |
| tree | 064a38610a427e5785559e1709218c404c51ba0b | |
| parent | [client] Show proper message when deleting an image version (diff) | |
| download | tutor-module-4e1fc58ffff9b88abefe297566e286e74bf5b2f2.tar.gz tutor-module-4e1fc58ffff9b88abefe297566e286e74bf5b2f2.tar.xz tutor-module-4e1fc58ffff9b88abefe297566e286e74bf5b2f2.zip | |
[client] Fix javadoc and formatting
| -rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/thrift/ThriftActions.java | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/ThriftActions.java b/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/ThriftActions.java index db3d0cee..e57a9310 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/ThriftActions.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/ThriftActions.java @@ -142,17 +142,19 @@ public class ThriftActions { return fileName; } + public interface DeleteCallback { + void isDeleted(boolean success); + } + /******************************************************************************** * * DELETE ACTION * - * Deletes a specific image version or the latest if none is specified + * Deletes a specific image version * ********************************************************************************/ - public interface DeleteCallback { - void isDeleted(boolean success); - } - public static void deleteImageVersion(final Frame frame, final String imageBaseId, final String imageVersionId, final DeleteCallback callback) { + public static void deleteImageVersion(final Frame frame, final String imageBaseId, + final String imageVersionId, final DeleteCallback callback) { // requires confirmation of the user if (!Gui.showMessageBox(frame, "Wollen Sie diese Image-Version wirklich löschen?", MessageType.QUESTION_YESNO, LOGGER, null)) @@ -160,13 +162,13 @@ public class ThriftActions { // try to actually delete this version of the image QuickTimer.scheduleOnce(new Task() { boolean success = false; + @Override public void fire() { try { ThriftManager.getSatClient().deleteImageVersion(Session.getSatelliteToken(), imageVersionId); - LOGGER.info("Deleted version '" + imageVersionId + "' of image '" - + imageBaseId + "'."); + LOGGER.info("Deleted version '" + imageVersionId + "' of image '" + imageBaseId + "'."); success = true; } catch (TException e) { ThriftError.showMessage(frame, LOGGER, e, "Das Löschen der Version ist gescheitert"); |
