@Override public void widgetSelected(SelectionEvent e) { MavenDiscovery.launchWizard(workbench.getModalDialogShellProvider().getShell()); } });
/** * Returns a shell that is appropriate to use as the parent * for a modal dialog. */ public static Shell getDefaultParentShell() { return PlatformUI.getWorkbench().getModalDialogShellProvider().getShell(); }
/** * Creates a warning message dialog. The message area will contain the scrollable * text box that will show the list of the projects supplied. * * @param warningMessage * the warning message to be shown on the dialog. * @param namesOfNotImportedProjects * the list of the project names that did not get imported. */ public NotImportedProjectsWarningDialog(String warningMessage, List<String> namesOfNotImportedProjects) { super(PlatformUI.getWorkbench().getModalDialogShellProvider().getShell(), PDEUIMessages.ImportWizard_title, null, warningMessage, MessageDialog.WARNING, new String[] {IDialogConstants.OK_LABEL}, 0); fNamesOfNotImportedProjects = namesOfNotImportedProjects; }
/** * Return a shell appropriate for parenting dialogs of this handler. * @return a Shell */ protected Shell getShell() { return PlatformUI.getWorkbench().getModalDialogShellProvider().getShell(); } }
public static void handleCommandException() { MessageDialog.openError( PlatformUI.getWorkbench().getModalDialogShellProvider().getShell(), PreferenceMessages.ApiProblemSeveritiesConfigurationBlock_checkable_ees_error_dialog_title, PreferenceMessages.ApiProblemSeveritiesConfigurationBlock_checkable_ees_error_dialog_description); }
public static void handleCommandException() { MessageDialog.openError(PlatformUI.getWorkbench().getModalDialogShellProvider().getShell(), PreferenceMessages.ApiProblemSeveritiesConfigurationBlock_checkable_ees_error_dialog_title, PreferenceMessages.ApiProblemSeveritiesConfigurationBlock_checkable_ees_error_dialog_description); }
private void internalOpenDialog(final CompareEditorInput input) { Runnable runnable = () -> { CompareDialog dialog = new CompareDialog(PlatformUI .getWorkbench().getModalDialogShellProvider() .getShell(), input); dialog.open(); }; syncExec(runnable); }
Shell shell= PlatformUI.getWorkbench().getModalDialogShellProvider().getShell(); final IEditorInput input= getEditorInput();