use of org.jboss.tools.openshift.internal.ui.portforwading.PortForwardingWizardModel in project jbosstools-openshift by jbosstools.
the class PortForwardingHandler method openDialog.
private void openDialog(final IPod pod) {
Shell shell = PlatformUI.getWorkbench().getModalDialogShellProvider().getShell();
WizardDialog dialog = new OkButtonWizardDialog(shell, new PortForwardingWizard(new PortForwardingWizardModel(pod)));
dialog.setMinimumPageSize(700, 400);
dialog.create();
dialog.open();
}
use of org.jboss.tools.openshift.internal.ui.portforwading.PortForwardingWizardModel in project jbosstools-openshift by jbosstools.
the class PortForwardingWizardModelTest method setUp.
@Before
public void setUp() throws Exception {
when(port.getName()).thenReturn("http");
when(port.getContainerPort()).thenReturn(3436);
when(port.getProtocol()).thenReturn("TCP");
when(pod.getName()).thenReturn("apodname");
Set<IPort> ports = new HashSet<>();
ports.add(port);
when(pod.getNamespaceName()).thenReturn("anamespace");
when(pod.getContainerPorts()).thenReturn(ports);
this.model = new PortForwardingWizardModel(pod);
}
Aggregations