summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/layout/ContainerUploadPageLayout.java
diff options
context:
space:
mode:
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/layout/ContainerUploadPageLayout.java')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/layout/ContainerUploadPageLayout.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/layout/ContainerUploadPageLayout.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/layout/ContainerUploadPageLayout.java
index 509ba11e..2bc4c768 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/layout/ContainerUploadPageLayout.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/layout/ContainerUploadPageLayout.java
@@ -5,7 +5,7 @@ import org.openslx.dozmod.gui.helper.GridManager;
import org.openslx.dozmod.gui.helper.I18n;
import org.openslx.dozmod.gui.wizard.Wizard;
import org.openslx.dozmod.gui.wizard.WizardPage;
-import org.openslx.virtualization.configuration.container.ContainerBuildContextMethod;
+import org.openslx.virtualization.configuration.container.ContainerImageContext;
import javax.swing.*;
import java.awt.*;
@@ -44,7 +44,7 @@ public class ContainerUploadPageLayout extends WizardPage {
// ####################################
// Dockerfile Input Panel -- UNUSED --
- JPanel pnlDockerfileInput = new ContainerTabPanel(ContainerBuildContextMethod.FILE);
+ JPanel pnlDockerfileInput = new ContainerTabPanel(ContainerImageContext.DOCKERFILE);
pnlDockerfileInput.setVisible(false);
tmpGrid = new GridManager(pnlDockerfileInput, 3, true, new Insets(0, 5, 0, 5));
QLabel imageFileCaption = new QLabel(
@@ -60,7 +60,7 @@ public class ContainerUploadPageLayout extends WizardPage {
// ####################################
// Git Repository Input Panel -- UNUSED --
- JPanel pnlGitRepositoryInput = new ContainerTabPanel(ContainerBuildContextMethod.GIT_REPOSITORY);
+ JPanel pnlGitRepositoryInput = new ContainerTabPanel(ContainerImageContext.GIT_REPOSITORY);
pnlGitRepositoryInput.setVisible(false);
tmpGrid = new GridManager(pnlGitRepositoryInput, 2, true, new Insets(0, 5, 0, 5));
QLabel lblGitRepo = new QLabel(I18n.PAGE_LAYOUT.getString("ContainerUploadPage.GitRepository.label"));
@@ -75,7 +75,7 @@ public class ContainerUploadPageLayout extends WizardPage {
// ####################################
// Container Archive Input Panel
- JPanel pnlContainerImage = new ContainerTabPanel(ContainerBuildContextMethod.DOCKER_TAR);
+ JPanel pnlContainerImage = new ContainerTabPanel(ContainerImageContext.DOCKER_ARCHIVE);
pnlGitRepositoryInput.setVisible(false);
tmpGrid = new GridManager(pnlContainerImage, 3, true, new Insets(0, 5, 0, 5));
@@ -95,7 +95,7 @@ public class ContainerUploadPageLayout extends WizardPage {
// ####################################
// Image Repository Input Panel
- JPanel pnlImageRepo = new ContainerTabPanel(ContainerBuildContextMethod.IMAGE_REPO);
+ JPanel pnlImageRepo = new ContainerTabPanel(ContainerImageContext.IMAGE_REPOSITORY);
pnlImageRepo.setVisible(true);
tmpGrid = new GridManager(pnlImageRepo, 2, true, new Insets(0, 5, 0, 5));
QLabel lblImageRepo = new QLabel(I18n.PAGE_LAYOUT.getString("ContainerUploadPage.ImageRepo.label"));
@@ -148,14 +148,14 @@ public class ContainerUploadPageLayout extends WizardPage {
grid.finish(true);
}
- protected ContainerBuildContextMethod getBuildContextMethod() {
+ protected ContainerImageContext getCurrentContext() {
return ((ContainerTabPanel) tpInput.getSelectedComponent()).containerImageContext;
}
static class ContainerTabPanel extends JPanel {
- public final ContainerBuildContextMethod containerImageContext;
+ public final ContainerImageContext containerImageContext;
- ContainerTabPanel(ContainerBuildContextMethod imageContext) {
+ ContainerTabPanel(ContainerImageContext imageContext) {
this.containerImageContext = imageContext;
}
}