org.eclipse.mylar.internal.team
Class ContextChangeSetManager

java.lang.Object
  extended by org.eclipse.mylar.internal.team.ContextChangeSetManager
All Implemented Interfaces:
org.eclipse.mylar.context.core.IMylarContextListener

public class ContextChangeSetManager
extends java.lang.Object
implements org.eclipse.mylar.context.core.IMylarContextListener

Author:
Mik Kersten

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.mylar.context.core.IMylarContextListener
org.eclipse.mylar.context.core.IMylarContextListener.UpdateKind
 
Field Summary
private  java.util.Map<java.lang.String,ContextChangeSet> activeChangeSets
           
private  org.eclipse.team.internal.core.subscribers.IChangeSetChangeListener CHANGE_SET_LISTENER
           
private  java.util.List<org.eclipse.team.internal.core.subscribers.ActiveChangeSetManager> collectors
           
private  boolean isEnabled
           
private  ITaskActivityListener TASK_ACTIVITY_LISTENER
           
private  ITaskListChangeListener TASK_CHANGE_LISTENER
           
 
Constructor Summary
ContextChangeSetManager()
           
 
Method Summary
 void clearActiveChangeSets()
          For testing.
 void contextActivated(org.eclipse.mylar.context.core.IMylarContext context)
           
 void contextDeactivated(org.eclipse.mylar.context.core.IMylarContext context)
           
 void disable()
           
 void edgesChanged(org.eclipse.mylar.context.core.IMylarElement node)
           
 void enable()
           
 java.util.List<ContextChangeSet> getActiveChangeSets()
           
 org.eclipse.core.resources.IResource[] getResources(ITask task)
           
private  ITask getTask(org.eclipse.mylar.context.core.IMylarContext context)
           
private  void initContextChangeSets()
           
 void interestChanged(java.util.List<org.eclipse.mylar.context.core.IMylarElement> elements)
           
 void landmarkAdded(org.eclipse.mylar.context.core.IMylarElement node)
           
 void landmarkRemoved(org.eclipse.mylar.context.core.IMylarElement node)
           
 void nodeDeleted(org.eclipse.mylar.context.core.IMylarElement node)
           
 void presentationSettingsChanged(org.eclipse.mylar.context.core.IMylarContextListener.UpdateKind kind)
           
 void presentationSettingsChanging(org.eclipse.mylar.context.core.IMylarContextListener.UpdateKind kind)
           
private  boolean shouldRemove(org.eclipse.mylar.context.core.IMylarElement element)
          Ignores decay.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHANGE_SET_LISTENER

private final org.eclipse.team.internal.core.subscribers.IChangeSetChangeListener CHANGE_SET_LISTENER

collectors

private java.util.List<org.eclipse.team.internal.core.subscribers.ActiveChangeSetManager> collectors

activeChangeSets

private java.util.Map<java.lang.String,ContextChangeSet> activeChangeSets

TASK_ACTIVITY_LISTENER

private ITaskActivityListener TASK_ACTIVITY_LISTENER

TASK_CHANGE_LISTENER

private ITaskListChangeListener TASK_CHANGE_LISTENER

isEnabled

private boolean isEnabled
Constructor Detail

ContextChangeSetManager

public ContextChangeSetManager()
Method Detail

enable

public void enable()

disable

public void disable()

initContextChangeSets

private void initContextChangeSets()

clearActiveChangeSets

public void clearActiveChangeSets()
For testing.


getResources

public org.eclipse.core.resources.IResource[] getResources(ITask task)

contextActivated

public void contextActivated(org.eclipse.mylar.context.core.IMylarContext context)
Specified by:
contextActivated in interface org.eclipse.mylar.context.core.IMylarContextListener

contextDeactivated

public void contextDeactivated(org.eclipse.mylar.context.core.IMylarContext context)
Specified by:
contextDeactivated in interface org.eclipse.mylar.context.core.IMylarContextListener

getActiveChangeSets

public java.util.List<ContextChangeSet> getActiveChangeSets()

getTask

private ITask getTask(org.eclipse.mylar.context.core.IMylarContext context)

shouldRemove

private boolean shouldRemove(org.eclipse.mylar.context.core.IMylarElement element)
Ignores decay.


interestChanged

public void interestChanged(java.util.List<org.eclipse.mylar.context.core.IMylarElement> elements)
Specified by:
interestChanged in interface org.eclipse.mylar.context.core.IMylarContextListener

nodeDeleted

public void nodeDeleted(org.eclipse.mylar.context.core.IMylarElement node)
Specified by:
nodeDeleted in interface org.eclipse.mylar.context.core.IMylarContextListener

landmarkAdded

public void landmarkAdded(org.eclipse.mylar.context.core.IMylarElement node)
Specified by:
landmarkAdded in interface org.eclipse.mylar.context.core.IMylarContextListener

landmarkRemoved

public void landmarkRemoved(org.eclipse.mylar.context.core.IMylarElement node)
Specified by:
landmarkRemoved in interface org.eclipse.mylar.context.core.IMylarContextListener

edgesChanged

public void edgesChanged(org.eclipse.mylar.context.core.IMylarElement node)
Specified by:
edgesChanged in interface org.eclipse.mylar.context.core.IMylarContextListener

presentationSettingsChanging

public void presentationSettingsChanging(org.eclipse.mylar.context.core.IMylarContextListener.UpdateKind kind)
Specified by:
presentationSettingsChanging in interface org.eclipse.mylar.context.core.IMylarContextListener

presentationSettingsChanged

public void presentationSettingsChanged(org.eclipse.mylar.context.core.IMylarContextListener.UpdateKind kind)
Specified by:
presentationSettingsChanged in interface org.eclipse.mylar.context.core.IMylarContextListener