blob: b6dfc63377fa2d8db752b6d0799a01e14f268f06 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2007 Mylyn project committers 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
*******************************************************************************/
package org.eclipse.mylyn.internal.monitor.reports.collectors;
import org.eclipse.mylyn.internal.tasks.ui.actions.TaskActivateAction;
import org.eclipse.mylyn.internal.tasks.ui.actions.TaskDeactivateAction;
import org.eclipse.mylyn.monitor.core.InteractionEvent;
public abstract class FocusedUiUsageDetector {
public static boolean isAMylarActivateCommand(InteractionEvent event) {
if (event.getKind().equals(InteractionEvent.Kind.COMMAND)) {
if (event.getOriginId().equals(TaskActivateAction.ID)) {
return true;
}
}
return false;
}
public static boolean isAMylarDeactivateCommand(InteractionEvent event) {
if (event.getKind().equals(InteractionEvent.Kind.COMMAND)) {
if (event.getOriginId().equals(TaskDeactivateAction.ID)) {
return true;
}
}
return false;
}
}