blob: 4688ba46f6e2706942170eb30cabd13cfd205adf [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2013 Boeing.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.ote.ui.eviewer.action;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IAction;
import org.eclipse.ote.ui.eviewer.Activator;
import org.eclipse.ote.ui.eviewer.view.ElementContentProvider;
/**
* @author Ken J. Aguilar
*/
public class ClearAllUpdatesAction extends Action {
private final ElementContentProvider elementContentProvider;
public ClearAllUpdatesAction(ElementContentProvider elementContentProvider) {
super("Clear All Updates", IAction.AS_PUSH_BUTTON);
setImageDescriptor(Activator.getImageDescriptor("icons/deleteAll.gif"));
this.elementContentProvider = elementContentProvider;
}
@Override
public void run() {
elementContentProvider.clearAllUpdates();
}
}