blob: ce59c904c702a0aeccae4973971f544dd76da94d [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2008 Tasktop Technologies 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:
* Tasktop Technologies - initial API and implementation
*******************************************************************************/
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 isAMylynActivateCommand(InteractionEvent event) {
if (event.getKind().equals(InteractionEvent.Kind.COMMAND)) {
if (event.getOriginId().equals(TaskActivateAction.ID)) {
return true;
}
}
return false;
}
public static boolean isAMylynDeactivateCommand(InteractionEvent event) {
if (event.getKind().equals(InteractionEvent.Kind.COMMAND)) {
if (event.getOriginId().equals(TaskDeactivateAction.ID)) {
return true;
}
}
return false;
}
}