blob: b127544f485716e6df404da26802fc634ea5aec7 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2014, 2016 IBH SYSTEMS GmbH.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBH SYSTEMS GmbH - initial API and implementation
*******************************************************************************/
package org.eclipse.releng.tools;
import org.eclipse.ui.IActionBars;
import org.eclipse.ui.console.IConsole;
import org.eclipse.ui.console.IConsoleConstants;
import org.eclipse.ui.console.IConsolePageParticipant;
import org.eclipse.ui.part.IPageBookViewPage;
public class FixPageParticipant implements IConsolePageParticipant {
@Override
public <T> T getAdapter(Class<T> adapter) {
return null;
}
@Override
public void init(IPageBookViewPage page, IConsole console) {
IActionBars actionBars = page.getSite().getActionBars();
actionBars.getToolBarManager().appendToGroup(
IConsoleConstants.LAUNCH_GROUP,
new RemoveConsoleAction(console));
actionBars.getToolBarManager().appendToGroup(
IConsoleConstants.LAUNCH_GROUP, new RemoveAllConsolesAction());
}
@Override
public void dispose() {
}
@Override
public void activated() {
}
@Override
public void deactivated() {
}
}