| /******************************************************************************* |
| * Copyright (c) 2006, 2007 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| |
| package org.eclipse.ui.tests.dialogs; |
| |
| import org.eclipse.core.resources.IContainer; |
| import org.eclipse.core.resources.IResource; |
| import org.eclipse.core.resources.ResourcesPlugin; |
| import org.eclipse.ui.dialogs.FilteredResourcesSelectionDialog; |
| import org.eclipse.ui.tests.harness.util.DialogCheck; |
| |
| public class UIFilteredResourcesSelectionDialog extends |
| UIAbstractFilteredResourcesSelectionDialog { |
| |
| /** |
| * It is possible to verify dialog's appearance on sample data. To test |
| * different table contents, change the pattern. |
| */ |
| public void testVerifyDialog() { |
| final IContainer input = ResourcesPlugin.getWorkspace().getRoot(); |
| final FilteredResourcesSelectionDialog dialog = new FilteredResourcesSelectionDialog( |
| DialogCheck.getShell(), true, input, IResource.FILE); |
| dialog.setInitialPattern("**"); |
| DialogCheck.assertDialog(dialog, this); |
| } |
| |
| } |