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

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

Introduction

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

Prototype

String YES_LABEL

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

Click Source Link

Document

The label for yes buttons.

Usage

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);/*  w ww  .j a v a  2 s .  c  o 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);/*from   w w w. j  a v  a 2s . 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  ava 2 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);/*from  ww  w.  j av a 2 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);// ww w  .  ja v  a2s .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   ww w  . java2  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 testMoveReadOnlyCheck() {
    Dialog dialog = new MessageDialog(getShell(), "Move_title", null, ".MoveResourceAction",
            MessageDialog.QUESTION,//w w  w. ja  v a 2s  . 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 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 w w  w. j  a v a  2s  .c  om
    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);
}

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

License:Open Source License

public void testSaveAsOverwrite() {
    Dialog dialog = new MessageDialog(getShell(), "WorkbenchMessages.Question", null, DUMMY_RELATIVE_PATH,
            MessageDialog.QUESTION, new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL,
                    IDialogConstants.CANCEL_LABEL },
            0);/* ww w. j  a  va  2 s .  co  m*/
    DialogCheck.assertDialogTexts(dialog, this);
}