Bug 559068 - Add suport for error indicators on Generic Editor
Summary: Add suport for error indicators on Generic Editor
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.15   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-11 15:12 EST by Dawid Pakula CLA
Modified: 2020-01-20 14:13 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.