Community
Participate
Working Groups
package org.eclipse.mylyn.context.core;
import java.util.Collection;
import java.util.Set;
import org.eclipse.mylyn.monitor.core.InteractionEvent;
* NOTE: If pausing ensure to restore to original state.
*/
public void setContextCapturePaused(boolean paused);
/**
* global context that works even if no task is activated
public abstract void addGlobalContext(IInteractionContext context);
public abstract Collection<IInteractionContext> getGlobalContexts();
public abstract void removeGlobalContext(IInteractionContext context);
}
for (IInteractionContext globalContext : globalContexts) {
if (globalContext.getContentLimitedTo().equals(event.getStructureKind())) {
//if (globalContext.getContentLimitedTo().equals(event.getStructureKind())) {
List<IInteractionElement> interestDelta = internalProcessInteractionEvent(event, globalContext,
propagateToParents);
if (notifyListeners && !alreadyNotified) {
notifyInterestDelta(interestDelta);
//}
return activeContext.get(event.getStructureHandle());
if (selection == null || selection.isEmpty()) {
return;
if (!ContextCore.getContextManager().isContextActive()) {
// no task is activated plus no global context is available, then stop contributing to context
if (!ContextCore.getContextManager().isContextActive()
&& ContextCore.getContextManager().getGlobalContexts().size() <= 0) {
handleWorkbenchPartSelection(part, selection, false);
} else {
handleWorkbenchPartSelection(part, selection, true);