Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2007, 2008 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors: IBM Corporation - initial API and implementation /
Default handler for the "Help/Index" command
public class ShowIndexHandler extends AbstractHandler {
	 * Currently returns true, could be controlled by a preference
	 * in the future
    private boolean isOpenInHelpView() {
    	boolean searchFromBrowser = 
	    return !searchFromBrowser;
	public Object execute(ExecutionEvent eventthrows ExecutionException {
		if (isOpenInHelpView()) { 
else {
		return null;
	private void openInBrowser() {
		BaseHelpSystem.getHelpDisplay().displayHelpResource("tab=index"false); //$NON-NLS-1$
	private void openInHelpView() {
New to GrepCode? Check out our FAQ X