Search in sources :

Example 96 with Dialog

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);
}
Also used : IWorkbench(org.eclipse.ui.IWorkbench) Shell(org.eclipse.swt.widgets.Shell) EModelService(org.eclipse.e4.ui.workbench.modeling.EModelService) EPartService(org.eclipse.e4.ui.workbench.modeling.EPartService) SelectPerspectiveDialog(org.eclipse.ui.internal.dialogs.SelectPerspectiveDialog) ProjectLocationSelectionDialog(org.eclipse.ui.dialogs.ProjectLocationSelectionDialog) TypeFilteringDialog(org.eclipse.ui.dialogs.TypeFilteringDialog) ContainerSelectionDialog(org.eclipse.ui.dialogs.ContainerSelectionDialog) FileExtensionDialog(org.eclipse.ui.internal.dialogs.FileExtensionDialog) EditorSelectionDialog(org.eclipse.ui.dialogs.EditorSelectionDialog) AboutDialog(org.eclipse.ui.internal.dialogs.AboutDialog) ProgressMonitorDialog(org.eclipse.jface.dialogs.ProgressMonitorDialog) SaveAsDialog(org.eclipse.ui.dialogs.SaveAsDialog) SavePerspectiveDialog(org.eclipse.ui.internal.dialogs.SavePerspectiveDialog) Dialog(org.eclipse.jface.dialogs.Dialog) ListSelectionDialog(org.eclipse.ui.dialogs.ListSelectionDialog) ShowViewDialog(org.eclipse.ui.internal.dialogs.ShowViewDialog) IEclipseContext(org.eclipse.e4.core.contexts.IEclipseContext) ShowViewDialog(org.eclipse.ui.internal.dialogs.ShowViewDialog) MWindow(org.eclipse.e4.ui.model.application.ui.basic.MWindow) MApplication(org.eclipse.e4.ui.model.application.MApplication) Test(org.junit.Test)

Example 97 with 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);
}
Also used : SaveAsDialog(org.eclipse.ui.dialogs.SaveAsDialog) SelectPerspectiveDialog(org.eclipse.ui.internal.dialogs.SelectPerspectiveDialog) ProjectLocationSelectionDialog(org.eclipse.ui.dialogs.ProjectLocationSelectionDialog) TypeFilteringDialog(org.eclipse.ui.dialogs.TypeFilteringDialog) ContainerSelectionDialog(org.eclipse.ui.dialogs.ContainerSelectionDialog) FileExtensionDialog(org.eclipse.ui.internal.dialogs.FileExtensionDialog) EditorSelectionDialog(org.eclipse.ui.dialogs.EditorSelectionDialog) AboutDialog(org.eclipse.ui.internal.dialogs.AboutDialog) ProgressMonitorDialog(org.eclipse.jface.dialogs.ProgressMonitorDialog) SaveAsDialog(org.eclipse.ui.dialogs.SaveAsDialog) SavePerspectiveDialog(org.eclipse.ui.internal.dialogs.SavePerspectiveDialog) Dialog(org.eclipse.jface.dialogs.Dialog) ListSelectionDialog(org.eclipse.ui.dialogs.ListSelectionDialog) ShowViewDialog(org.eclipse.ui.internal.dialogs.ShowViewDialog) Test(org.junit.Test)

Example 98 with 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);
}
Also used : AboutDialog(org.eclipse.ui.internal.dialogs.AboutDialog) SelectPerspectiveDialog(org.eclipse.ui.internal.dialogs.SelectPerspectiveDialog) ProjectLocationSelectionDialog(org.eclipse.ui.dialogs.ProjectLocationSelectionDialog) TypeFilteringDialog(org.eclipse.ui.dialogs.TypeFilteringDialog) ContainerSelectionDialog(org.eclipse.ui.dialogs.ContainerSelectionDialog) FileExtensionDialog(org.eclipse.ui.internal.dialogs.FileExtensionDialog) EditorSelectionDialog(org.eclipse.ui.dialogs.EditorSelectionDialog) AboutDialog(org.eclipse.ui.internal.dialogs.AboutDialog) ProgressMonitorDialog(org.eclipse.jface.dialogs.ProgressMonitorDialog) SaveAsDialog(org.eclipse.ui.dialogs.SaveAsDialog) SavePerspectiveDialog(org.eclipse.ui.internal.dialogs.SavePerspectiveDialog) Dialog(org.eclipse.jface.dialogs.Dialog) ListSelectionDialog(org.eclipse.ui.dialogs.ListSelectionDialog) ShowViewDialog(org.eclipse.ui.internal.dialogs.ShowViewDialog) Test(org.junit.Test)

