use of org.eclipse.linuxtools.internal.docker.ui.wizards.ImageRunNetworkModel 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() });
}
Aggregations