We're considering adding a new IDE service for IMP users to add
arbitrary annotations to the source editor presentation. The
basic idea would be for the service implementation to call a
hook method and provide it a position, a message, and appearance
attributes (in some form or another). The service implementation
would be called for each model/AST update in the source editor.
The general motivation would be for a client to analyze the AST
in some way and produce a visible presentation of the results.
[Note that there is already an IMP service defined for Mark
Occurrences, so that use case is already covered.]
Given that calling the annotation service on each model update
would require the analysis to be suitably lightweight, we could
probably also arrange for such a service to be called at build
time, when more expensive analyses could be performed (e.g.
certain kinds of smell detection).
Does any of this sound useful? Does anyone have a concrete need
for something like this?
Robert M. Fuhrer
Research Staff Member
Programming Technologies Dept.
IBM T.J. Watson Research Center