Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IMP » New annotation creation service?
New annotation creation service? [message #25256] Fri, 07 November 2008 22:40 Go to next message
Robert M. Fuhrer is currently offline Robert M. FuhrerFriend
Messages: 294
Registered: July 2009
Senior Member
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 19:37 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
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 19:37 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
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
Previous Topic:Parser message adaptation/customization
Next Topic:What is a ModelTreeNode category?
Goto Forum:
  


Current Time: Thu Apr 25 10:57:57 GMT 2024

Powered by FUDForum. Page generated in 0.03227 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top