@Override public void run() { returnValue[0]= MessageDialog.openQuestion(parent, title, message); } };
@Override public void run() { returnValue[0]= MessageDialog.openQuestion(parent, title, message); } };
@Override public void run() { String title= NewWizardMessages.BuildPathSupport_putoncpdialog_title; String message= NewWizardMessages.BuildPathSupport_putoncpdialog_message; result[0]= MessageDialog.openQuestion(shell, title, message); } });
public void run() { String title= NewWizardMessages.BuildPathSupport_putoncpdialog_title; String message= NewWizardMessages.BuildPathSupport_putoncpdialog_message; result[0]= MessageDialog.openQuestion(shell, title, message); } });
/** * Returns true if the user said okay to creating a new server * project. * * @param shell a shell * @param projectName a project name * @return <code>true</code> if the user wants to create a server project */ public static boolean promptForServerProjectCreation(Shell shell, String projectName) { String msg = NLS.bind(Messages.createServerProjectDialogMessage, projectName); return MessageDialog.openQuestion(shell, Messages.createServerProjectDialogTitle, msg); }
public boolean isConcurrentEditingIgnored(IDirtyStateEditorSupportClient client) { String title = Messages.DirtyStateEditorSupport_ConcurrentChangeDialog_Title; String message = Messages.DirtyStateEditorSupport_ConcurrentChangeDialog_Message; return MessageDialog.openQuestion(client.getShell(), title, message); }
public void run() { String sizeString = Long.toString(count); String message = tree.size() > 1 ? NLS.bind(TeamUIMessages.MergeAllActionHandler_1, new String[] { sizeString }) : NLS.bind(TeamUIMessages.MergeAllActionHandler_2, new String[] { sizeString }); result[0] = MessageDialog.openQuestion(getConfiguration().getSite().getShell(), NLS.bind(TeamUIMessages.MergeAllActionHandler_3, new String[] { sizeString }), message); } });
public void run() { if (!dirtyModels.isEmpty()) { keepGoing[0] = promptToSave(dirtyModels); } else { keepGoing[0] = MessageDialog.openQuestion( view.getSite().getShell(), TeamUIMessages.RemoveSynchronizeParticipantAction_0, TeamUIMessages.RemoveSynchronizeParticipantAction_1); } } });
public final void run() { if (!display.isDisposed()) { final Shell shell= display.getActiveShell(); if (shell != null && !shell.isDisposed()) result[0]= MessageDialog.openQuestion(shell, title, message); } } });
private boolean confirmOverwrite(File file) { return MessageDialog.openQuestion(getShell(), TemplatesMessages.TemplatePreferencePage_export_exists_title, NLSUtility.format(TemplatesMessages.TemplatePreferencePage_export_exists_message, file.getAbsolutePath())); }
@Override protected boolean confirmDelete() { if (!fPage.doExportToDirectory()) { File zipFile = new File(fPage.getDestination(), fPage.getFileName()); if (zipFile.exists()) { if (!MessageDialog.openQuestion(getContainer().getShell(), PDEUIMessages.BaseExportWizard_confirmReplace_title, NLS.bind(PDEUIMessages.BaseExportWizard_confirmReplace_desc, zipFile.getAbsolutePath()))) return false; zipFile.delete(); } } return true; }
private boolean confirmOverwrite(File file) { return MessageDialog.openQuestion(getShell(), LogViewerPlugin.getResourceString("preferences.ruleseditor.export.error.title"), //$NON-NLS-1$ LogViewerPlugin.getResourceString("preferences.ruleseditor.export.error.exists.text",new String[]{file.getAbsolutePath()})); //$NON-NLS-1$ }
@Override public void run() { boolean proceed = MessageDialog.openQuestion(view.getViewSite().getShell(), AntViewActionMessages.RemoveAllAction_0, AntViewActionMessages.RemoveAllAction_1); if (proceed) { view.removeAllProjects(); } }
private boolean confirmOverwrite(File file) { return MessageDialog.openQuestion(getShell(), PreferencesMessages.CodeTemplateBlock_export_exists_title, Messages.format(PreferencesMessages.CodeTemplateBlock_export_exists_message, BasicElementLabels.getPathLabel(file))); }
public IStatus runInUIThread(IProgressMonitor monitor) { boolean doit = MessageDialog.openQuestion(getShell(), WizardMessages.ApiToolingSetupWizardPage_1, WizardMessages.ApiToolingSetupWizardPage_2 + WizardMessages.ApiToolingSetupWizardPage_3); if(doit) { SWTFactory.showPreferencePage(getShell(), IApiToolsConstants.ID_BASELINES_PREF_PAGE, null); } return Status.OK_STATUS; } };
private boolean askSelectAll() { return MessageDialog.openQuestion(getShell(), LogViewerPlugin.getResourceString("preferences.ruleseditor.export.dialog.selectall.title"), LogViewerPlugin.getResourceString("preferences.ruleseditor.export.dialog.selectall.text")); }
private void copyToClipboard(Clipboard clipboard, String str, Shell shell) { try { clipboard.setContents(new String[] { str }, new Transfer[] { TextTransfer.getInstance() }); } catch (SWTError ex) { if (ex.code != DND.ERROR_CANNOT_SET_CLIPBOARD) throw ex; String title= SearchMessages.CopyToClipboardAction_error_title; String message= SearchMessages.CopyToClipboardAction_error_message; if (MessageDialog.openQuestion(shell, title, message)) copyToClipboard(clipboard, str, shell); } } }
public void checkModel() { IWizardNode node = getSelectedNode(); if (node == null) return; IWizard wizard = node.getWizard(); if (wizard instanceof NewExtensionTemplateWizard) { if (((NewExtensionTemplateWizard) wizard).updatedDependencies()) { if (MessageDialog.openQuestion(getShell(), PDEUIMessages.PointSelectionPage_newDepFound, PDEUIMessages.PointSelectionPage_newDepMessage)) { fWizard.getEditor().doSave(new NullProgressMonitor()); } } } }
public IStatus runInUIThread(IProgressMonitor monitor) { boolean reply = MessageDialog.openQuestion(StorageUtils.getShell(), SecUIMessages.pswdRecoveryOptionTitle, SecUIMessages.pswdRecoveryOptionMsg); if (!reply) return Status.OK_STATUS; ChallengeResponseDialog dialog = new ChallengeResponseDialog(size, StorageUtils.getShell()); dialog.open(); String[][] result = dialog.getResult(); if (result != null) InternalExchangeUtils.setupRecovery(result, moduleID, container); return Status.OK_STATUS; } };
@Override public void run() { IWorkbenchWindow window = DebugUIPlugin.getActiveWorkbenchWindow(); if (window == null) { return; } boolean proceed = MessageDialog.openQuestion(window.getShell(), DebugUIMessages.MemoryBlocksTreeViewPane_0, DebugUIMessages.MemoryBlocksTreeViewPane_1); // if (proceed) { IMemoryBlock[] memoryBlocks = DebugPlugin.getDefault().getMemoryBlockManager().getMemoryBlocks(fRetrieval); DebugPlugin.getDefault().getMemoryBlockManager().removeMemoryBlocks(memoryBlocks); } } }