use of org.eclipse.jface.dialogs.Dialog in project eclipse.platform.ui by eclipse-platform.
the class UIMessageDialogs method testFileNameWrong.
@Test
public void testFileNameWrong() {
Dialog dialog = getInformationDialog("Invalid", "Invalid file");
DialogCheck.assertDialog(dialog);
}
use of org.eclipse.jface.dialogs.Dialog in project eclipse.platform.ui by eclipse-platform.
the class UIMessageDialogs method testInvalidType_2.
@Test
public void testInvalidType_2() {
Dialog dialog = getWarningDialog("Invalid", "Is this invalid?");
DialogCheck.assertDialog(dialog);
}
use of org.eclipse.jface.dialogs.Dialog in project eclipse.platform.ui by eclipse-platform.
the class UIMessageDialogs method testRefreshDeleteProject.
@Test
public void testRefreshDeleteProject() {
Dialog dialog = new MessageDialog(getShell(), "Refresh", null, NLS.bind("deleted location", (new Object[] { DUMMY_PROJECT, "c:\\dummypath\\" + DUMMY_PROJECT })), MessageDialog.QUESTION, 0, IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL);
DialogCheck.assertDialogTexts(dialog);
DialogCheck.assertDialog(dialog);
}
use of org.eclipse.jface.dialogs.Dialog in project eclipse.platform.ui by eclipse-platform.
the class UIMessageDialogs method testDeleteResources.
@Test
public void testDeleteResources() {
Dialog dialog = getQuestionDialog("Delete", "OK?");
DialogCheck.assertDialog(dialog);
}
use of org.eclipse.jface.dialogs.Dialog in project eclipse.platform.ui by eclipse-platform.
the class UIMessageDialogs method testMoveReadOnlyCheck.
@Test
public void testMoveReadOnlyCheck() {
Dialog dialog = new MessageDialog(getShell(), "Move", null, "OK to move", MessageDialog.QUESTION, 0, IDialogConstants.YES_LABEL, IDialogConstants.YES_TO_ALL_LABEL, IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL);
DialogCheck.assertDialog(dialog);
}
Aggregations