blob: 00f34f1aea38903b2d0a4caea3629ac3ddf11c93 [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.context.core;
import java.util.Collection;
import java.util.Set;
import org.eclipse.mylyn.monitor.core.InteractionEvent;
/**
* @author Mik Kersten
* @since 3.0
* @noimplement
*/
public interface IInteractionContextManager {
/**
* @return null if the element handle is null or if the element is not found in the active task context.
*/
public abstract IInteractionElement getElement(String elementHandle);
public abstract void addListener(AbstractContextListener listener);
public abstract void removeListener(AbstractContextListener listener);
public abstract void activateContext(String handleIdentifier);
public abstract void deactivateContext(String handleIdentifier);
public abstract void deleteContext(String handleIdentifier);
public abstract IInteractionContext getActiveContext();
public abstract Set<IInteractionElement> getActiveLandmarks();
public abstract Set<IInteractionElement> getActiveDocuments(IInteractionContext context);
public abstract void updateHandle(IInteractionElement element, String newHandle);
public abstract void deleteElement(IInteractionElement element);
/**
* @since 3.2
*/
public abstract void deleteElements(Collection<IInteractionElement> elements);
public IInteractionElement getActiveElement();
public IInteractionElement processInteractionEvent(InteractionEvent event);
public boolean isContextActive();
/**
* Lazily loads set of handles with corresponding contexts.
*/
public boolean hasContext(String handleIdentifier);
public abstract boolean isContextActivePropertySet();
public abstract boolean isContextCapturePaused();
/**
* NOTE: If pausing ensure to restore to original state.
*/
public void setContextCapturePaused(boolean paused);
}