use of org.jboss.tools.openshift.common.ui.wizard.OkButtonWizardDialog 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.common.ui.wizard.OkButtonWizardDialog in project jbosstools-openshift by jbosstools.
the class ManageProjectsHandler method execute.
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
ISelection selection = HandlerUtil.getCurrentSelection(event);
Connection connection = UIUtils.getFirstElement(selection, Connection.class);
if (connection == null) {
IResource resource = UIUtils.getFirstElement(selection, IResource.class);
if (resource != null) {
connection = ConnectionsRegistryUtil.getConnectionFor(resource);
}
}
if (connection == null) {
return OpenShiftUIActivator.statusFactory().cancelStatus("No connection selected that we can manage projects for.");
}
new OkButtonWizardDialog(HandlerUtil.getActiveShell(event), new ManageProjectsWizard(connection)).open();
return null;
}
Aggregations