From: Christopher W. <caw...@us...> - 2006-02-24 20:03:29
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/rubyeditor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32518/src/org/rubypeople/rdt/internal/ui/rubyeditor Added Files: GotoMatchingBracketAction.java Log Message: the new go to matching braket action implementation --- NEW FILE: GotoMatchingBracketAction.java --- /******************************************************************************* * Copyright (c) 2000, 2005 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 org.rubypeople.rdt.internal.ui.rubyeditor; import org.eclipse.jface.action.Action; import org.eclipse.jface.text.Assert; import org.eclipse.ui.PlatformUI; import org.rubypeople.rdt.internal.ui.IRubyHelpContextIds; public class GotoMatchingBracketAction extends Action { public final static String GOTO_MATCHING_BRACKET= "GotoMatchingBracket"; //$NON-NLS-1$ private final RubyEditor fEditor; public GotoMatchingBracketAction(RubyEditor editor) { super(RubyEditorMessages.GotoMatchingBracket_label); Assert.isNotNull(editor); fEditor= editor; setEnabled(true); PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IRubyHelpContextIds.GOTO_MATCHING_BRACKET_ACTION); } public void run() { fEditor.gotoMatchingBracket(); } } |