Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2004-09-30 19:58:35 +0000
committerJean Michel-Lemieux2004-09-30 19:58:35 +0000
commit91a9a356751ece400b4a12ce2608c81e5b58c7f6 (patch)
tree40d74f1aeacdf2f2a01cc77f189550c2c2731199 /bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/console/CVSConsolePageParticipant.java
parent8b9d3c7562b752beb075b9d44c04134da92c583e (diff)
downloadeclipse.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
Bug 36505 Automatically show CVS Console Bug 74728 [CVS Console] move to new console API
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.java55
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;
+ }
+}

Back to the top