Search in sources :

Example 56 with Dialog

use of org.eclipse.jface.dialogs.Dialog in project eclipse.platform.ui by eclipse-platform.

the class UIComparePreferencesAuto method testCompareViewersPref.

@Test
public void testCompareViewersPref() {
    Dialog dialog = getPreferenceDialog("org.eclipse.compare.internal.ComparePreferencePage");
    DialogCheck.assertDialogTexts(dialog);
}
Also used : Dialog(org.eclipse.jface.dialogs.Dialog) PreferenceDialog(org.eclipse.jface.preference.PreferenceDialog) Test(org.junit.Test)

Example 57 with Dialog

use of org.eclipse.jface.dialogs.Dialog in project eclipse.platform.ui by eclipse-platform.

the class FilteredTreeTests method createFilteredTreeDialog.

private Dialog createFilteredTreeDialog(final int treeStyle) {
    fRootElement = TestElement.createModel(DEPTH, NUM_ITEMS);
    Dialog dialog = new FilteredTreeDialog((Shell) null, treeStyle) {

        @Override
        protected FilteredTree doCreateFilteredTree(Composite comp, int style) {
            return createFilteredTree(comp, treeStyle);
        }
    };
    dialog.create();
    return dialog;
}
Also used : Composite(org.eclipse.swt.widgets.Composite) Dialog(org.eclipse.jface.dialogs.Dialog)

Example 58 with Dialog

use of org.eclipse.jface.dialogs.Dialog in project eclipse.platform.ui by eclipse-platform.

the class FilteredTreeTests method runFilteredTreeTest.

private void runFilteredTreeTest(final int treeStyle) {
    Dialog dialog = createFilteredTreeDialog(treeStyle);
    Assert.isNotNull(fTreeViewer, "Filtered tree is null");
    assertNumberOfTopLevelItems(NUM_ITEMS);
    dialog.close();
}
Also used : Dialog(org.eclipse.jface.dialogs.Dialog)

Example 59 with Dialog

use of org.eclipse.jface.dialogs.Dialog in project eclipse.platform.ui by eclipse-platform.

the class PreferencesTestCase method testInternetPreferencePage.

@Test
public void testInternetPreferencePage() {
    Dialog dialog = UITestHelper.getPreferenceDialog("org.eclipse.internet");
    UITestHelper.assertDialog(dialog);
}
Also used : Dialog(org.eclipse.jface.dialogs.Dialog) Test(org.junit.Test)

Example 60 with Dialog

use of org.eclipse.jface.dialogs.Dialog in project eclipse.platform.ui by eclipse-platform.

the class ToolbarBrowserTestCase method test14ProtectedMethods.

@Test
public void test14ProtectedMethods() {
    shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
    dialog = new Dialog(shell) {

        @Override
        protected Control createDialogArea(Composite parent) {
            Composite composite = (Composite) super.createDialogArea(parent);
            ttb = new TestToolbarBrowser(composite, BrowserViewer.LOCATION_BAR | BrowserViewer.BUTTON_BAR);
            GridData data = new GridData(GridData.FILL_BOTH);
            data.widthHint = 400;
            data.heightHint = 400;
            ttb.setLayoutData(data);
            return composite;
        }
    };
    dialog.setBlockOnOpen(false);
    dialog.open();
    ttb.testProtectedMethods();
    dialog.close();
}
Also used : Control(org.eclipse.swt.widgets.Control) Composite(org.eclipse.swt.widgets.Composite) Dialog(org.eclipse.jface.dialogs.Dialog) GridData(org.eclipse.swt.layout.GridData) 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