String title= JavaTextMessages.CompletionProposalComputerRegistry_error_dialog_title; String message= status.getMessage(); MessageDialog.openError(JavaPlugin.getActiveWorkbenchShell(), title, message);
String title= JavaTextMessages.CompletionProposalComputerRegistry_error_dialog_title; final String avoidHint= "To avoid this message, disable the '" + descriptor.getCategory().getName() + "' category on the <a>content assist</a> preference page."; String message= status.getMessage();   MessageDialog dialog = new MessageDialog(JavaPlugin.getActiveWorkbenchShell(), title, null , message, MessageDialog.ERROR, new String[] { IDialogConstants.OK_LABEL }, 0) { protected Control createCustomArea(Composite parent) { Link link= new Link(parent, SWT.NONE); link.setText(avoidHint); link.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { PreferencesUtil.createPreferenceDialogOn(getShell(), "org.eclipse.jdt.ui.preferences.CodeAssistPreferencePageInProgress", null, null).open(); } }); return link; } }; dialog.open();
	private void informUser(IStatus status) {		JavaPlugin.log(status);		String title= JavaTextMessages.CompletionProposalComputerRegistry_error_dialog_title;		String message= status.getMessage();		MessageDialog.openError(JavaPlugin.getActiveWorkbenchShell(), title, message);	}