diff options
author | Simon Rettberg | 2015-08-03 12:17:07 +0200 |
---|---|---|
committer | Simon Rettberg | 2015-08-03 12:17:07 +0200 |
commit | be328a8b451fb751d9e202cbd4c5f111f8fab3dc (patch) | |
tree | f1a3d344d56fc76437cb667fa15681e884e63eb7 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java | |
parent | [client] Delete old SWT helper class (diff) | |
download | tutor-module-be328a8b451fb751d9e202cbd4c5f111f8fab3dc.tar.gz tutor-module-be328a8b451fb751d9e202cbd4c5f111f8fab3dc.tar.xz tutor-module-be328a8b451fb751d9e202cbd4c5f111f8fab3dc.zip |
[client] ...and remove unneeded calls to it :)
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java index 55b6332d..9d72f25a 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java @@ -12,12 +12,10 @@ import java.util.List; import org.apache.log4j.Logger; import org.openslx.bwlp.thrift.iface.ImageDetailsRead; import org.openslx.bwlp.thrift.iface.OperatingSystem; -import org.openslx.bwlp.thrift.iface.Organization; import org.openslx.bwlp.thrift.iface.Virtualizer; import org.openslx.dozmod.gui.Gui; import org.openslx.dozmod.gui.MainWindow; import org.openslx.dozmod.gui.helper.MessageType; -import org.openslx.dozmod.gui.helper.SwtUtil; import org.openslx.dozmod.gui.window.layout.ImageDetailsWindowLayout; import org.openslx.dozmod.permissions.ImagePerms; import org.openslx.dozmod.thrift.MetaDataCache; @@ -39,7 +37,7 @@ public class ImageDetailsWindow extends ImageDetailsWindowLayout { public ImageDetailsWindow(Frame modalParent) { super(modalParent); - + // Close button closes window btnClose.addActionListener(new ActionListener() { @Override @@ -59,6 +57,7 @@ public class ImageDetailsWindow extends ImageDetailsWindowLayout { }); setFocusable(true); } + /** * @param imageBaseId the id of the image to be displayed */ @@ -104,8 +103,8 @@ public class ImageDetailsWindow extends ImageDetailsWindowLayout { private void fill() { if (image == null) return; - txtTitle.setText(SwtUtil.replaceMnemonics(image.getImageName())); - txtDescription.setText(SwtUtil.replaceMnemonics(image.getDescription())); + txtTitle.setText(image.getImageName()); + txtDescription.setText(image.getDescription()); lblOwner.setUser(UserCache.find(image.getOwnerId())); lblUpdater.setUser(UserCache.find(image.getUpdaterId())); lblCreateTime.setText(FormatHelper.longDate(image.getCreateTime())); @@ -146,7 +145,7 @@ public class ImageDetailsWindow extends ImageDetailsWindowLayout { * * @param editable true to make fields editable, false otherwise. */ - private void makeEditable(boolean editable){ + private void makeEditable(boolean editable) { txtTitle.setEnabled(editable); txtDescription.setEnabled(editable); txtTags.setEnabled(editable); |