1 11 package org.eclipse.debug.internal.ui.viewers; 12 13 import org.eclipse.debug.internal.ui.IDebugHelpContextIds; 14 import org.eclipse.jface.viewers.ILabelProvider; 15 import org.eclipse.swt.widgets.Composite; 16 import org.eclipse.swt.widgets.Control; 17 import org.eclipse.swt.widgets.Shell; 18 import org.eclipse.ui.PlatformUI; 19 import org.eclipse.ui.dialogs.ElementListSelectionDialog; 20 21 28 public class AsynchronousTreeNavigationDialog extends ElementListSelectionDialog { 29 30 36 public AsynchronousTreeNavigationDialog(Shell shell, ILabelProvider provider, Object [] elements) { 37 super(shell, provider); 38 setElements(elements); 39 setMultipleSelection(false); 40 } 41 42 45 protected Control createDialogArea(Composite parent) { 46 Control comp = super.createDialogArea(parent); 47 PlatformUI.getWorkbench().getHelpSystem().setHelp(comp, IDebugHelpContextIds.FIND_ELEMENT_DIALOG); 48 return comp; 49 } 50 51 } 52 | Popular Tags |