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.opensixen.omvc.console.dialog.UserEditorDialog.java
License:GNU General Public License
@Override public void create() { super.create(); setTitle("Usuario"); setMessage("Gestiona los proyectos usuarios.", IMessageProvider.INFORMATION); }
From source file:org.org.eclipse.core.utils.platform.tools.DialogHelper.java
License:Open Source License
/** * Applies the status to the status line of a dialog page. *///from w w w.jav a 2 s. c o m public static void applyToStatusLine(DialogPage page, IStatus status) { String message = status.getMessage(); if (message != null) { switch (status.getSeverity()) { case IStatus.OK: page.setMessage(message, IMessageProvider.NONE); page.setErrorMessage(null); break; case IStatus.WARNING: page.setMessage(message, IMessageProvider.WARNING); page.setErrorMessage(null); break; case IStatus.INFO: page.setMessage(message, IMessageProvider.INFORMATION); page.setErrorMessage(null); break; default: if (message.length() == 0) { message = null; } page.setMessage(message, IMessageProvider.ERROR); page.setErrorMessage(null); break; } } }
From source file:org.osate.aadl2.errormodel.emfta.handlers.FTADialog.java
License:Open Source License
@Override public void create() { super.create(); setTitle("Fault-Tree Analysis"); setMessage("Select the Failure Mode to Analyze (error state, propagation)" + (target.isEmpty() ? "" : " for " + target), IMessageProvider.INFORMATION); }
From source file:org.osate.importer.simulink.actions.SimulinkSystemDialog.java
License:Open Source License
@Override public void create() { super.create(); setTitle("Main System Selection"); setMessage("Please select the System or Node that is the root AADL system", IMessageProvider.INFORMATION); }
From source file:org.pwsafe.passwordsafeswt.dialog.LicenseDialog.java
License:Open Source License
/** * Creates the dialog's contents/* w w w . j av a 2 s . com*/ * * @param parent the parent composite * @return Control */ @Override protected Control createContents(Composite parent) { Control contents = super.createContents(parent); // Set the title setTitle(Messages.getString("LicenseDialog.Title")); //$NON-NLS-1$ // Set the message setMessage(Messages.getString("LicenseDialog.Message"), IMessageProvider.INFORMATION); //$NON-NLS-1$ return contents; }
From source file:org.reuseware.sokan.ui.internal.dialogs.NewStoreDialog.java
License:Open Source License
protected Control createContents(Composite parent) { Control contents = super.createContents(parent); // Set dialog head title parent.getShell().setText("Mark '" + container.getName() + "' as store"); // Set the title setTitle("Choose which filters should be applied to files in the folder."); // Set the message setMessage("Please select one below.", IMessageProvider.INFORMATION); return contents; }
From source file:org.reuseware.sokan.ui.internal.dialogs.NewStoreDialog.java
License:Open Source License
@Override protected Control createDialogArea(Composite parent) { GridLayout layout = new GridLayout(1, false); parent.setLayout(layout);/*from w ww . j a va 2 s. c om*/ Label lblSepTop = new Label(parent, SWT.SEPARATOR | SWT.HORIZONTAL); GridData ldSep = new GridData(SWT.FILL, SWT.FILL, true, false); ldSep.verticalIndent = -5; ldSep.horizontalSpan = 2; lblSepTop.setLayoutData(ldSep); btnAll = new Button(parent, SWT.RADIO); btnAll.setLayoutData(new GridData(SWT.BEGINNING, SWT.TOP, false, false)); btnAll.setText("All files (i.e. '*.*')"); btnAll.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { super.widgetSelected(e); if (btnAll.getSelection()) { String cont = "container"; if (container instanceof IFolder) { cont = "folder"; } else if (container instanceof IProject) { cont = "project"; } setMessage("All files in this " + cont + " and its subfolders are seen as artifacts.", IMessageProvider.INFORMATION); } } }); // Text txtSpace = new Text(parent, SWT.BORDER); // txtSpace.setVisible(false); btnEnding = new Button(parent, SWT.RADIO); btnEnding.setLayoutData(new GridData(SWT.BEGINNING, SWT.TOP, false, false)); btnEnding.setText("Files by ending (e.g. '*.txt')"); btnEnding.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { super.widgetSelected(e); grEnding.setEnabled(btnEnding.getSelection()); for (Button endButton : endBtns) { endButton.setEnabled(btnEnding.getSelection()); } if (btnEnding.getSelection()) { if (endBtns.length < 1) { setMessage("There are no files in the store yet.", IMessageProvider.WARNING); } else { setMessage("Select a number of file extension to specify artifacts.", IMessageProvider.INFORMATION); } } } }); grEnding = new Group(parent, SWT.NONE); grEnding.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); grEnding.setLayout(new GridLayout(6, false)); grEnding.setEnabled(false); String[] endings = StoreUtil.INSTANCE.grabFileEndings(container); endBtns = new Button[endings.length]; for (int i = 0; i < endings.length; i++) { Button btnEnding = new Button(grEnding, SWT.CHECK); btnEnding.setLayoutData(new GridData(SWT.BEGINNING, SWT.CENTER, false, false)); btnEnding.setText("*." + endings[i]); btnEnding.setEnabled(false); endBtns[i] = btnEnding; } btnCustom = new Button(parent, SWT.RADIO); btnCustom.setLayoutData(new GridData(SWT.BEGINNING, SWT.TOP, false, false)); btnCustom.setText("Files by custom pattern (e.g. '*test?.java')"); btnCustom.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { super.widgetSelected(e); txtCustom.setEnabled(btnCustom.getSelection()); if (btnCustom.getSelection()) { setMessage("Specify your own filter pattern. Use wildcards:\n " + "'?' = any character, '*' = any string.", IMessageProvider.INFORMATION); } } }); btnCustom.setEnabled(false); txtCustom = new Text(parent, SWT.SINGLE | SWT.LEAD | SWT.BORDER); txtCustom.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); txtCustom.setEnabled(false); Label lblSepBottom = new Label(parent, SWT.SEPARATOR | SWT.HORIZONTAL); GridData ldSep2 = new GridData(SWT.FILL, SWT.FILL, false, false); ldSep2.horizontalSpan = 2; ldSep2.verticalIndent = 10; lblSepBottom.setLayoutData(ldSep2); return parent; }
From source file:org.review_board.ereviewboard.subclipse.internal.wizards.DetectLocalChangesPage.java
License:Open Source License
public DetectLocalChangesPage(IProject project, CreateReviewRequestWizardContext context, ReviewRequest reviewRequest) {/*w w w. j a v a 2 s . c o m*/ super("Detect local changes", "Detect local changes", null); setMessage( "Select the changes to submit for review. The ReviewBoard instance and the SVN repository have been auto-detected.", IMessageProvider.INFORMATION); _project = project; _context = context; _reviewRequest = reviewRequest; }
From source file:org.review_board.ereviewboard.subclipse.internal.wizards.PublishReviewRequestPage.java
License:Open Source License
public PublishReviewRequestPage(CreateReviewRequestWizardContext context) { super("Publish review request", "Publish review request", null); setMessage(/*from w ww .j av a 2s .c o m*/ "Fill in the review request details. Description, summary and a target person or a target group are required.", IMessageProvider.INFORMATION); _context = context; }
From source file:org.robotframework.ide.eclipse.main.plugin.tableeditor.HeaderFilterSupport.java
License:Apache License
private void showProperTooltip(final HeaderFilterMatchesCollection matches) { final DefaultToolTip filterTip = new DefaultToolTip(filter, ToolTip.RECREATE, true); if (matches != null) { final int allMatches = matches.getNumberOfAllMatches(); final int rowsMatching = matches.getNumberOfMatchingElement(); final String elementForm = rowsMatching == 1 ? "element" : "elements"; filterTip// ww w .ja v a 2s. c o m .setText("Filtering on: found " + allMatches + " match in " + rowsMatching + " " + elementForm); final Color filterSuccessFg = ColorsManager.getColor(0, 200, 0); final Color filterFailureFg = ColorsManager.getColor(255, 0, 0); filter.setForeground(allMatches == 0 ? filterFailureFg : filterSuccessFg); if (form.getMessage() == null) { form.setMessage("Filtering is enabled", IMessageProvider.INFORMATION); } } else { if (form.getMessage() != null && form.getMessage().startsWith("Filtering")) { form.setMessage(null); } filterTip.setText("Filtering off"); } filterTip.setHideDelay(3000); filterTip.setImage(ImagesManager.getImage(RedImages.getFilterImage())); filterTip.show(new Point(0, filter.getSize().y)); }