| /******************************************************************************* |
| * Copyright (c) 2004, 2008 Willian Mitsuda and others. |
| * 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: |
| * Willian Mitsuda - initial API and implementation |
| *******************************************************************************/ |
| |
| package org.eclipse.mylyn.internal.tasks.ui.actions; |
| |
| import org.eclipse.jface.action.IAction; |
| import org.eclipse.mylyn.tasks.ui.TasksUi; |
| import org.eclipse.ui.IWorkbenchWindow; |
| import org.eclipse.ui.IWorkbenchWindowActionDelegate; |
| import org.eclipse.ui.actions.ActionDelegate; |
| |
| /** |
| * @author Willian Mitsuda |
| */ |
| public class DeactivateAllTasksAction extends ActionDelegate implements IWorkbenchWindowActionDelegate { |
| |
| public void init(IWorkbenchWindow window) { |
| // ignore |
| } |
| |
| @Override |
| public void run(IAction action) { |
| TasksUi.getTaskActivityManager().deactivateActiveTask(); |
| } |
| |
| } |