diff options
author | Jean Michel-Lemieux | 2004-09-30 19:58:35 +0000 |
---|---|---|
committer | Jean Michel-Lemieux | 2004-09-30 19:58:35 +0000 |
commit | 91a9a356751ece400b4a12ce2608c81e5b58c7f6 (patch) | |
tree | 40d74f1aeacdf2f2a01cc77f189550c2c2731199 /bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/console/CVSConsolePageParticipant.java | |
parent | 8b9d3c7562b752beb075b9d44c04134da92c583e (diff) | |
download | eclipse.platform.team-91a9a356751ece400b4a12ce2608c81e5b58c7f6.tar.gz eclipse.platform.team-91a9a356751ece400b4a12ce2608c81e5b58c7f6.tar.xz eclipse.platform.team-91a9a356751ece400b4a12ce2608c81e5b58c7f6.zip |
Bug 12567 [CVS UI] console should have word wrap
Diffstat (limited to 'bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/console/CVSConsolePageParticipant.java')
-rw-r--r-- | bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/console/CVSConsolePageParticipant.java | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/console/CVSConsolePageParticipant.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/console/CVSConsolePageParticipant.java new file mode 100644 index 000000000..b6a52eabd --- /dev/null +++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/console/CVSConsolePageParticipant.java @@ -0,0 +1,55 @@ +/******************************************************************************* + * Copyright (c) 2000, 2003 IBM Corporation and others. + * 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 Corporation - initial API and implementation + *******************************************************************************/ +package org.eclipse.team.internal.ccvs.ui.console; + +import org.eclipse.ui.IActionBars; +import org.eclipse.ui.console.*; +import org.eclipse.ui.console.IConsole; +import org.eclipse.ui.console.IConsolePageParticipant; +import org.eclipse.ui.part.IPageBookViewPage; + +/** + * Console helper that allows contributing actions to the console view when + * the CVS console is visible. Added to the console via an extension point + * from org.eclipse.ui.console. + * + * @since 3.1 + */ +public class CVSConsolePageParticipant implements IConsolePageParticipant { + + private CVSOutputConsole console; + private IPageBookViewPage page; + private ConsoleRemoveAction consoleRemoveAction; + + public void init(IPageBookViewPage page, IConsole console) { + this.console = (CVSOutputConsole)console; + this.page = page; + this.consoleRemoveAction = new ConsoleRemoveAction(); + IActionBars bars = page.getSite().getActionBars(); + bars.getToolBarManager().appendToGroup(IConsoleConstants.LAUNCH_GROUP, consoleRemoveAction); + } + + public void dispose() { + this.consoleRemoveAction = null; + this.page = null; + this.console = null; + } + + public void activated() { + } + + public void deactivated() { + } + + public Object getAdapter(Class adapter) { + return null; + } +} |