Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2009-08-27 00:32:34 +0000
committerspingel2009-08-27 00:32:34 +0000
commit09221657de61fbad3023e19f66a41801f51ec66c (patch)
tree67648895e0446529a370b193923b0ab407006a75 /org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox
parent028890fe3bc384b232bac60dbf4d7599a00f0703 (diff)
downloadorg.eclipse.mylyn.incubator-09221657de61fbad3023e19f66a41801f51ec66c.tar.gz
org.eclipse.mylyn.incubator-09221657de61fbad3023e19f66a41801f51ec66c.tar.xz
org.eclipse.mylyn.incubator-09221657de61fbad3023e19f66a41801f51ec66c.zip
NEW - bug 284500: task activation via task list is not captured in monitor log
https://bugs.eclipse.org/bugs/show_bug.cgi?id=284500
Diffstat (limited to 'org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox')
-rw-r--r--org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/actions/ContextCapturePauseAction.java92
1 files changed, 0 insertions, 92 deletions
diff --git a/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/actions/ContextCapturePauseAction.java b/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/actions/ContextCapturePauseAction.java
deleted file mode 100644
index 967dfb29..00000000
--- a/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/actions/ContextCapturePauseAction.java
+++ /dev/null
@@ -1,92 +0,0 @@
-/*******************************************************************************
- * 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.sandbox.ui.actions;
-
-import org.eclipse.jface.action.Action;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.mylyn.context.core.AbstractContextListener;
-import org.eclipse.mylyn.context.core.ContextCore;
-import org.eclipse.mylyn.context.core.IInteractionContext;
-import org.eclipse.mylyn.internal.tasks.ui.views.TaskListView;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.ui.IActionDelegate2;
-import org.eclipse.ui.IViewActionDelegate;
-import org.eclipse.ui.IViewPart;
-
-/**
- * This action is not persistent, in order to avoid Mylyn not working on startup.
- *
- * @author Mik Kersten
- */
-public class ContextCapturePauseAction extends Action implements IViewActionDelegate, IActionDelegate2 {
-
- protected IAction initAction = null;
-
- private final AbstractContextListener CONTEXT_LISTENER = new AbstractContextListener() {
- @Override
- public void contextActivated(IInteractionContext context) {
- resume();
- setChecked(false);
- if (initAction != null) {
- initAction.setChecked(false);
- }
- }
- };
-
- public ContextCapturePauseAction() {
- ContextCore.getContextManager().addListener(CONTEXT_LISTENER);
- }
-
- public void init(IViewPart view) {
- // ignore
- }
-
- public void init(IAction action) {
- // ignore
- }
-
- public void dispose() {
- ContextCore.getContextManager().removeListener(CONTEXT_LISTENER);
- }
-
- public void run(IAction action) {
- initAction = action;
- setChecked(!action.isChecked());
- if (isChecked()) {
- resume();
- } else {
- pause();
- }
- }
-
- public void pause() {
- ContextCore.getContextManager().setContextCapturePaused(true);
- TaskListView.getFromActivePerspective().indicatePaused(true);
- }
-
- public void resume() {
- ContextCore.getContextManager().setContextCapturePaused(false);
- if (TaskListView.getFromActivePerspective() != null) {
- TaskListView.getFromActivePerspective().indicatePaused(false);
- }
- }
-
- public void selectionChanged(IAction action, ISelection selection) {
- // ignore
- }
-
- public void runWithEvent(IAction action, Event event) {
- // ignore
-
- }
-}

Back to the top