Search in sources :

Example 1 with ImageRunSelectionModel

use of org.eclipse.linuxtools.internal.docker.ui.wizards.ImageRunSelectionModel in project linuxtools by eclipse.

the class RunImageLaunchConfigurationTabGroup method createTabs.

@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
    runSelectionModel = null;
    runVolumesModel = null;
    runNetworkModel = null;
    if (DockerConnectionManager.getInstance().hasConnections()) {
        runSelectionModel = new ImageRunSelectionModel(CommandUtils.getCurrentConnection(null));
        runNetworkModel = new ImageRunNetworkModel(CommandUtils.getCurrentConnection(null));
        try {
            runVolumesModel = new ImageRunResourceVolumesVariablesModel(CommandUtils.getCurrentConnection(null));
        } catch (DockerException e) {
        // do nothing
        }
    }
    setTabs(new AbstractLaunchConfigurationTab[] { new RunImageMainTab(runSelectionModel, runVolumesModel, runNetworkModel), new RunImageVolumesTab(runVolumesModel), new RunImagePortsTab(runSelectionModel), new RunImageLinksTab(runSelectionModel), new RunImageNetworkTab(runNetworkModel), new RunImageEnvironmentTab(runVolumesModel), new RunImageLabelsTab(runVolumesModel), new RunImageResourcesTab(runVolumesModel), new org.eclipse.debug.ui.CommonTab() });
}
Also used : DockerException(org.eclipse.linuxtools.docker.core.DockerException) ImageRunResourceVolumesVariablesModel(org.eclipse.linuxtools.internal.docker.ui.wizards.ImageRunResourceVolumesVariablesModel) ImageRunNetworkModel(org.eclipse.linuxtools.internal.docker.ui.wizards.ImageRunNetworkModel) ImageRunSelectionModel(org.eclipse.linuxtools.internal.docker.ui.wizards.ImageRunSelectionModel)

Aggregations

DockerException (org.eclipse.linuxtools.docker.core.DockerException)1 ImageRunNetworkModel (org.eclipse.linuxtools.internal.docker.ui.wizards.ImageRunNetworkModel)1 ImageRunResourceVolumesVariablesModel (org.eclipse.linuxtools.internal.docker.ui.wizards.ImageRunResourceVolumesVariablesModel)1 ImageRunSelectionModel (org.eclipse.linuxtools.internal.docker.ui.wizards.ImageRunSelectionModel)1