KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > ide > dialogs > OpenResourceDialog


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.ui.internal.ide.dialogs;
12
13 import org.eclipse.core.resources.IContainer;
14 import org.eclipse.swt.widgets.Shell;
15 import org.eclipse.ui.PlatformUI;
16 import org.eclipse.ui.dialogs.FilteredResourcesSelectionDialog;
17 import org.eclipse.ui.internal.ide.IDEWorkbenchMessages;
18 import org.eclipse.ui.internal.ide.IIDEHelpContextIds;
19
20 /**
21  * Shows a list of resources to the user with a text entry field for a string
22  * pattern used to filter the list of resources.
23  *
24  * @since 2.1
25  */

26 public class OpenResourceDialog extends 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 }
46
Popular Tags