diff options
author | Simon Rettberg | 2018-04-24 22:00:22 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-04-24 22:00:22 +0200 |
commit | 8659edb1ce79831a3fbb5155e5216528ee6b7c83 (patch) | |
tree | 4ab958e0b265479e551910735d53532a466abd49 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard | |
parent | [translation] Satelliten-Server/Master-Server -> Satellitenserver/Masterserver (diff) | |
download | tutor-module-8659edb1ce79831a3fbb5155e5216528ee6b7c83.tar.gz tutor-module-8659edb1ce79831a3fbb5155e5216528ee6b7c83.tar.xz tutor-module-8659edb1ce79831a3fbb5155e5216528ee6b7c83.zip |
[client] Use TConst virtualizer constants
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ImageUploadPage.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ImageUploadPage.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ImageUploadPage.java index 192ab82e..2a798f27 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ImageUploadPage.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ImageUploadPage.java @@ -30,6 +30,7 @@ import org.openslx.dozmod.thrift.UploadInitiator; import org.openslx.dozmod.thrift.WrappedException; import org.openslx.dozmod.thrift.cache.MetaDataCache; import org.openslx.sat.thrift.version.Feature; +import org.openslx.thrifthelper.TConst; import org.openslx.util.vm.DiskImage; import org.openslx.util.vm.DiskImage.UnknownImageFormatException; import org.openslx.util.vm.VboxMetaData; @@ -106,9 +107,9 @@ public class ImageUploadPage extends ImageUploadPageLayout { fc.setFileFilter(allSupportedFilter); // differentiate between existing and new VMs if (existingImage != null) { - if (existingImage.virtId.equals("vmware")) { + if (existingImage.virtId.equals(TConst.VIRT_VMWARE)) { fc.setFileFilter(vmxFilter); - } else if (existingImage.virtId.equals("virtualbox")) { + } else if (existingImage.virtId.equals(TConst.VIRT_VIRTUALBOX)) { fc.setFileFilter(vboxFilter); } } |