content: /*******************************************************************************
   * Copyright (c) 2000, 2007 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
   * http://www.eclipse.org/legal/epl-v10.html
   *
   * Contributors:
   *     IBM Corporation - initial API and implementation
   *******************************************************************************/
  
  package ts.eclipse.ide.jsdt.internal.ui.actions;
  
  import org.eclipse.core.runtime.Assert;
  import org.eclipse.jface.action.Action;
  import org.eclipse.ui.PlatformUI;
  import org.eclipse.wst.jsdt.internal.ui.IJavaHelpContextIds;
  
  import ts.eclipse.ide.jsdt.internal.ui.JSDTTypeScriptUIMessages;
  import ts.eclipse.ide.jsdt.internal.ui.editor.JavaScriptLightWeightEditor;
  
  public class GotoMatchingBracketAction extends Action {
  
  	public final static String GOTO_MATCHING_BRACKET = "GotoMatchingBracket"; //$NON-NLS-1$
  
  	private final JavaScriptLightWeightEditor fEditor;
  
  	public GotoMatchingBracketAction(JavaScriptLightWeightEditor editor) {
  		super(JSDTTypeScriptUIMessages.GotoMatchingBracket_label);
  		Assert.isNotNull(editor);
  		fEditor = editor;
  		setEnabled(true);
  		// PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.GOTO_MATCHING_BRACKET_ACTION);
  	}
  
  	public void run() {
  		fEditor.gotoMatchingBracket();
  	}
  }
  