Example usage for org.eclipse.jface.dialogs MessageDialog NONE

List of usage examples for org.eclipse.jface.dialogs MessageDialog NONE

Introduction

In this page you can find the example usage for org.eclipse.jface.dialogs MessageDialog NONE.

Prototype

int NONE

To view the source code for org.eclipse.jface.dialogs MessageDialog NONE.

Click Source Link

Document

Constant for no image (value 0).

Usage

From source file:org.eclipse.osee.framework.ui.skynet.widgets.dialog.FilteredTreeDialog.java

License:Open Source License

public FilteredTreeDialog(String dialogTitle, String dialogMessage, IContentProvider contentProvider,
        IBaseLabelProvider labelProvider, ViewerSorter viewerSorter) {
    super(Displays.getActiveShell(), dialogTitle, null, dialogMessage, MessageDialog.NONE,
            new String[] { "OK", "Cancel" }, 0);
    this.contentProvider = contentProvider;
    this.labelProvider = labelProvider;
    this.viewerSorter = viewerSorter;
    this.patternFilter = new PatternFilter();
    setShellStyle(getShellStyle() | SWT.RESIZE);
}

From source file:org.eclipse.osee.framework.ui.skynet.widgets.dialog.ImageDialog.java

License:Open Source License

public ImageDialog(Image image, Shell parentShell, String[] buttons, int defaultButton) {
    super(parentShell, "", null, "", MessageDialog.NONE, buttons, defaultButton);
    setShellStyle(getShellStyle() | SWT.RESIZE);
    this.image = image;
}

From source file:org.eclipse.osee.ote.ui.test.manager.util.EnvVariableDetailsDialogHelper.java

License:Open Source License

@Override
public void run() {
    EnvVariableDetailsDialog dlg = new EnvVariableDetailsDialog(null, "Edit " + nameOfVariableToSet, null,
            nameOfVariableToSet + " Value:", MessageDialog.NONE, new String[] { "OK", "Cancel" }, 0, selection);

    result = dlg.open();//from ww  w .  j av  a2 s. c  om

    if (result == Window.OK) {
        if (dlg.isValid()) {
            String info = dlg.getSelection();
            if (info != null) {
                selection = info;
            } else {
                selection = "";
            }
        }
    }
}

From source file:org.eclipse.osee.ote.ui.test.manager.util.EnvVariableDialogHelper.java

License:Open Source License

@Override
public void run() {
    EnvVariableDialog dlg = new EnvVariableDialog(null, "Add Environment Variable", null, "Enter Name:",
            MessageDialog.NONE, new String[] { "OK", "Cancel" }, 0);

    result = dlg.open();//from   ww  w.  j  a v a  2  s.  c  o m

    if (result == Window.OK) {
        if (dlg.isValid()) {
            String info = dlg.getSelection();
            if (info != null) {
                selection = info;
            } else {
                selection = "";
            }
        }
    }
}

From source file:org.eclipse.php.internal.debug.ui.launching.FileSelectionDialog.java

License:Open Source License

/**
 * Creates a resource selection dialog rooted at the given element.
 * /*from  w w  w .  j  a  va  2s. c  om*/
 * @param parentShell
 *            the parent shell
 * @param rootElement
 *            the root element to populate this dialog with
 * @param message
 *            the message to be displayed at the top of this dialog, or
 *            <code>null</code> to display a default message
 */
public FileSelectionDialog(Shell parentShell, IAdaptable rootElement, String message) {
    super(parentShell, Messages.FileSelectionDialog_0, null, message, MessageDialog.NONE,
            new String[] { Messages.FileSelectionDialog_1, Messages.FileSelectionDialog_2 }, 0);
    root = rootElement;
    setShellStyle(getShellStyle() | SWT.RESIZE);
}

From source file:org.eclipse.ptp.internal.rm.jaxb.control.ui.dialogs.ScrollingEditableMessageDialog.java

License:Open Source License

/**
 * @param parentShell//  w  ww. java 2  s .c  o  m
 * @param name
 *            message label for text
 * @param value
 *            initial text value
 * @param readOnly
 *            if the text box if read only
 */
public ScrollingEditableMessageDialog(Shell parentShell, String name, String value, boolean readOnly) {
    this(parentShell, name, value, name, null, MessageDialog.NONE, DEFAULT_LABELS, DEFAULT_INDEX);
    this.readOnly = readOnly;
}

From source file:org.eclipse.rcptt.ui.commons.FileSelectionDialog.java

License:Open Source License

/**
 * Creates a resource selection dialog rooted at the given element.
 * //w w w .  j  ava 2 s  . c om
 * @param parentShell
 *            the parent shell
 * @param rootElement
 *            the root element to populate this dialog with
 * @param message
 *            the message to be displayed at the top of this dialog, or
 *            <code>null</code> to display a default message
 */
public FileSelectionDialog(Shell parentShell, IAdaptable rootElement, String message) {
    super(parentShell, Messages.FileSelectionDialog_Title, null, message, MessageDialog.NONE,
            new String[] { IDialogConstants.OK_LABEL, IDialogConstants.CANCEL_LABEL }, 0);
    root = rootElement;
    setShellStyle(getShellStyle() | SWT.RESIZE);
}

From source file:org.eclipse.rcptt.ui.dialogs.AddProjectReferencesDialog.java

License:Open Source License

private AddProjectReferencesDialog(Shell parentShell, IProject project,
        Map<IProject, Set<IQ7NamedElement>> references) {
    super(parentShell, Messages.AddProjectReferencesDialog_Title, null, null, MessageDialog.NONE,
            new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL }, 0,
            Messages.AddProjectReferencesDialog_ToggleText, false);
    this.project = project;
    this.references = references;
    this.message = generateMessage(references);
    setShellStyle(SWT.SHEET);/*from   w w  w  .  jav  a  2  s.  c  o  m*/
}

From source file:org.eclipse.rcptt.ui.dialogs.RemoveAllProjectReferencesDialog.java

License:Open Source License

private RemoveAllProjectReferencesDialog(Shell parentShell, IQ7Project project,
        List<IQ7NamedElement> references) {
    super(parentShell, "Project Context and Verification References", null, null, MessageDialog.NONE,
            new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL }, 0,
            "Always remove default project context and verification references automatically.", false);
    this.project = project;
    this.references = references;
    this.message = generateMessage(references);
    setShellStyle(SWT.SHEET);/*from  ww w .jav  a  2  s .  c o  m*/
}

From source file:org.eclipse.rcptt.ui.dialogs.RemoveProjectReferencesDialog.java

License:Open Source License

private RemoveProjectReferencesDialog(Shell parentShell, IQ7NamedElement element, List<String> references) {
    super(parentShell, "Project Context and Verification References", null, null, MessageDialog.NONE,
            new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL }, 0,
            "Always remove default project context and verification references automatically.", false);
    this.element = element;
    this.references = references;
    this.message = generateMessage(references);
    setShellStyle(SWT.SHEET);/*ww w  . ja v a2s.co m*/
}