1
/*******************************************************************************
2
* Copyright (C) 2003-2006, 2013, Guillaume Brocker
4
* All rights reserved. This program and the accompanying materials
5
* are made available under the terms of the Eclipse Public License v1.0
6
* which accompanies this distribution, and is available at
7
* http://www.eclipse.org/legal/epl-v10.html
10
* Guillaume Brocker - Initial API and implementation
12
******************************************************************************/
14
package eclox.ui.console.action;
16
import org.eclipse.jface.action.Action;
18
import eclox.core.doxygen.BuildJob;
19
import eclox.ui.Images;
20
import eclox.ui.Plugin;
21
import eclox.ui.console.Console;
23
public class ClearLog extends Action {
26
* the console to act on
28
private Console console;
33
* @param console the console to act on
35
public ClearLog( Console console ) {
36
super( "Clear Console", Plugin.getImageDescriptor(Images.CLEAR_CONSOLE) );
37
this.console = console;
38
setToolTipText( "Clear Build Log" );
42
BuildJob job = console.getJob();