@Override public void contentAdded(ContentManagerEvent event) { if (devMotivePanel == null && event.getContent().getComponent() instanceof DevMotivePanel) { DevMotivePanel panel = (DevMotivePanel) event.getContent().getComponent(); if (annotation.getFile().equals(panel.getFile())) { devMotivePanel = panel; devMotivePanel.addChangeListener(this); } } }
public DevMotiveAnnotationGutter( Project project, FileAnnotation annotation, List<VcsFileRevision> revisions, EditorGutter editorGutter) { this.annotation = annotation; devMotivePanel = AliContentFactory.addDevMotiveContent( project, annotation.getFile(), revisions, annotation.getVcsKey().getName(), this, true); devMotivePanel.addChangeListener(this); if (editorGutter instanceof EditorGutterComponentEx) { editorGutterComponentEx = (EditorGutterComponentEx) editorGutter; unknownLine = "???"; } else { // unable to resize, make sure to reserve enough room unknownLine = "??????????"; } }