New annotation creation service? [message #25256] |
Fri, 07 November 2008 17:40  |
Eclipse User |
|
|
|
Hi All,
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?
--
Cheers,
-- Bob
--------------------------------
Robert M. Fuhrer
Research Staff Member
Programming Technologies Dept.
IBM T.J. Watson Research Center
IDE Meta-tooling Platform Project Lead (http://www.eclipse.org/imp)
X10: Productive High-Performance Parallel Programming (http://x10.sf.net)
|
|
|
Re: New annotation creation service? [message #25922 is a reply to message #25256] |
Tue, 25 November 2008 14:37  |
Eclipse User |
|
|
|
I don't think a new annotation service is required. The existing
capability just needs to be richer: Bug 255617.
For my OCL and QVT editors there are multiple phases:
lexing to IToken node list
parsing to a CST node hierarchy
analysing to an AST node hierarchy
validation of an AST node hierarchy
Validation needs to be separate and as many checks as possible need to
be deferred to validation so that validation is as useful as possible
when the AST is externally supplied rather than parsed.
Validation detects 'smells' of a variety of severities so annotations
need to support severity.
Regards
Ed Willink
|
|
|
Re: New annotation creation service? [message #574541 is a reply to message #25256] |
Tue, 25 November 2008 14:37  |
Eclipse User |
|
|
|
I don't think a new annotation service is required. The existing
capability just needs to be richer: Bug 255617.
For my OCL and QVT editors there are multiple phases:
lexing to IToken node list
parsing to a CST node hierarchy
analysing to an AST node hierarchy
validation of an AST node hierarchy
Validation needs to be separate and as many checks as possible need to
be deferred to validation so that validation is as useful as possible
when the AST is externally supplied rather than parsed.
Validation detects 'smells' of a variety of severities so annotations
need to support severity.
Regards
Ed Willink
|
|
|
Powered by
FUDForum. Page generated in 0.02117 seconds