Bug 559068

Summary: Add suport for error indicators on Generic Editor
Product: [Eclipse Project] Platform Reporter: Dawid Pakula <zulus>
Component: IDEAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: aobuchow, gautier.desaintmartinlacaze
Version: 4.15   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Dawid Pakula CLA 2020-01-11 15:12:22 EST
I think that Generic Text Editor, or even all text editors should support error indicator on it's title image.

Similar to Java and other *DT. If there is an error marker on source file, it's visible on editor title.

This popular feature that is mostly copy-paste from JDT:
* JavaEditorTickUpdater (JSDT and JDT)
* CEditorTickUpdater (CDT)
* PHPEditorTickUpdater (PDT)
* ScriptEditorTickUpdater (DLTK)
* EditorErrorTickUpdater (EDT)

Each *DT have own ProblemMarkerManager that listen on IResourceChangeListener. Later each one scan if there is any new marker that is subset of IMarker.PROBLEM. And if any, inform registered IProblemChangedListener's.

If you have more than one *DT installed, each one scan resource after save in exactly same way.

I understand that mentioned ProblemMarkerManager also allow to listen in same way for AnnotationModelEvent, but I think that this common listener should be part of LTK, at least for IResourceChangeListener.