List of usage examples for org.eclipse.jface.dialogs IMessageProvider INFORMATION
int INFORMATION
To view the source code for org.eclipse.jface.dialogs IMessageProvider INFORMATION.
Click Source Link
From source file:org.kalypso.module.utils.projectinfo.ProjectInfoComposite.java
License:Open Source License
private IMessageProvider readPreferences(final File projectDir) { m_preferences = null;//from www. ja v a 2s . c o m final URI uri = projectDir.toURI(); final IContainer[] containers = ResourcesPlugin.getWorkspace().getRoot().findContainersForLocationURI(uri); for (final IContainer container : containers) { if (container instanceof IProject) { final ModuleNature nature = ModuleNature.toThisNature((IProject) container); if (nature != null) m_preferences = nature.getPreferences(); else { // User has chosen a project in workspace which is not a module project m_preferences = null; } return new MessageProvider(Messages.getString("ProjectInfoComposite.7"), //$NON-NLS-1$ IMessageProvider.INFORMATION); } } /* Resource is a local file: read preferences from there */ m_preferences = ModuleNature.getPreferences(projectDir); return null; }
From source file:org.kalypso.ui.rrm.internal.newproject.KalypsoNAProjectWizardPage.java
License:Open Source License
private boolean doValidate() { if (m_data.getSkip()) return true; if (m_data.getSrs() == null) { setMessage(Messages.getString("KalypsoNAProjectWizardPage.ErrorMessageNotSupportedCS"), //$NON-NLS-1$ IMessageProvider.ERROR); return false; }/*from w ww .ja va2 s . c o m*/ final File shapeFile = m_data.getShapeFile(); if (shapeFile == null) { setMessage(Messages.getString("KalypsoNAProjectWizardPage.ErrorMessageChooseFile"), //$NON-NLS-1$ IMessageProvider.INFORMATION); return false; } if (!shapeFile.exists()) { setMessage(Messages.getString("KalypsoNAProjectWizardPage.ErrorMessageNotValidFile"), //$NON-NLS-1$ IMessageProvider.ERROR); return true; } if (!shapeFile.getName().toLowerCase().endsWith(".shp")) //$NON-NLS-1$ { setMessage(Messages.getString("KalypsoNAProjectWizardPage.ErrorMessageWrongSuffix"), //$NON-NLS-1$ IMessageProvider.WARNING); return true; } return true; }
From source file:org.key_project.key4eclipse.common.ui.preference.page.TacletOptionsPreferencePage.java
License:Open Source License
/** * {@inheritDoc}//from w ww .ja va 2s. c o m */ @Override public void init(IWorkbench workbench) { super.init(workbench); setMessage("Changes will become effective when the next problem is loaded.", IMessageProvider.INFORMATION); }
From source file:org.knime.ext.textprocessing.preferences.NewSearchEngineDialog.java
License:Open Source License
@Override public void create() { super.create(); setTitle("New Search Engine"); setMessage("Specify name and link to the search engine. Link must contain protocol and query placeholder " + "\"<query>\", e.g. \"http://www.google.de?q=<query>\".", IMessageProvider.INFORMATION); }
From source file:org.mailster.gui.prefs.widgets.DialogMessageArea.java
License:Open Source License
/** * Show the new message in the message text and update the image. Base the * background color on whether or not there are errors. * /*from ww w . j ava 2 s . co m*/ * @param newMessage The new value for the message * @param newType One of the IMessageProvider constants. If newType is * IMessageProvider.NONE show the title. * @see org.eclipse.jface.dialogs.IMessageProvider */ public void updateText(String newMessage, int newType) { Image newImage = null; switch (newType) { case IMessageProvider.NONE: if (newMessage == null) { this.restoreTitle(); } else { this.showTitle(newMessage, null); } return; case IMessageProvider.INFORMATION: newImage = JFaceResources.getImage(Dialog.DLG_IMG_MESSAGE_INFO); break; case IMessageProvider.WARNING: newImage = JFaceResources.getImage(Dialog.DLG_IMG_MESSAGE_WARNING); break; case IMessageProvider.ERROR: newImage = JFaceResources.getImage(Dialog.DLG_IMG_MESSAGE_ERROR); break; } this.messageComposite.setVisible(true); this.titleLabel.setVisible(false); // Any more updates required? // If the message text equals the tooltip (i.e. non-shortened text is // the same) // and shortened text is the same (i.e. not a resize) // and the image is the same then nothing to do String shortText = Dialog.shortenText(newMessage, messageText); if (newMessage.equals(messageText.getToolTipText()) && newImage == messageImageLabel.getImage() && shortText.equals(messageText.getText())) { return; } this.messageImageLabel.setImage(newImage); this.messageText.setText(Dialog.shortenText(newMessage, messageText)); this.messageText.setToolTipText(newMessage); this.lastMessageText = newMessage; }
From source file:org.mwc.cmap.core.wizards.DirectorySelectorWizardPage.java
License:Open Source License
private void updateStatus(final String message) { setErrorMessage(message);/*from w ww . j av a 2s . co m*/ if (message == null) { this.setMessage("Press Finish to complete export", IMessageProvider.INFORMATION); setPageComplete(true); } else setPageComplete(false); }
From source file:org.opensixen.omvc.console.dialog.ConfigDialog.java
License:GNU General Public License
@Override public void create() { super.create(); setTitle("Configuracion"); setMessage("Edite sus opciones de configuracion.", IMessageProvider.INFORMATION); }
From source file:org.opensixen.omvc.console.dialog.ProjectEditorDialog.java
License:GNU General Public License
@Override public void create() { super.create(); setTitle("Proyecto"); setMessage("Gestiona los proyectos activos.", IMessageProvider.INFORMATION); }
From source file:org.opensixen.omvc.console.dialog.RevisionCommitDialog.java
License:GNU General Public License
@Override public void create() { super.create(); // Set the title setTitle("Nueva Revision"); // Set the message setMessage("Envia una nueva revision al sistema.", IMessageProvider.INFORMATION); }
From source file:org.opensixen.omvc.console.dialog.RevisionEditDialog.java
License:GNU General Public License
@Override public void create() { super.create(); setTitle("Revision"); setMessage("Edita la informacion de la revision.", IMessageProvider.INFORMATION); }