public void run() { MessageDialog.openWarning(shell, UIText.CherryPickHandler_NoCherryPickPerformedTitle, UIText.CherryPickHandler_NoCherryPickPerformedMessage); } });
public void run() { MessageDialog .openWarning( shell, UIText.CompareWithPreviousActionHandler_TitleRevisionNotFound, message); } });
public void run() { MessageDialog.openWarning(shell, UIText.RevertHandler_NoRevertTitle, UIText.RevertHandler_AlreadyRevertedMessage); } });
public void run() { MessageDialog.openWarning(shell, UIText.CherryPickHandler_CherryPickConflictsTitle, UIText.CherryPickHandler_CherryPickConflictsMessage); } });
public void run() { MessageDialog.openWarning(getShell(), warningTitle, warningMsg); } });
default void openWarning(Shell shell, String title, String message) { MessageDialog.openWarning(shell, title, message); } }
public void run() { String message= status.getMessageMatchingSeverity(RefactoringStatus.FATAL); MessageDialog.openWarning(fParent, fTitle, getFullMessage(message)); } };
private void showNoSchemaMessage() { String title = PDEUIMessages.ShowDescriptionAction_title; String message; if (fPointID == null || fPointID.startsWith("null")) //$NON-NLS-1$ message = PDEUIMessages.ShowDescriptionAction_schemaNotAvail; else message = NLS.bind(PDEUIMessages.ShowDescriptionAction_noPoint_desc, fPointID); MessageDialog.openWarning(PDEPlugin.getActiveWorkbenchShell(), title, message); }
private void displayErrorDialog() { String title = PDEUIMessages.OpenSchemaAction_titleExtensionPointSchema; String message = NLS.bind(PDEUIMessages.OpenSchemaAction_errorMsgSchemaNotFound, fFullPointID); MessageDialog.openWarning(PDEPlugin.getActiveWorkbenchShell(), title, message); }
private static void showCycleWarning(String projectName, Shell shell, List<String> cycle, StringBuffer message) { String m = MessageFormat.format(DataTransferMessages.SourceAnalyzer_0, new Object[] { projectName }); message.append(m); message.append(ExportUtil.NEWLINE); // print cycle path for (String s : cycle) { s = EclipseClasspath.getLinkedResourceName(s); message.append(s); message.append(" -> "); //$NON-NLS-1$ } message.append(EclipseClasspath.getLinkedResourceName(cycle.get(0))); MessageDialog.openWarning(shell, DataTransferMessages.SourceAnalyzer_1, message.toString()); }
private void showNoExtensionPointMessage() { String title = PDEUIMessages.ExtensionDetails_noPoint_title; String message = NLS.bind(PDEUIMessages.ShowDescriptionAction_noPoint_desc, input.getPoint()); MessageDialog.openWarning(PDEPlugin.getActiveWorkbenchShell(), title, message); } }
@Override public void widgetSelected(SelectionEvent e) { if (!tableRowList.addTableRow()) { MessageDialog.openWarning(new Shell(), "Duplicate Variable", "The variable 'New_Variable' already exists"); } } });
protected void warnReadOnly() { String title = Messages.editorResourceWarnTitle; String message = Messages.editorResourceWarnMessage; MessageDialog.openWarning(editor.getEditorSite().getShell(), title, message); }
/** * Displays warning dialog with a given message. <br> * also logs the info using Log.logWarning(). msg error message to display * and log. */ public static void displayWarningMessage(Shell parent, String msg) { String title = Messages.MessageDialog_warningTitle; if (parent == null) parent = getActiveShell(); MessageDialog.openWarning(parent, title, msg); Log.warning(msg); }
public static void openImage(String value, String definingPluginId) { IResource resource = getImageResource(value, definingPluginId); try { if (resource != null && resource instanceof IFile) IDE.openEditor(PDEPlugin.getActivePage(), (IFile) resource, true); else MessageDialog.openWarning(PDEPlugin.getActiveWorkbenchShell(), PDEUIMessages.AboutSection_open, PDEUIMessages.AboutSection_warning); // } catch (PartInitException e) { } }
@Override public Object execute(ExecutionEvent event) { if (introDescriptor == null) { MessageDialog.openWarning(HandlerUtil.getActiveShell(event), IntroMessages.Intro_missing_product_title, IntroMessages.Intro_missing_product_message); } else { IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event); workbench.getIntroManager().showIntro(window, false); } return null; }
protected boolean classPathHasChanged() { String[] classpath= getClassPath(getJavaProject()); if (fLaunchedClassPath != null && !classPathsEqual(fLaunchedClassPath, classpath)) { MessageDialog.openWarning(getShell(), SnippetMessages.getString("SnippetEditor.warning"), SnippetMessages.getString("SnippetEditor.warning.cpchange")); //$NON-NLS-2$ //$NON-NLS-1$ return true; } return false; }
public void showWarningMessage(String message) { IWorkbenchWindow window = getDefault().getWorkbench().getActiveWorkbenchWindow(); if(window != null) { MessageDialog.openWarning(window.getShell().getShell(),getResourceString("error.warning.title"),message); //$NON-NLS-1$ } }
private void validateURL(URL location) throws MalformedURLException, URISyntaxException { URI path= URIUtil.toURI(location); URI index = URIUtil.append(path, "index.html"); //$NON-NLS-1$ URI packagelist = URIUtil.append(path, "package-list"); //$NON-NLS-1$ URL indexURL = URIUtil.toURL(index); URL packagelistURL = URIUtil.toURL(packagelist); boolean suc= checkURLConnection(indexURL) && checkURLConnection(packagelistURL); if (suc) { showConfirmValidationDialog(indexURL); } else { MessageDialog.openWarning(fShell, fTitle, fInvalidMessage); } }
private void validateURL(URL location) throws MalformedURLException, URISyntaxException { URI path= URIUtil.toURI(location); URI index = URIUtil.append(path, "index.html"); //$NON-NLS-1$ URI packagelist = URIUtil.append(path, "package-list"); //$NON-NLS-1$ URL indexURL = URIUtil.toURL(index); URL packagelistURL = URIUtil.toURL(packagelist); boolean suc= checkURLConnection(indexURL) && checkURLConnection(packagelistURL); if (suc) { showConfirmValidationDialog(indexURL); } else { MessageDialog.openWarning(fShell, fTitle, fInvalidMessage); } }