@Override public void setMessage(String newMessage) { fMessage = newMessage; if (fConfigured) super.setMessage(fMessage, IMessageProvider.INFORMATION); }
/** * Set the message text. If the message line currently displays an error, * the message is saved and will be redisplayed when the error message is * set to <code>null</code>. * <p> * Shortcut for <code>setMessage(newMessage, IMessageProvider.NONE)</code> * </p> * This method should be called after the dialog has been opened as it * updates the message label immediately. * * @param newMessage * the message, or <code>null</code> to clear the message */ public void setMessage(String newMessage) { setMessage(newMessage, IMessageProvider.NONE); }
/** * Set the message text. If the message line currently displays an error, * the message is saved and will be redisplayed when the error message is * set to <code>null</code>. * <p> * Shortcut for <code>setMessage(newMessage, IMessageProvider.NONE)</code> * </p> * This method should be called after the dialog has been opened as it * updates the message label immediately. * * @param newMessage * the message, or <code>null</code> to clear the message */ public void setMessage(String newMessage) { setMessage(newMessage, IMessageProvider.NONE); }
/** * Set the message text. If the message line currently displays an error, * the message is saved and will be redisplayed when the error message is * set to <code>null</code>. * <p> * Shortcut for <code>setMessage(newMessage, IMessageProvider.NONE)</code> * </p> * This method should be called after the dialog has been opened as it * updates the message label immediately. * * @param newMessage * the message, or <code>null</code> to clear the message */ public void setMessage(String newMessage) { setMessage(newMessage, IMessageProvider.NONE); }
private void handleStatusChanged() { if (dialog.getShell() == null || dialog.getShell().isDisposed()) return; String message = messageProvider.getMessage(currentStatusProvider); int type = messageProvider.getMessageType(currentStatusProvider); if (type == IMessageProvider.ERROR) { dialog.setMessage(null); dialog.setErrorMessage(uiChanged ? message : null); if (currentStatus != null && currentStatusHasException()) { handleStatusException(); } } else { dialog.setErrorMessage(null); dialog.setMessage(message, type); } }
@Override protected Control createDialogArea(Composite parent) { Composite composite = (Composite) super.createDialogArea(parent); super.setTitle(fTitle); super.setMessage(fMessage, IMessageProvider.INFORMATION); composite.setLayoutData(new GridData(GridData.FILL_BOTH)); composite.setLayout(new GridLayout(1, true)); fPluginListViewer = new TableViewer(composite); fPluginListViewer.setLabelProvider(new PDELabelProvider()); fPluginListViewer.setContentProvider(new PluginImportTableContentProvider()); fPluginListViewer.setInput(fPluginList); GridData data = new GridData(GridData.FILL_BOTH); data.widthHint = 100; data.heightHint = 200; fPluginListViewer.getTable().setLayoutData(data); fConfigured = true; return composite; }