X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse.webbrowser/src/net/sourceforge/phpeclipse/webbrowser/internal/WebBrowserEditorActionBarContributor.java b/net.sourceforge.phpeclipse.webbrowser/src/net/sourceforge/phpeclipse/webbrowser/internal/WebBrowserEditorActionBarContributor.java index 4c9d702..f5ba6ad 100644 --- a/net.sourceforge.phpeclipse.webbrowser/src/net/sourceforge/phpeclipse/webbrowser/internal/WebBrowserEditorActionBarContributor.java +++ b/net.sourceforge.phpeclipse.webbrowser/src/net/sourceforge/phpeclipse/webbrowser/internal/WebBrowserEditorActionBarContributor.java @@ -1,10 +1,10 @@ /** * Copyright (c) 2003 IBM Corporation and others. - * All rights reserved.   This program and the accompanying materials + * All rights reserved. � This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v10.html - * + �* * Contributors: * IBM - Initial API and implementation */ @@ -15,11 +15,12 @@ import org.eclipse.ui.IEditorActionBarContributor; import org.eclipse.ui.IEditorPart; import org.eclipse.ui.IWorkbenchPage; import org.eclipse.ui.actions.ActionFactory; + /** - * ActionBarContributor for the Web browser. - * Just adds cut, copy, paste actions. + * ActionBarContributor for the Web browser. Just adds cut, copy, paste actions. */ -public class WebBrowserEditorActionBarContributor implements IEditorActionBarContributor { +public class WebBrowserEditorActionBarContributor implements + IEditorActionBarContributor { protected IActionBars actionBars; /** @@ -32,34 +33,40 @@ public class WebBrowserEditorActionBarContributor implements IEditorActionBarCon /** * Initializes this contributor, which is expected to add contributions as * required to the given action bars and global action handlers. - * - * @param bars the action bars + * + * @param bars + * the action bars */ public void init(IActionBars bars, IWorkbenchPage page) { this.actionBars = bars; } /** - * Sets the active editor for the contributor. - * Implementors should disconnect from the old editor, connect to the - * new editor, and update the actions to reflect the new editor. - * - * @param targetEditor the new editor target + * Sets the active editor for the contributor. Implementors should + * disconnect from the old editor, connect to the new editor, and update the + * actions to reflect the new editor. + * + * @param targetEditor + * the new editor target */ public void setActiveEditor(IEditorPart targetEditor) { if (targetEditor instanceof WebBrowserEditor) { WebBrowserEditor editor = (WebBrowserEditor) targetEditor; - actionBars.setGlobalActionHandler(ActionFactory.COPY.getId(), editor.getCopyAction()); - actionBars.setGlobalActionHandler(ActionFactory.CUT.getId(), editor.getCutAction()); - actionBars.setGlobalActionHandler(ActionFactory.PASTE.getId(), editor.getPasteAction()); + actionBars.setGlobalActionHandler(ActionFactory.COPY.getId(), + editor.getCopyAction()); + actionBars.setGlobalActionHandler(ActionFactory.CUT.getId(), editor + .getCutAction()); + actionBars.setGlobalActionHandler(ActionFactory.PASTE.getId(), + editor.getPasteAction()); editor.updateActions(); } } /** - * Disposes this contributor. + * Disposes this contributor. */ - public void dispose() { } + public void dispose() { + } } \ No newline at end of file