diff options
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ContainerUploadPage.java')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ContainerUploadPage.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ContainerUploadPage.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ContainerUploadPage.java index 907c1c3b..878f07f8 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ContainerUploadPage.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ContainerUploadPage.java @@ -218,14 +218,14 @@ public class ContainerUploadPage extends ContainerUploadPageLayout { private boolean checkUserInput() { - switch (getBuildContextMethod()) { - case IMAGE_REPO: + switch (getCurrentContext()) { + case IMAGE_REPOSITORY: if (txtImageRepo.getText() == null || txtImageRepo.getText().isEmpty()) { setWarningMessage(I18n.PAGE.getString("ContainerUploadPage.Warning.NoImageRepo")); return false; } break; - case FILE: + case DOCKERFILE: if (txtImageFile.getText() == null || txtImageFile.getText().isEmpty()) { setWarningMessage(I18n.PAGE.getString("ContainerUploadPage.Warning.NoReceipt")); return false; @@ -241,7 +241,7 @@ public class ContainerUploadPage extends ContainerUploadPageLayout { return false; } break; - case DOCKER_TAR: + case DOCKER_ARCHIVE: if (txtImageTar.getText() == null || txtImageTar.getText().isEmpty()) { setWarningMessage("No Image provided"); return false; @@ -262,15 +262,15 @@ public class ContainerUploadPage extends ContainerUploadPageLayout { private VirtualizationConfigurationDocker createVirtualizationConfig() { - containerDefinition.getContainerMeta().setBuildContextMethod(getBuildContextMethod().ordinal()); + containerDefinition.getContainerMeta().setContainerImageContext(getCurrentContext().ordinal()); containerDefinition.getContainerMeta().setImageName(txtImageName.getText()); - switch (containerDefinition.getBuildContextMethod()) { - case FILE: + switch (containerDefinition.getContainerImageContext()) { + case DOCKERFILE: containerDefinition.setContainerRecipe(state.descriptionFile); state.diskFile = getDummyFile(); break; - case IMAGE_REPO: + case IMAGE_REPOSITORY: containerDefinition.getContainerMeta().setImageRepo(txtImageRepo.getText()); state.diskFile = getDummyFile(); state.descriptionFile = getDummyFile(); @@ -279,7 +279,7 @@ public class ContainerUploadPage extends ContainerUploadPageLayout { state.diskFile = getDummyFile(); state.descriptionFile = getDummyFile(); break; - case DOCKER_TAR: + case DOCKER_ARCHIVE: state.diskFile = new File(txtImageTar.getText()); state.descriptionFile = getDummyFile(); } |