use of org.eclipse.jface.dialogs.Dialog in project eclipse.platform.ui by eclipse-platform.
the class UIDialogs method testShowView.
@Test
public void testShowView() {
IWorkbench workbench = getWorkbench();
Shell shell = workbench.getActiveWorkbenchWindow().getShell();
// Get the view identifier, if any.
IEclipseContext ctx = workbench.getService(IEclipseContext.class);
EModelService modelService = workbench.getService(EModelService.class);
EPartService partService = workbench.getService(EPartService.class);
MApplication app = workbench.getService(MApplication.class);
MWindow window = workbench.getService(MWindow.class);
Dialog dialog = new ShowViewDialog(shell, app, window, modelService, partService, ctx);
DialogCheck.assertDialog(dialog);
}
use of org.eclipse.jface.dialogs.Dialog in project eclipse.platform.ui by eclipse-platform.
the class UIDialogs method testSaveAs.
@Test
public void testSaveAs() {
Dialog dialog = new SaveAsDialog(getShell());
DialogCheck.assertDialog(dialog);
}
use of org.eclipse.jface.dialogs.Dialog in project eclipse.platform.ui by eclipse-platform.
the class UIDialogs method testAbout.
@Test
public void testAbout() {
Dialog dialog = null;
dialog = new AboutDialog(getShell());
DialogCheck.assertDialog(dialog);
}
use of org.eclipse.jface.dialogs.Dialog in project eclipse.platform.ui by eclipse-platform.
the class UIDialogs method testNewFileType.
@Test
public void testNewFileType() {
Dialog dialog = new FileExtensionDialog(getShell());
DialogCheck.assertDialog(dialog);
}
use of org.eclipse.jface.dialogs.Dialog in project eclipse.platform.ui by eclipse-platform.
the class UIDialogsAuto method testAboutPlugins.
@Test
public void testAboutPlugins() {
Dialog dialog = null;
dialog = new AboutPluginsDialog(getShell(), "", new Bundle[] { WorkbenchPlugin.getDefault().getBundle() }, WorkbenchMessages.AboutFeaturesDialog_pluginInfoTitle, "Title", IWorkbenchHelpContextIds.ABOUT_FEATURES_PLUGINS_DIALOG);
DialogCheck.assertDialogTexts(dialog);
}
Aggregations