1 11 package org.eclipse.team.internal.ccvs.ui.console; 12 13 import org.eclipse.ui.IActionBars; 14 import org.eclipse.ui.console.*; 15 import org.eclipse.ui.console.IConsole; 16 import org.eclipse.ui.console.IConsolePageParticipant; 17 import org.eclipse.ui.part.IPageBookViewPage; 18 19 26 public class CVSConsolePageParticipant implements IConsolePageParticipant { 27 28 private ConsoleRemoveAction consoleRemoveAction; 29 30 public void init(IPageBookViewPage page, IConsole console) { 31 this.consoleRemoveAction = new ConsoleRemoveAction(); 32 IActionBars bars = page.getSite().getActionBars(); 33 bars.getToolBarManager().appendToGroup(IConsoleConstants.LAUNCH_GROUP, consoleRemoveAction); 34 } 35 36 public void dispose() { 37 this.consoleRemoveAction = null; 38 } 39 40 public void activated() { 41 } 42 43 public void deactivated() { 44 } 45 46 public Object getAdapter(Class adapter) { 47 return null; 48 } 49 } 50 | Popular Tags |