{
myAnnotation = annotation;
myEditor = editor;
fileScopeManager = ApplicationManager.getApplication().getComponent(FileScopeManager.class);
myListener = new AnnotationListener()
{
public void onAnnotationChanged()
{
myEditor.getGutter().closeAllAnnotations();
}