Example usage for org.eclipse.jface.dialogs IDialogConstants NO_LABEL

List of usage examples for org.eclipse.jface.dialogs IDialogConstants NO_LABEL

Introduction

In this page you can find the example usage for org.eclipse.jface.dialogs IDialogConstants NO_LABEL.

Prototype

String NO_LABEL

To view the source code for org.eclipse.jface.dialogs IDialogConstants NO_LABEL.

Click Source Link

Document

The label for no buttons.

Usage

From source file:org.eclipse.ui.tests.dialogs.UIMessageDialogs.java

License:Open Source License

public void testRefreshDeleteProject() {
    Dialog dialog = new MessageDialog(getShell(), "Refresh", null,
            NLS.bind("deleted location", (new Object[] { DUMMY_PROJECT, "c:\\dummypath\\" + DUMMY_PROJECT })),
            MessageDialog.QUESTION, new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL }, 0);
    DialogCheck.assertDialogTexts(dialog, this);
    DialogCheck.assertDialog(dialog, this);
}

From source file:org.eclipse.ui.tests.dialogs.UIMessageDialogs.java

License:Open Source License

public void testSaveAsOverwrite() {
    Dialog dialog = new MessageDialog(getShell(), "OK?", null, "Overwrite?", MessageDialog.QUESTION,
            new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL,
                    IDialogConstants.CANCEL_LABEL },
            0);//from w  ww.ja  va  2  s . co  m
    DialogCheck.assertDialog(dialog, this);
}

From source file:org.eclipse.ui.tests.dialogs.UIMessageDialogs.java

License:Open Source License

public void testSaveChanges() {
    Dialog dialog = new MessageDialog(getShell(), WorkbenchMessages.Save_Resource, null,
            NLS.bind(WorkbenchMessages.EditorManager_saveChangesQuestion, (new Object[] { DUMMY_RESOURCE })),
            MessageDialog.QUESTION, new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL,
                    IDialogConstants.CANCEL_LABEL },
            0);/*w  ww  . ja va2  s.  c o m*/
    DialogCheck.assertDialog(dialog, this);
}

From source file:org.eclipse.ui.tests.dialogs.UIMessageDialogs.java

License:Open Source License

public void testWizardOverwrite() {
    Dialog dialog = new MessageDialog(getShell(), "OK?", null, "Exists", MessageDialog.QUESTION,
            new String[] { IDialogConstants.YES_LABEL, IDialogConstants.YES_TO_ALL_LABEL,
                    IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL },
            0);/*from   w  w  w  .j  av  a2 s.  co  m*/
    DialogCheck.assertDialog(dialog, this);
}

From source file:org.eclipse.ui.tests.dialogs.UIMessageDialogsAuto.java

License:Open Source License

public void testDeleteProject() {
    String title = "Project";
    String msg = "";
    Dialog dialog = new MessageDialog(getShell(), title, null, // accept the default window icon
            msg, MessageDialog.QUESTION, new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL,
                    IDialogConstants.CANCEL_LABEL },
            0);/*  ww w  .  j  av a2 s .c  o m*/
    DialogCheck.assertDialogTexts(dialog, this);
}

From source file:org.eclipse.ui.tests.dialogs.UIMessageDialogsAuto.java

License:Open Source License

public void testDeleteReadOnlyCheck() {
    Dialog dialog = new MessageDialog(getShell(), "Delete", null, "Exists", MessageDialog.QUESTION,
            new String[] { IDialogConstants.YES_LABEL, IDialogConstants.YES_TO_ALL_LABEL,
                    IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL },
            0);//from   w  ww  .j ava2 s  .  c  o  m
    DialogCheck.assertDialogTexts(dialog, this);
}

From source file:org.eclipse.ui.tests.dialogs.UIMessageDialogsAuto.java

License:Open Source License

public void testDropOverwrite() {
    Dialog dialog = new MessageDialog(getShell(), ResourceNavigatorMessages.DropAdapter_question, null,
            MessageFormat.format(ResourceNavigatorMessages.DropAdapter_overwriteQuery,
                    new Object[] { DUMMY_RELATIVE_PATH }),
            MessageDialog.QUESTION,/*from  w ww .  j  a  va2 s . co m*/
            new String[] { IDialogConstants.YES_LABEL, IDialogConstants.YES_TO_ALL_LABEL,
                    IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL },
            0);
    DialogCheck.assertDialogTexts(dialog, this);
}

From source file:org.eclipse.ui.tests.dialogs.UIMessageDialogsAuto.java

License:Open Source License

public void testMoveReadOnlyCheck() {
    Dialog dialog = new MessageDialog(getShell(), "Move_title", null, ".MoveResourceAction",
            MessageDialog.QUESTION,/*  w w  w.j a  v a2 s.c o  m*/
            new String[] { IDialogConstants.YES_LABEL, IDialogConstants.YES_TO_ALL_LABEL,
                    IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL },
            0);
    DialogCheck.assertDialogTexts(dialog, this);
}

From source file:org.eclipse.ui.tests.dialogs.UIMessageDialogsAuto.java

License:Open Source License

public void testOverwritePerspective() {
    Dialog dialog = new MessageDialog(getShell(), WorkbenchMessages.SavePerspective_overwriteTitle, null,
            NLS.bind(WorkbenchMessages.SavePerspective_overwriteQuestion,
                    (new Object[] { "Dummy Perspective" })),
            MessageDialog.QUESTION, new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL,
                    IDialogConstants.CANCEL_LABEL },
            0);//from ww w. j  a  va  2  s  .  co  m
    DialogCheck.assertDialogTexts(dialog, this);
}

From source file:org.eclipse.ui.tests.dialogs.UIMessageDialogsAuto.java

License:Open Source License

public void testRefreshDeleteProject() {
    Dialog dialog = new MessageDialog(getShell(), "RefreshAction_dialogTitle", null,
            "c:\\dummypath\\" + DUMMY_PROJECT, MessageDialog.QUESTION,
            new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL }, 0);
    DialogCheck.assertDialogTexts(dialog, this);
}