This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve circular dependency between org.eclipse.mylyn.monitor.* and
org.eclipse.mylyn.context.* eclipse-mylyn/org.eclipse.mylyn.commons#16
- Loading branch information
1 parent
e4b7925
commit 89680bd
Showing
3 changed files
with
39 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...lipse.mylyn.context.core/src/org/eclipse/mylyn/internal/context/core/ContextCallBack.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2022 Frank Becker and others. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v2.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Frank Becker - initial API and implementation | ||
*******************************************************************************/ | ||
|
||
package org.eclipse.mylyn.internal.context.core; | ||
|
||
import org.eclipse.mylyn.common.context.IContextCallBack; | ||
import org.eclipse.mylyn.context.core.ContextCore; | ||
import org.eclipse.mylyn.monitor.core.InteractionEvent; | ||
|
||
public class ContextCallBack implements IContextCallBack { | ||
|
||
@Override | ||
public void processActivityMetaContextEvent(InteractionEvent event) { | ||
ContextCorePlugin.getContextManager().processActivityMetaContextEvent(event); | ||
} | ||
|
||
@Override | ||
public String getActiveContextHandleIdentifier() { | ||
if (ContextCore.getContextManager().getActiveContext().getHandleIdentifier() != null) { | ||
return ContextCore.getContextManager().getActiveContext().getHandleIdentifier(); | ||
} | ||
return null; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters