KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > views > navigator > GotoResourceDialog


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.views.navigator;
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.views.navigator.ResourceNavigatorMessages;
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  */

24 /* package */class GotoResourceDialog extends FilteredResourcesSelectionDialog {
25
26     /**
27      * Creates a new instance of the class.
28      */

29     protected GotoResourceDialog(Shell parentShell, IContainer container,
30             int typesMask) {
31         super(parentShell, false, container, typesMask);
32         setTitle(ResourceNavigatorMessages.Goto_title);
33         PlatformUI.getWorkbench().getHelpSystem().setHelp(parentShell,
34                 INavigatorHelpContextIds.GOTO_RESOURCE_DIALOG);
35     }
36 }
37
Popular Tags