Example 99 with 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);
}
Also used : SelectPerspectiveDialog(org.eclipse.ui.internal.dialogs.SelectPerspectiveDialog) ProjectLocationSelectionDialog(org.eclipse.ui.dialogs.ProjectLocationSelectionDialog) TypeFilteringDialog(org.eclipse.ui.dialogs.TypeFilteringDialog) ContainerSelectionDialog(org.eclipse.ui.dialogs.ContainerSelectionDialog) FileExtensionDialog(org.eclipse.ui.internal.dialogs.FileExtensionDialog) EditorSelectionDialog(org.eclipse.ui.dialogs.EditorSelectionDialog) AboutDialog(org.eclipse.ui.internal.dialogs.AboutDialog) ProgressMonitorDialog(org.eclipse.jface.dialogs.ProgressMonitorDialog) SaveAsDialog(org.eclipse.ui.dialogs.SaveAsDialog) SavePerspectiveDialog(org.eclipse.ui.internal.dialogs.SavePerspectiveDialog) Dialog(org.eclipse.jface.dialogs.Dialog) ListSelectionDialog(org.eclipse.ui.dialogs.ListSelectionDialog) ShowViewDialog(org.eclipse.ui.internal.dialogs.ShowViewDialog) FileExtensionDialog(org.eclipse.ui.internal.dialogs.FileExtensionDialog) Test(org.junit.Test)

Example 100 with 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);
}
Also used : AboutPluginsDialog(org.eclipse.ui.internal.dialogs.AboutPluginsDialog) SelectPerspectiveDialog(org.eclipse.ui.internal.dialogs.SelectPerspectiveDialog) ProjectLocationSelectionDialog(org.eclipse.ui.dialogs.ProjectLocationSelectionDialog) TypeFilteringDialog(org.eclipse.ui.dialogs.TypeFilteringDialog) ContainerSelectionDialog(org.eclipse.ui.dialogs.ContainerSelectionDialog) FileExtensionDialog(org.eclipse.ui.internal.dialogs.FileExtensionDialog) EditorSelectionDialog(org.eclipse.ui.dialogs.EditorSelectionDialog) AboutDialog(org.eclipse.ui.internal.dialogs.AboutDialog) ProgressMonitorDialog(org.eclipse.jface.dialogs.ProgressMonitorDialog) SaveAsDialog(org.eclipse.ui.dialogs.SaveAsDialog) AboutPluginsDialog(org.eclipse.ui.internal.dialogs.AboutPluginsDialog) SavePerspectiveDialog(org.eclipse.ui.internal.dialogs.SavePerspectiveDialog) Dialog(org.eclipse.jface.dialogs.Dialog) ListSelectionDialog(org.eclipse.ui.dialogs.ListSelectionDialog) ShowViewDialog(org.eclipse.ui.internal.dialogs.ShowViewDialog) Bundle(org.osgi.framework.Bundle) Test(org.junit.Test)

Aggregations

Dialog (org.eclipse.jface.dialogs.Dialog)233 Test (org.junit.Test)125 MessageDialog (org.eclipse.jface.dialogs.MessageDialog)82 Composite (org.eclipse.swt.widgets.Composite)38 Shell (org.eclipse.swt.widgets.Shell)35 PreferenceDialog (org.eclipse.jface.preference.PreferenceDialog)32 Control (org.eclipse.swt.widgets.Control)32 ProgressMonitorDialog (org.eclipse.jface.dialogs.ProgressMonitorDialog)28 SWT (org.eclipse.swt.SWT)28 GridData (org.eclipse.swt.layout.GridData)27 Button (org.eclipse.swt.widgets.Button)25 WizardDialog (org.eclipse.jface.wizard.WizardDialog)24 SaveAsDialog (org.eclipse.ui.dialogs.SaveAsDialog)24 ContainerSelectionDialog (org.eclipse.ui.dialogs.ContainerSelectionDialog)23 EditorSelectionDialog (org.eclipse.ui.dialogs.EditorSelectionDialog)23 ListSelectionDialog (org.eclipse.ui.dialogs.ListSelectionDialog)23 ProjectLocationSelectionDialog (org.eclipse.ui.dialogs.ProjectLocationSelectionDialog)23 TypeFilteringDialog (org.eclipse.ui.dialogs.TypeFilteringDialog)23 AboutDialog (org.eclipse.ui.internal.dialogs.AboutDialog)23 FileExtensionDialog (org.eclipse.ui.internal.dialogs.FileExtensionDialog)23