use of org.eclipse.jface.dialogs.Dialog in project eclipse.platform.ui by eclipse-platform.
the class UIMessageDialogs method testDeleteReadOnlyCheck.
@Test
public void testDeleteReadOnlyCheck() {
Dialog dialog = new MessageDialog(getShell(), "Delete?", null, "This?", MessageDialog.QUESTION, 0, IDialogConstants.YES_LABEL, IDialogConstants.YES_TO_ALL_LABEL, IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL);
DialogCheck.assertDialog(dialog);
}
use of org.eclipse.jface.dialogs.Dialog in project eclipse.platform.ui by eclipse-platform.
the class UIMessageDialogs method testNoPropertyPage.
/*
public void testNoBuilders() {
Dialog dialog = getWarningDialog(
WorkbenchMessages.getString("BuildAction.warning"),
WorkbenchMessages.getString("BuildAction.noBuilders") );
DialogCheck.assertDialog(dialog);
}
*/
/*
public void testNoGlobalBuildersDialog() {
Dialog dialog = getWarningDialog(
WorkbenchMessages.getString("GlobalBuildAction.warning"),
WorkbenchMessages.getString("GlobalBuildAction.noBuilders") );
DialogCheck.assertDialog(dialog);
}
*/
@Test
public void testNoPropertyPage() {
Dialog dialog = getInformationDialog(WorkbenchMessages.PropertyDialog_messageTitle, NLS.bind(WorkbenchMessages.PropertyDialog_noPropertyMessage, (new Object[] { "DummyPropertyPage" })));
DialogCheck.assertDialog(dialog);
}
use of org.eclipse.jface.dialogs.Dialog in project eclipse.platform.ui by eclipse-platform.
the class UIMessageDialogs method testWizardOverwrite.
@Test
public void testWizardOverwrite() {
Dialog dialog = new MessageDialog(getShell(), "OK?", null, "Exists", MessageDialog.QUESTION, 0, IDialogConstants.YES_LABEL, IDialogConstants.YES_TO_ALL_LABEL, IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL);
DialogCheck.assertDialog(dialog);
}
use of org.eclipse.jface.dialogs.Dialog in project eclipse.platform.ui by eclipse-platform.
the class UIMessageDialogs method testDeleteProject.
@Test
public void testDeleteProject() {
String title = "Delete Project";
String msg = NLS.bind("Delete", (new Object[] { DUMMY_PROJECT, DUMMY_ABSOLUTE_PATH }));
Dialog dialog = new // accept the default window icon
MessageDialog(// accept the default window icon
getShell(), // accept the default window icon
title, // accept the default window icon
null, msg, MessageDialog.QUESTION, 0, IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL);
DialogCheck.assertDialog(dialog);
}
use of org.eclipse.jface.dialogs.Dialog in project eclipse.platform.ui by eclipse-platform.
the class UIMessageDialogs method testAbortPageFlipping.
@Test
public void testAbortPageFlipping() {
Dialog dialog = getWarningDialog(JFaceResources.getString("AbortPageFlippingDialog.title"), JFaceResources.getString("AbortPageFlippingDialog.message"));
DialogCheck.assertDialog(dialog);
}
Aggregations