/******************************************************************************* * Copyright (c) 2006, 2007 Mountainminds GmbH & Co. KG * This software is provided under the terms of the Eclipse Public License v1.0 * See http://www.eclipse.org/legal/epl-v10.html. * * $Id: $ ******************************************************************************/ package com.mountainminds.eclemma.internal.ui; import org.eclipse.swt.widgets.Control; import org.eclipse.ui.PlatformUI; /** * Constants and utility methods for context help. * * @author Marc R. Hoffmann * @version $Revision: $ */ public class ContextHelp { private static final String PREFIX = EclEmmaUIPlugin.ID + "."; //$NON-NLS-1$ public static final String COVERAGE_VIEW = PREFIX + "coverage_view_context"; //$NON-NLS-1$ public static final String COVERAGE_PROPERTIES = PREFIX + "coverage_properties_context"; //$NON-NLS-1$ public static final String COVERAGE_PREFERENCES = PREFIX + "coverage_preferences_context"; //$NON-NLS-1$ public static final String COVERAGE_LAUNCH = PREFIX + "coverage_launch_context"; //$NON-NLS-1$ public static final String COVERAGE_LAUNCH_TAB = PREFIX + "coverage_launch_tab_context"; //$NON-NLS-1$ public static final String MERGE_SESSIONS = PREFIX + "merge_sessions_context"; //$NON-NLS-1$ public static final String SESSION_EXPORT = PREFIX + "session_export_context"; //$NON-NLS-1$ public static final String SESSION_IMPORT = PREFIX + "session_import_context"; //$NON-NLS-1$ /** * Assigns the given context help id to a SWT control. * * @param control control for this help context * @param id context help id */ public static void setHelp(Control control, String id) { PlatformUI.getWorkbench().getHelpSystem().setHelp(control, id); } }