summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/VirtDropDownConfigEditorWindowLayout.java
diff options
context:
space:
mode:
authorSimon Rettberg2019-07-01 11:21:26 +0200
committerSimon Rettberg2019-07-01 11:21:26 +0200
commit220d85cf336118063fd52ea9575f605b56f6a282 (patch)
treeac5047e2438b2ceedb0e088a7c89f92f91d7f630 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/VirtDropDownConfigEditorWindowLayout.java
parentAdd TODOs for refactoring (diff)
downloadtutor-module-220d85cf336118063fd52ea9575f605b56f6a282.tar.gz
tutor-module-220d85cf336118063fd52ea9575f605b56f6a282.tar.xz
tutor-module-220d85cf336118063fd52ea9575f605b56f6a282.zip
Implement CONFIG_USB feature
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/VirtDropDownConfigEditorWindowLayout.java')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/VirtDropDownConfigEditorWindowLayout.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/VirtDropDownConfigEditorWindowLayout.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/VirtDropDownConfigEditorWindowLayout.java
index ba707bf4..6e8cc749 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/VirtDropDownConfigEditorWindowLayout.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/VirtDropDownConfigEditorWindowLayout.java
@@ -22,6 +22,8 @@ import org.openslx.dozmod.gui.control.ComboBox;
import org.openslx.dozmod.gui.control.ComboBox.ComboBoxRenderer;
import org.openslx.dozmod.gui.control.WordWrapLabel;
import org.openslx.dozmod.gui.helper.GridManager;
+import org.openslx.dozmod.thrift.Session;
+import org.openslx.sat.thrift.version.Feature;
import org.openslx.util.vm.VmMetaData.DDAcceleration;
import org.openslx.util.vm.VmMetaData.EthernetDevType;
import org.openslx.util.vm.VmMetaData.HWVersion;
@@ -123,9 +125,11 @@ public class VirtDropDownConfigEditorWindowLayout extends JDialog {
grid.add(new JLabel("Netzwerkkarte")).fill(true, false).expand(false, false);
grid.add(cboE0VirtDev).fill(true, false).expand(true, false);
grid.nextRow();
- grid.add(new JLabel("USB")).fill(true, false).expand(false, false);
- grid.add(cboMaxUsbSpeed).fill(true, false).expand(true, false);
- grid.nextRow();
+ if (Session.hasFeature(Feature.CONFIGURE_USB)) {
+ grid.add(new JLabel("USB")).fill(true, false).expand(false, false);
+ grid.add(cboMaxUsbSpeed).fill(true, false).expand(true, false);
+ grid.nextRow();
+ }
grid.add(Box.createVerticalGlue(), 2).expand(true, true);
grid.nextRow();