1 11 package org.eclipse.ui.internal.handlers; 12 13 import org.eclipse.core.commands.AbstractHandler; 14 import org.eclipse.core.commands.ExecutionEvent; 15 import org.eclipse.ui.PlatformUI; 16 import org.eclipse.ui.help.IWorkbenchHelpSystem; 17 18 24 public final class DisplayHelpHandler extends AbstractHandler { 25 26 29 private static final String PARAM_ID_HREF = "href"; 31 public final Object execute(final ExecutionEvent event) { 32 final IWorkbenchHelpSystem helpSystem = PlatformUI.getWorkbench() 33 .getHelpSystem(); 34 final String href = event.getParameter(PARAM_ID_HREF); 35 36 if (href == null) { 37 helpSystem.displayHelp(); 38 } else { 39 helpSystem.displayHelpResource(href); 40 } 41 42 return null; 43 } 44 } 45 | Popular Tags |