01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.internal.ide.dialogs;
11:
12: import org.eclipse.core.resources.IContainer;
13: import org.eclipse.swt.widgets.Shell;
14: import org.eclipse.ui.PlatformUI;
15: import org.eclipse.ui.dialogs.FilteredResourcesSelectionDialog;
16: import org.eclipse.ui.internal.ide.IDEWorkbenchMessages;
17: import org.eclipse.ui.internal.ide.IIDEHelpContextIds;
18:
19: /**
20: * Shows a list of resources to the user with a text entry field for a string
21: * pattern used to filter the list of resources.
22: *
23: * @since 2.1
24: */
25: public class OpenResourceDialog extends
26: FilteredResourcesSelectionDialog {
27:
28: /**
29: * Creates a new instance of the class.
30: *
31: * @param parentShell
32: * the parent shell
33: * @param container
34: * the container
35: * @param typesMask
36: * the types mask
37: */
38: public OpenResourceDialog(Shell parentShell, IContainer container,
39: int typesMask) {
40: super (parentShell, true, container, typesMask);
41: setTitle(IDEWorkbenchMessages.OpenResourceDialog_title);
42: PlatformUI.getWorkbench().getHelpSystem().setHelp(parentShell,
43: IIDEHelpContextIds.OPEN_RESOURCE_DIALOG);
44: }
45: }
|