org.eclipse.mylar.internal.java
Class TypeHistoryManager

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

public class TypeHistoryManager
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
 
Constructor Summary
TypeHistoryManager()
           
 
Method Summary
 void clearTypeHistory()
          Public for testing
 void contextActivated(org.eclipse.mylar.context.core.IMylarContext context)
           
 void contextDeactivated(org.eclipse.mylar.context.core.IMylarContext context)
           
 void edgesChanged(org.eclipse.mylar.context.core.IMylarElement node)
           
 void interestChanged(java.util.List<org.eclipse.mylar.context.core.IMylarElement> nodes)
           
private  boolean isAspectjType(org.eclipse.jdt.core.IType type)
          HACK: to avoid adding AspectJ types, for example: class: =TJP Example/src
 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  void updateTypeHistory(org.eclipse.mylar.context.core.IMylarElement node, boolean add)
          Path has to be compatible with ITypeNameRequestor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeHistoryManager

public TypeHistoryManager()
Method Detail

contextActivated

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

updateTypeHistory

private void updateTypeHistory(org.eclipse.mylar.context.core.IMylarElement node,
                               boolean add)
Path has to be compatible with ITypeNameRequestor


isAspectjType

private boolean isAspectjType(org.eclipse.jdt.core.IType type)
HACK: to avoid adding AspectJ types, for example: class: =TJP Example/src

contextDeactivated

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

clearTypeHistory

public void clearTypeHistory()
Public for testing


interestChanged

public void interestChanged(java.util.List<org.eclipse.mylar.context.core.IMylarElement> nodes)
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

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

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