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.views.navigator;
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.views.navigator.ResourceNavigatorMessages;
17:
18: /**
19: * Shows a list of resources to the user with a text entry field for a string
20: * pattern used to filter the list of resources.
21: *
22: */
23: /* package */class GotoResourceDialog extends
24: FilteredResourcesSelectionDialog {
25:
26: /**
27: * Creates a new instance of the class.
28: */
29: protected GotoResourceDialog(Shell parentShell,
30: IContainer container, 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: }
|